/* Custom Styles for Infinity Trip Planners */

:root {
    --visa-theme: #fc1c07; /* Match project red */
    --visa-bg-light: #f8f9fa;
    --visa-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Visa Page Styles */
.visa-hero-title {
    font-family: var(--tn-title-font);
    font-weight: 800;
    color: #fff;
}

.country-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.country-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.country-card:hover {
    transform: translateY(-5px);
    border-color: var(--visa-theme);
    box-shadow: var(--visa-card-shadow);
}

.country-card.active {
    background: var(--visa-theme);
    border-color: var(--visa-theme);
    color: #fff;
}

.country-card .flag-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
    transition: 0.3s;
}

.country-card.active .flag-icon {
    border-color: #fff;
}

.country-card .country-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.visa-info-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--visa-card-shadow);
    margin-bottom: 40px;
}

.visa-header-box {
    border-left: 4px solid var(--visa-theme);
    padding-left: 20px;
    margin-bottom: 30px;
}

.visa-header-box h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--tn-title-color);
    margin-bottom: 5px;
}

.visa-card {
    border: 1px solid #f1f1f1;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    transition: 0.3s;
    position: relative;
    background: #fff;
}

.visa-card:hover {
    border-color: var(--visa-theme);
    box-shadow: 0 5px 15px rgba(252, 28, 7, 0.1);
}

.visa-card-type {
    font-size: 18px;
    font-weight: 700;
    color: var(--tn-title-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.visa-card-type i {
    color: var(--visa-theme);
}

.visa-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.visa-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

.visa-detail-item:last-child {
    border-bottom: none;
}

.visa-detail-item .label {
    color: #777;
    font-weight: 500;
}

.visa-detail-item .value {
    color: var(--tn-title-color);
    font-weight: 700;
}

.visa-price-tag {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--visa-theme);
}

.visa-form-sticky {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-top: 5px solid var(--visa-theme);
}

.form-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    color: var(--tn-title-color);
}

.custom-form-group {
    margin-bottom: 20px;
}

.custom-form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    color: #555;
}

.custom-form-group input, 
.custom-form-group select {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 0 15px;
    font-size: 14px;
    transition: 0.3s;
}

.custom-form-group input:focus {
    border-color: var(--visa-theme);
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 28, 7, 0.1);
}

.upload-box {
    border: 2px dashed #eee;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 10px;
}

.upload-box:hover {
    border-color: var(--visa-theme);
    background: rgba(252, 28, 7, 0.02);
}

.upload-box i {
    font-size: 24px;
    color: #ccc;
    margin-bottom: 10px;
}

.upload-box p {
    font-size: 12px;
    margin: 0;
    color: #777;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: 0.3s;
}

.faq-question {
    padding: 18px 25px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--tn-title-color);
    font-size: 16px;
}

@media (max-width: 767px) {
    .faq-question {
        font-size: 14px;
        padding: 15px 20px;
    }
    .faq-answer {
        padding: 0 20px 15px;
        font-size: 13px;
    }
}

.faq-question i {
    transition: 0.3s;
    color: var(--visa-theme);
}

.faq-answer {
    padding: 0 25px 20px;
    color: #666;
    display: none;
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--visa-theme);
    box-shadow: var(--visa-card-shadow);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    display: block;
}

@media (max-width: 991px) {
    .visa-info-wrap {
        padding: 20px;
    }
    .country-selection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .country-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .visa-card-type {
        font-size: 16px;
    }
}

/* Auth Page Styles (Login/Signup) */
.auth-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-form-toggle {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f1f1;
}

.auth-toggle-btn {
    padding-bottom: 15px;
    font-weight: 700;
    font-family: var(--tn-title-font);
    font-size: 20px;
    color: var(--tn-body-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-toggle-btn.active {
    color: var(--tn-theme-color);
}

.auth-toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--tn-theme-color);
}

.auth-form input {
    width: 100%;
    height: 55px;
    padding: 0 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: var(--tn-body-font);
    transition: all 0.3s ease;
}

.auth-form input:focus {
    border-color: var(--tn-theme-color);
    outline: none;
}

.auth-form .tn-btn {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-family: var(--tn-body-font);
}

.auth-footer a {
    color: var(--tn-theme-color);
    font-weight: 600;
}

/* Ok-to-Board Page Styles */
.otb-airline-list {
    list-style: none;
    padding: 0;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.otb-airline-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
}

.otb-airline-list li:hover,
.otb-airline-list li.active {
    background: #fff;
    transform: translateX(5px);
    color: var(--tn-theme-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.otb-airline-list li:last-child {
    border-bottom: none;
}

.otb-airline-list li i {
    color: var(--tn-theme-color);
    font-size: 14px;
}

.airline-title {
    background: var(--tn-theme-color);
    color: #fff;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
    font-size: 20px;
    text-align: center;
}

.otb-content-title {
    color: var(--tn-title-color);
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 40px;
}

.otb-details p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.doc-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    list-style: none;
}

.doc-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--tn-theme-color);
}

.country-rules {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.country-rules h4 {
    color: var(--tn-theme-color);
    margin-bottom: 15px;
}

.otb-content {
    display: none;
}

.otb-content.active {
    display: block;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.step-item {
    flex: 1 1 200px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--tn-theme-color);
}

.step-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--tn-theme-color);
    margin-bottom: 10px;
    display: block;
}

.document-required {
    margin-top: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.document-required h4 {
    color: var(--tn-theme-color);
    margin-bottom: 15px;
}

.process-step {
    flex: 1;
    min-width: 120px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
}

.process-step-number {
    width: 30px;
    height: 30px;
    background: var(--tn-theme-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
}

.process-step p {
    font-size: 14px;
    margin: 0;
    color: #555;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
