/**
 * Visa Requirement Checker Styles
 *
 * @package TravelSuggest
 * @since 1.0.0
 */

/* ========================================
   Hero Section - Matching Other Tools
   ======================================== */

body.page-template-template-visa-requirement-checker .visa-checker-hero-wrapper {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-template-template-visa-requirement-checker .visa-checker-hero {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 400px;
    max-height: 650px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-radius: 0;
    overflow: hidden;
    margin: 0;
    box-shadow: none;
}

body.page-template-template-visa-requirement-checker .visa-checker-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}

body.page-template-template-visa-requirement-checker .visa-checker-hero .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

body.page-template-template-visa-requirement-checker .visa-checker-hero .hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 44px 24px;
}

body.page-template-template-visa-requirement-checker .visa-checker-hero .hero-title {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 30px rgba(0,0,0,0.45);
    text-align: left;
}

body.page-template-template-visa-requirement-checker .visa-checker-hero .hero-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    margin: 0;
    text-align: left;
}

/* ========================================
   Container - Matching Other Tools
   ======================================== */

body.page-template-template-visa-requirement-checker .visa-checker-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

body.page-template-template-visa-requirement-checker .visa-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

body.page-template-template-visa-requirement-checker .calculator-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

body.page-template-template-visa-requirement-checker .calculator-header h2 {
    color: #1f2937;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 8px;
}

body.page-template-template-visa-requirement-checker .calculator-header p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
}

/* ========================================
   Form Styles - Matching Other Tools
   ======================================== */

body.page-template-template-visa-requirement-checker .form-row-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

body.page-template-template-visa-requirement-checker .form-group {
    display: flex;
    flex-direction: column;
}

body.page-template-template-visa-requirement-checker .form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

body.page-template-template-visa-requirement-checker .form-group .required {
    color: #ef4444;
    margin-left: 2px;
}

body.page-template-template-visa-requirement-checker .form-group input[type="text"],
body.page-template-template-visa-requirement-checker .form-group input[type="number"],
body.page-template-template-visa-requirement-checker .form-group input[type="date"],
body.page-template-template-visa-requirement-checker .form-group select,
body.page-template-template-visa-requirement-checker .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
    font-family: inherit;
}

body.page-template-template-visa-requirement-checker .form-group input:focus,
body.page-template-template-visa-requirement-checker .form-group select:focus,
body.page-template-template-visa-requirement-checker .form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

body.page-template-template-visa-requirement-checker .form-help-text {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}

@media (max-width: 767px) {
    body.page-template-template-visa-requirement-checker .form-row-two-col {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Autocomplete Dropdown
   ======================================== */

.country-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.country-autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid hsl(214.3, 31.8%, 91.4%);
}

.country-autocomplete-item:last-child {
    border-bottom: none;
}

.country-autocomplete-item:hover,
.country-autocomplete-item.active {
    background-color: hsl(214.3, 31.8%, 96%);
}

.country-autocomplete-item strong {
    color: hsl(222.2, 84%, 4.9%);
}

/* ========================================
   Form Actions - Matching Other Tools
   ======================================== */

body.page-template-template-visa-requirement-checker .form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

body.page-template-template-visa-requirement-checker .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: var(--color-secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

body.page-template-template-visa-requirement-checker .btn-primary:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

body.page-template-template-visa-requirement-checker .btn-primary:active {
    transform: translateY(0);
}

body.page-template-template-visa-requirement-checker .btn-icon {
    font-size: 1.125rem;
}

.visa-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #f97316;
    background: #ffffff;
    border: 2px solid #f97316;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.visa-secondary-btn:hover {
    background: #f97316;
    color: #ffffff;
}

/* ========================================
   Disclaimer
   ======================================== */

body.page-template-template-visa-requirement-checker .visa-disclaimer {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fed7aa;
    border-left: 4px solid var(--color-secondary);
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.1);
}

body.page-template-template-visa-requirement-checker .visa-disclaimer p {
    margin: 0;
    font-size: 0.9375rem;
    color: #92400e;
    line-height: 1.6;
}

body.page-template-template-visa-requirement-checker .visa-disclaimer strong {
    color: #78350f;
    font-weight: 700;
}

/* ========================================
   Loading State
   ======================================== */

.visa-loading-content {
    text-align: center;
    padding: 3rem 1.5rem;
}

.visa-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 4px solid hsl(214.3, 31.8%, 91.4%);
    border-top-color: #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.visa-loading-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(222.2, 84%, 4.9%);
    margin: 0 0 0.5rem 0;
}

.visa-loading-content p {
    font-size: 1rem;
    color: hsl(215.4, 16.3%, 46.9%);
    margin: 0;
}

/* ========================================
   Results Display - Modern Design
   ======================================== */

/* Results Header with Actions */
body.page-template-template-visa-requirement-checker .visa-results-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a1c2e 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

body.page-template-template-visa-requirement-checker .header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}

body.page-template-template-visa-requirement-checker .action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.page-template-template-visa-requirement-checker .action-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

body.page-template-template-visa-requirement-checker .action-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

body.page-template-template-visa-requirement-checker .action-button svg {
    width: 16px;
    height: 16px;
}

/* Travel Route Display */
body.page-template-template-visa-requirement-checker .travel-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

body.page-template-template-visa-requirement-checker .route-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 200px;
}

body.page-template-template-visa-requirement-checker .route-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

body.page-template-template-visa-requirement-checker .route-country {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

body.page-template-template-visa-requirement-checker .route-icon {
    font-size: 2rem;
}

body.page-template-template-visa-requirement-checker .route-arrow {
    display: flex;
    align-items: center;
    opacity: 0.8;
}

body.page-template-template-visa-requirement-checker .route-arrow svg {
    width: 32px;
    height: 32px;
}

/* Visa Status Card */
body.page-template-template-visa-requirement-checker .visa-status-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    margin: 32px 0;
    border-radius: 12px;
    border: 2px solid;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body.page-template-template-visa-requirement-checker .visa-status-card .status-icon {
    font-size: 4rem;
    line-height: 1;
    flex-shrink: 0;
}

body.page-template-template-visa-requirement-checker .visa-status-card .status-content {
    flex: 1;
}

body.page-template-template-visa-requirement-checker .visa-status-card .status-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
    opacity: 0.8;
}

body.page-template-template-visa-requirement-checker .visa-status-card .status-requirement {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* Status Card Variants */
body.page-template-template-visa-requirement-checker .visa-status-card.no-visa {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #86efac;
    color: #166534;
}

body.page-template-template-visa-requirement-checker .visa-status-card.visa-on-arrival {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
    color: #1e40af;
}

body.page-template-template-visa-requirement-checker .visa-status-card.e-visa {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
    color: #92400e;
}

body.page-template-template-visa-requirement-checker .visa-status-card.visa-required {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #fca5a5;
    color: #991b1b;
}

/* Additional Information Section */
body.page-template-template-visa-requirement-checker .visa-additional-info {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

body.page-template-template-visa-requirement-checker .visa-additional-info .info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

body.page-template-template-visa-requirement-checker .visa-additional-info .info-content {
    color: #374151;
    line-height: 1.7;
}

body.page-template-template-visa-requirement-checker .visa-additional-info .info-content h3,
body.page-template-template-visa-requirement-checker .visa-additional-info .info-content h4 {
    color: #1f2937;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

body.page-template-template-visa-requirement-checker .visa-additional-info .info-content ul,
body.page-template-template-visa-requirement-checker .visa-additional-info .info-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

body.page-template-template-visa-requirement-checker .visa-additional-info .info-content li {
    margin-bottom: 8px;
}

body.page-template-template-visa-requirement-checker .visa-additional-info .info-content p {
    margin-bottom: 16px;
}

body.page-template-template-visa-requirement-checker .visa-additional-info .info-content strong {
    color: #1f2937;
    font-weight: 600;
}

/* Important Note Styling */
body.page-template-template-visa-requirement-checker .visa-additional-info .important-note {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

body.page-template-template-visa-requirement-checker .visa-additional-info .important-note p {
    margin: 0 0 8px 0;
    color: #92400e;
    font-weight: 500;
}

body.page-template-template-visa-requirement-checker .visa-additional-info .important-note p:last-child {
    margin-bottom: 0;
}

body.page-template-template-visa-requirement-checker .visa-additional-info .important-note strong {
    color: #78350f;
    font-weight: 700;
}

/* Fee Info Styling */
body.page-template-template-visa-requirement-checker .visa-additional-info .fee-info {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-left: 4px solid #22c55e;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

body.page-template-template-visa-requirement-checker .visa-additional-info .fee-info p {
    margin: 8px 0;
    color: #166534;
    font-weight: 500;
}

body.page-template-template-visa-requirement-checker .visa-additional-info .fee-info p:first-child {
    margin-top: 0;
}

body.page-template-template-visa-requirement-checker .visa-additional-info .fee-info p:last-child {
    margin-bottom: 0;
}

body.page-template-template-visa-requirement-checker .visa-additional-info .fee-info strong {
    color: #15803d;
    font-weight: 700;
}

/* Links Styling */
body.page-template-template-visa-requirement-checker .visa-additional-info a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: inline-block;
}

body.page-template-template-visa-requirement-checker .visa-additional-info a:hover {
    border-bottom-color: var(--color-primary);
    color: var(--color-secondary);
}

body.page-template-template-visa-requirement-checker .visa-additional-info a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.875em;
    opacity: 0.7;
    margin-left: 2px;
}

/* Visa Info Container */
body.page-template-template-visa-requirement-checker .visa-additional-info .visa-info {
    /* Container for structured visa information */
}

/* Share URL Section */
body.page-template-template-visa-requirement-checker .share-url-container {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

body.page-template-template-visa-requirement-checker .share-url-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #374151;
    background: #f9fafb;
    font-family: monospace;
}

body.page-template-template-visa-requirement-checker .share-url-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #ffffff;
}

body.page-template-template-visa-requirement-checker .copy-url-btn {
    padding: 12px 24px;
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

body.page-template-template-visa-requirement-checker .copy-url-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
}

body.page-template-template-visa-requirement-checker .copy-url-btn:active {
    transform: translateY(0);
}

/* Visa Actions */
body.page-template-template-visa-requirement-checker .visa-actions {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 767px) {
    body.page-template-template-visa-requirement-checker .visa-section {
        padding: 20px;
    }

    body.page-template-template-visa-requirement-checker .visa-checker-hero {
        height: 42vh;
        min-height: 300px;
        background-attachment: scroll;
    }

    body.page-template-template-visa-requirement-checker .btn-primary {
        width: 100%;
        justify-content: center;
    }

    body.page-template-template-visa-requirement-checker .visa-secondary-btn {
        width: 100%;
        justify-content: center;
    }

    /* Results responsive */
    body.page-template-template-visa-requirement-checker .visa-results-header {
        padding: 20px;
    }

    body.page-template-template-visa-requirement-checker .header-actions {
        flex-direction: column;
    }

    body.page-template-template-visa-requirement-checker .action-button {
        width: 100%;
        justify-content: center;
    }

    body.page-template-template-visa-requirement-checker .travel-route {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    body.page-template-template-visa-requirement-checker .route-item {
        max-width: 100%;
    }

    body.page-template-template-visa-requirement-checker .route-arrow {
        transform: rotate(90deg);
    }

    body.page-template-template-visa-requirement-checker .visa-status-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    body.page-template-template-visa-requirement-checker .visa-status-card .status-icon {
        font-size: 3rem;
    }

    body.page-template-template-visa-requirement-checker .visa-status-card .status-requirement {
        font-size: 1.5rem;
    }

    body.page-template-template-visa-requirement-checker .visa-additional-info {
        padding: 20px;
    }

    body.page-template-template-visa-requirement-checker .visa-additional-info .info-title {
        font-size: 1.25rem;
    }
}

