/* --- WRAPPER --- */
#vc-visa-checker-wrapper {
    max-width: 720px;
    margin: 40px auto;
    font-family: inherit;
}

/* --- TRAVEL CARD (FORM) --- */
.travel-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 32px 32px;
    max-width: 460px;
    margin: 0 auto;
}

.travel-card h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 28px 0;
}

/* --- FORM LAYOUT --- */
#vc-visa-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- FORM GROUP --- */
.form-group {
    display: flex;
    flex-direction: column;
}

/* --- FIELD LABELS --- */
.field-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #718096;
    margin-bottom: 8px;
}

/* --- PASSPORT TOGGLE --- */
.passport-toggle {
    display: flex;
    background-color: #edf2f7;
    border-radius: 10px;
    padding: 4px;
    gap: 0;
}

.passport-toggle input[type="radio"] {
    display: none;
}

.passport-toggle label {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #718096;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 0;
}

.passport-toggle input[type="radio"]:checked + label {
    background-color: #ffffff;
    color: #2d3748;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* --- SELECT FIELDS --- */
#vc-visa-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: #fff;
    font-size: 0.95rem;
    color: #2d3748;
    height: 48px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23718096' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#vc-visa-form select:focus {
    outline: none;
    border-color: #004382;
    box-shadow: 0 0 0 3px rgba(74, 94, 181, 0.15);
}

#vc-visa-form select:disabled {
    background-color: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
    border-color: #edf2f7;
}

/* --- SUBMIT BUTTON --- */
.submit-btn {
    width: 100%;
    padding: 14px 24px;
    height: auto;
    background-color: #004382;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.1s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background-color: #3b4d9e;
}

.submit-btn:active {
    transform: scale(0.99);
}

.submit-btn:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}

/* --- NATIONALITY SELECT (Non-US) --- */
#nat-select-wrapper {
    overflow: hidden;
}

/* --- RESULTS CONTAINER --- */
#vc-results-container {
    display: none;
}

/* --- RESULTS CARD --- */
.results-card {
    background: #ffffff;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: left;
}

.results-header {
    background-color: #004382;
    padding: 2.5rem 2.5rem 2.2rem;
    color: white;
    text-align: center;
}

.results-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    font-style: italic;
    color: #fff;
}

.results-header p {
    margin: 8px 0 0;
    opacity: 0.85;
    font-size: 0.95rem;
    color: #fff;
}

/* --- SUMMARY BAR --- */
.results-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 2rem;
    background-color: #f7fafc;
    border-bottom: 1px solid #edf2f7;
    flex-wrap: wrap;
}

.summary-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.summary-item i {
    color: #004382;
    margin-right: 5px;
    font-size: 0.8rem;
}

.summary-arrow {
    color: #cbd5e0;
    font-size: 0.75rem;
}

/* --- EMPTY STATE --- */
.results-empty {
    padding: 60px 40px;
    text-align: center;
}

.results-empty i {
    font-size: 2.5rem;
    color: #cbd5e0;
    margin-bottom: 16px;
}

.results-empty p {
    color: #718096;
    font-size: 1rem;
    margin: 0;
}

/* --- REQUIREMENTS LIST --- */
.requirements-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.req-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.req-item:last-child {
    border-bottom: none;
}

.req-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.req-content {
    flex: 1;
}

.req-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #2d3748;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.req-desc {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
}

.req-desc p {
    margin-bottom: 0;
}

/* --- BADGES --- */
.badge {
    font-size: 0.68rem;
    padding: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.badge-blue {
    color: #2b6cb0;
}

.badge-green {
    color: #2f855a;
}

.badge-orange {
    color: #c05621;
}

.badge-red {
    color: #c53030;
}

.badge-purple {
    color: #805ad5;
}

/* --- ACTION AREA --- */
.action-area {
    padding: 2rem;
    background-color: #fafbfc;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 220px;
    background-color: #004382;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.download-btn:hover {
    background-color: #3b4d9e;
}

.check-another-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 220px;
    background: none;
    border: 1px solid #e2e8f0;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.25s ease;
}

.check-another-btn:hover {
    border-color: #004382;
    color: #004382;
    background-color: #f7fafc;
}

/* --- REQUIREMENT BOX STYLES (grid layout) --- */
.visa-requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.requirement-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.requirement-box h4 {
    font-size: 1.1em;
    color: #004382;
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f0f0f0;
}

.requirement-box p:last-child {
    margin-bottom: 0;
}

.requirement-box ul,
.requirement-box ol {
    padding-left: 20px;
}

/* --- RESPONSIVE: TABLET & BELOW --- */
@media (max-width: 768px) {
    #vc-visa-checker-wrapper {
        max-width: 100%;
        padding: 0 16px;
    }

    .results-header {
        padding: 2rem 1.5rem 1.8rem;
    }

    .results-header h2 {
        font-size: 1.35rem;
    }

    .req-item {
        padding: 1.25rem 1.5rem;
    }

    .req-icon {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        font-size: 1.15rem;
        margin-right: 1rem;
    }

    .req-title {
        font-size: 1rem;
    }

    .req-desc {
        font-size: 0.9rem;
    }

    .action-area {
        flex-direction: column;
        padding: 1.5rem;
    }

    .download-btn,
    .check-another-btn {
        width: 100%;
        min-width: unset;
    }
}

/* --- RESPONSIVE: SMALL MOBILE --- */
@media (max-width: 480px) {
    .travel-card {
        padding: 28px 18px 22px;
    }

    .travel-card h2 {
        font-size: 1.25rem;
    }

    .results-header {
        padding: 1.5rem 1rem;
    }

    .results-header h2 {
        font-size: 1.2rem;
    }

    .results-header p {
        font-size: 0.85rem;
    }

    .results-summary {
        padding: 12px 1rem;
        gap: 6px;
    }

    .summary-item {
        font-size: 0.75rem;
    }

    .req-item {
        padding: 1rem;
    }

    .req-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 0.75rem;
    }

    .req-title {
        font-size: 0.9rem;
    }

    .req-desc {
        font-size: 0.85rem;
    }

    .visa-requirements-grid {
        grid-template-columns: 1fr;
    }
}

/* --- PRINT STYLES: Only show the results card --- */
@media print {
    /* Hide everything on the page */
    body * {
        visibility: hidden;
    }

    /* Show only the results card and its contents */
    #vc-visa-checker-wrapper,
    #vc-results-container,
    .results-card,
    .results-card * {
        visibility: visible;
    }

    /* Position the results card at the top of the page */
    #vc-visa-checker-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    #vc-results-container {
        display: block !important;
    }

    .results-card {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    /* Hide the action area buttons when printing */
    .action-area {
        display: none !important;
    }

    /* Hide the form card */
    .travel-card {
        display: none !important;
    }

    /* Clean up print styling */
    .results-header {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    .req-icon {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    .badge {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }
}
