/* * VISA BOOKING SYSTEM STYLES - FINAL VERSION
 * Includes: Product Form, Sticky Summary, Add-ons, Checkout Logic, Review Modal, Admin Styles
 */

/* ==========================================================================
 * 1. PRODUCT PAGE LAYOUT & FORM
 * ========================================================================== */
.visa-booking-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
}

.visa-form-col {
    flex: 1;
    min-width: 300px;
}

.visa-summary-col {
    flex: 0 0 350px;
    max-width: 100%;
}

/* Main Form Wrapper */
.visa-application-wrapper.style-table-form {
    background: #fff;
    padding: 30px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.visa-form-title {
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #e64a19;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* WooCommerce Variations Table Reset */
.visa-application-wrapper .variations {
    width: 100%;
    display: block;
    margin-bottom: 0;
    border: none;
}

.visa-application-wrapper .variations tbody {
    display: block;
}

.visa-application-wrapper .variations tr {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 20px;
}

.visa-application-wrapper .variations td.label {
    padding: 0;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    height: auto;
    min-height: 40px;
    padding-top: 0 !important;
    background: transparent;
}

.visa-application-wrapper .variations td.value {
    padding: 0;
    background: transparent;
}

/* Custom Inputs */
.visa-application-wrapper select,
.custom-qty-dropdown {
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    width: 100%;
    margin-bottom: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.custom-qty-dropdown {
    width: 100px;
}

.custom-qty-wrapper {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 20px;
}

.custom-qty-wrapper .qty-label {
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* Radio Buttons Styling */
.custom-radios-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-item {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    margin: 0;
    position: relative;
    padding: 5px 0;
}

.radio-item input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.3);
    accent-color: #00aeff;
    /* Modern browsers */
    margin-bottom: 0;
}

.radio-item .radio-text {
    font-size: 15px;
    color: #333;
}

.radio-item input:checked+.radio-text {
    font-weight: bold;
    color: #000;
}

/* =============================================
   NEW: FASTTRACK GRID & BUTTON STYLES
   ============================================= */
.visa-section-title {
    /* Gold/Brown like image */
    font-weight: bold;
    font-size: 16px;
    margin: 0 0 20px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* ==========================================================================
 * UNIFIED GRID SYSTEM (Resetting Table to Div behavior)
 * ========================================================================== */

/* 1. Container Reset */
.visa-application-wrapper .variations,
.visa-application-wrapper .variations tbody {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* 2. Row Unification (Grid) */
.visa-grid-row,
.custom-qty-wrapper,
.visa-application-wrapper .variations tr {
    display: grid !important;
    grid-template-columns: 35% 65% !important;
    /* Strict 35/65 Split */
    gap: 15px;
    /* Unified Gap */
    align-items: center;
    margin-bottom: 0;
    /* Unified spacing between rows */
    width: 100%;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* 3. Cell/Label Reset */
.visa-grid-row label,
.custom-qty-wrapper label,
.visa-application-wrapper .variations td.label {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    background: transparent !important;
}

/* Match label inside td if nested */
.visa-application-wrapper .variations td.label label {
    margin: 0 !important;
    font-weight: 600;
    font-size: 14px;
}

/* 4. Input Container Reset */
.visa-grid-row .field-wrap,
.visa-application-wrapper .variations td.value {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* 5. Input Styling (Universal) */
.visa-grid-row input,
.visa-grid-row select,
.custom-qty-wrapper select,
.visa-application-wrapper .variations td.value select {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    color: #333 !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    line-height: normal !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.visa-grid-row input:focus,
.visa-grid-row select:focus,
.custom-qty-wrapper select:focus,
.visa-application-wrapper .variations td.value select:focus {
    border-color: #007cba !important;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1) !important;
    outline: none !important;
}

/* Fix spacing gap between Variation Table and Custom Fields */
.visa-application-wrapper form.variations_form {
    margin: 0 !important;
}

.visa-application-wrapper .single_variation_wrap,
.fasttrack-service-info {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove default WC spacing that breaks grid */
.visa-application-wrapper .variations {
    margin-bottom: 0px !important;
}

/* Button Dark Blue */
.visa-application-wrapper button.single_add_to_cart_button {
    background-color: #0b1e35;
    /* Dark Blue */
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    height: 45px;
    margin-top: 25px;
}

.visa-application-wrapper button.single_add_to_cart_button:hover {
    background-color: #152d4a;
}

/* Price & Submit Button */
.visa-application-wrapper .woocommerce-variation-price {
    grid-column: 2 / -1;
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #e64a19;
    font-weight: bold;
}

.reset_variations {
    display: none !important;
}

.visa-application-wrapper button.single_add_to_cart_button {
    width: 100%;
    background-color: #e64a19;
    color: #fff;
    margin-top: 10px;
    height: 50px;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.visa-application-wrapper button.single_add_to_cart_button:hover {
    background-color: #d84315;
}

/* ==========================================================================
 * 2. STICKY SUMMARY BOX (RIGHT COLUMN)
 * ========================================================================== */
.summary-box-styled {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
    position: sticky;
    top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 99;
}

.summary-row-styled {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 14px;
    flex-wrap: wrap;
}

.summary-label {
    font-weight: bold;
    color: #333;
    flex: 1;
    margin-right: 10px;
}

.summary-value {
    color: #555;
    text-align: right;
    font-weight: normal;
}

.price-highlight {
    color: #005f7f;
    font-weight: bold;
}

.service-fee-note {
    width: 100%;
    font-style: italic;
    color: #777;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.3;
}

.summary-total-row {
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.total-value {
    font-weight: bold;
    font-size: 22px;
    color: #d9534f;
}

.summary-footer-note {
    padding: 10px 15px;
    font-size: 13px;
    color: #555;
    background: #fff;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.addon-detail-list {
    width: 100%;
}

/* ==========================================================================
 * 3. CUSTOM ADD-ONS SECTION (INSIDE FORM)
 * ========================================================================== */
.custom-add-on-fields-wrapper h2 {
    font-size: 1.25em;
    color: #d8812c;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.addon-group {
    margin-bottom: 20px;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
    background: #fff;
    transition: all 0.3s;
}

.addon-group.addon-active {
    border-color: #d8812c;
    background-color: #fffdf9;
    box-shadow: 0 2px 8px rgba(216, 129, 44, 0.15);
}

.addon-toggle {
    font-weight: bold;
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.addon-toggle label {
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

.addon-toggle .addon-title {
    margin-left: 10px;
    font-size: 16px;
    color: #333;
}

.addon-content {
    display: none;
    padding-top: 15px;
    border-top: 1px dashed #eee;
    margin-top: 15px;
}

/* UNIFIED GRID SYSTEM FOR ADD-ONS & FASTTRACK */
.addon-content .form-row,
.visa-grid-row,
.custom-qty-wrapper {
    display: grid !important;
    grid-template-columns: 35% 65%;
    /* Consistent 35/65 Split */
    gap: 15px;
    align-items: center;
    margin-bottom: 12px !important;
    /* Compact spacing */
    clear: both;
    width: 100%;
}

.addon-content label,
.visa-grid-row label,
.custom-qty-wrapper label {
    width: 100%;
    float: none;
    margin: 0;
    text-align: left;
    /* Align text left */
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.addon-content input,
.addon-content select,
.visa-grid-row input,
.visa-grid-row select,
.custom-qty-wrapper select {
    width: 100% !important;
    float: none;
    margin: 0 !important;
    height: 40px !important;
    /* Fixed elegant height */
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    padding: 0 10px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.addon-content input:focus,
.addon-content select:focus,
.visa-grid-row input:focus,
.visa-grid-row select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
    outline: none;
}

/* Remove Clears needed for Floats */
.addon-content:after {
    display: none;
}

/* Helper to align checkbox vertically if needed */
.addon-content p.form-row {
    margin-bottom: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {

    .addon-content .form-row,
    .visa-grid-row,
    .custom-qty-wrapper {
        grid-template-columns: 100%;
        /* Stack on mobile */
        gap: 5px;
    }

    .addon-content label,
    .visa-grid-row label {
        margin-bottom: 2px;
    }
}

/* ==========================================================================
 * 4. CHECKOUT PAGE STYLES (TRAVEL & APPLICANTS)
 * ========================================================================== */
/* Column Layout for Date/Port inputs */
@media (min-width: 850px) {
    .visa-col-50 {
        width: 48% !important;
        float: left;
        margin-bottom: 15px;
        clear: none !important;
    }

    .visa-col-50.col-right {
        float: right !important;
        margin-right: 0 !important;
    }

    .visa-col-50 .woocommerce-input-wrapper {
        width: 100%;
    }
}

@media (max-width: 849px) {
    .visa-col-50 {
        width: 100% !important;
        float: none;
        margin-bottom: 15px;
    }
}

.travel-info-box {
    background: #f0f7ff;
    padding: 20px;
    border: 1px solid #cce5ff;
    border-radius: 8px;
    margin-bottom: 30px;
}

.travel-info-title {
    color: #007cba;
    border-bottom: 2px solid #007cba;
    display: inline-block;
    margin-bottom: 20px;
}

.travel-info-fields {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Applicant Cards */
.applicant-group {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.applicant-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    align-items: center;
}

.applicant-title {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.applicant-subtitle {
    color: #666;
    font-size: 13px;
}

.btn-remove-applicant {
    background: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

/* Upload Grid */
.upload-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.upload-box {
    flex: 1;
    border: 1px dashed #ccc;
    padding: 20px;
    text-align: center;
    background: #fff;
    border-radius: 4px;
    transition: all 0.3s;
}

.upload-box:hover {
    border-color: #e64a19;
    background: #fffdfa;
}

.upload-preview-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border: 1px solid #eee;
    display: block;
}

.btn-trigger-upload {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 15px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-trigger-upload:hover {
    background: #e64a19;
    color: #fff;
    border-color: #e64a19;
}

.upload-caption {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}

.upload-status {
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

/* Send Later Checkbox */
.send-later-wrapper {
    margin-bottom: 20px;
    background: #fff3cd;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #ffeeba;
    display: flex;
    align-items: center;
}

.send-later-wrapper label {
    margin-left: 8px;
    font-weight: 600;
    cursor: pointer;
    color: #856404;
    margin-bottom: 0;
}

.send-later-wrapper input {
    transform: scale(1.2);
    cursor: pointer;
    margin-bottom: 0;
}

/* ==========================================================================
 * 5. REVIEW ORDER SECTION (THE POPUP/INLINE MODAL)
 * ========================================================================== */
.visa-review-section-wrapper {
    margin-bottom: 30px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.visa-review-box {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    font-family: inherit;
    border: 1px solid #ddd !important;
}

.visa-review-header {
    background: #007cba;
    padding: 15px 20px;
}

.visa-review-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visa-review-body {
    padding: 20px;
}

/* Review Blocks */
.review-block {
    margin-bottom: 20px;
}

.review-block h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background: #f5f5f5;
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #e64a19;
}

.order-summary-highlight {
    background: #fffdf5;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.order-summary-highlight h4 {
    color: #d8812c;
    border-bottom: 1px dashed #d8812c;
    border-left: none;
    background: transparent;
    padding: 0 0 5px 0;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 15px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.review-item {
    font-size: 14px;
}

.review-item label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 2px;
    font-weight: 600;
}

.review-item span {
    color: #000;
    font-weight: 500;
}

/* Phone Field */
.visa-phone-wrapper {
    display: flex;
    align-items: stretch;
}

.visa-phone-prefix {
    width: 110px;
    flex-shrink: 0;
    margin-right: 5px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

/* Footer & Buttons */
.visa-review-footer {
    padding: 15px 20px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #eee;
    border-color: #999;
}

.review-note {
    font-size: 13px;
    font-style: italic;
    color: #666;
}

/* Terms Block inside Review */
.terms-block {
    background: #fff8e1;
    padding: 15px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
}

.terms-content p {
    font-size: 13px;
    margin-bottom: 5px;
    color: #856404;
}

/* ==========================================================================
 * 6. CHECKOUT TOGGLE LOGIC (CRITICAL FOR PAYMENT/TERMS)
 * ========================================================================== */

/* State 1: Before "Review Order" Clicked (Editing Mode) */
/* Hide Payment Methods and Terms initially */
#payment .payment_methods,
#payment .wc_payment_methods {
    display: none;
}

#payment .woocommerce-terms-and-conditions-wrapper {
    display: none;
}

/* Always show the "Place Order" button container, but rename it via JS */
#payment .place-order {
    display: block !important;
}

/* State 2: After "Review Order" Confirmed (Payment Mode) */
/* JS adds class 'visa-payment-unlocked' to body */
body.visa-payment-unlocked #payment .payment_methods,
body.visa-payment-unlocked #payment .wc_payment_methods,
body.visa-payment-unlocked #payment .woocommerce-terms-and-conditions-wrapper {
    display: block !important;
    /* Force show */
    animation: fadeIn 0.5s;
}

/* Specific styling for checkout button container when unlocked */
#checkout_payment_wrapper {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Hide Form Sections when in Review Mode */
body.visa-review-mode-active .col2-set,
body.visa-review-mode-active .travel-info-box,
body.visa-review-mode-active .applicant-group,
body.visa-review-mode-active #customer_details {
    display: none !important;
}

/* ==========================================================================
 * 7. AJAX NOTICES & VALIDATION STYLES
 * ========================================================================== */
.visa-ajax-notices {
    margin-bottom: 20px;
    display: none;
    /* Hidden by default */
}

.visa-ajax-notices .woocommerce-error,
.visa-ajax-notices .woocommerce-message,
.visa-ajax-notices .woocommerce-info {
    margin-bottom: 0 !important;
    padding: 15px !important;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.visa-input-error {
    border-color: #d9534f !important;
    background-color: #fff6f6 !important;
    box-shadow: 0 0 5px rgba(217, 83, 79, 0.3) !important;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

/* ==========================================================================
 * 8. ORDER DETAILS PAGE CUSTOMIZATIONS
 * ========================================================================== */
/* Hide default WooCommerce billing address on order details page since we show it in custom summary */
.woocommerce-order-received .woocommerce-customer-details,
.woocommerce-order-received .woocommerce-columns,
.woocommerce-order-received .woocommerce-column {
    display: none !important;
}

/* ==========================================================================
 * 9. RESPONSIVE TWEAKS
 * ========================================================================== */
@media (max-width: 768px) {
    .visa-summary-col {
        flex: 0 0 100% !important;
    }

    .checkout-visa-summary-wrapper {
        margin-top: 20px;
    }

    .visa-application-wrapper .variations tr {
        grid-template-columns: 1fr;
    }

    .visa-application-wrapper .variations td.label {
        margin-bottom: 5px;
    }

    .custom-qty-wrapper {
        grid-template-columns: 1fr;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .visa-review-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ==========================================================================
 * 10. NEW: CUSTOM PROGRESS BAR STYLES
 * ========================================================================== */
.visa-progress-wrapper {
    margin-bottom: 30px;
    padding: 10px 0;
}

.visa-progress-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.visa-step {
    text-align: center;
    position: relative;
    z-index: 2;
    min-width: 120px;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    color: #777;
    line-height: 40px;
    font-weight: bold;
    margin: 0 auto 10px;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.step-label {
    font-size: 14px;
    color: #999;
    font-weight: 600;
}

/* Active Step */
.visa-step.active .step-icon {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
    box-shadow: 0 0 0 4px rgba(0, 124, 186, 0.1);
}

.visa-step.active .step-label {
    color: #007cba;
}

/* Completed Step */
.visa-step.completed .step-icon {
    background: #fff;
    color: #28a745;
    border-color: #28a745;
}

.visa-step.completed .step-label {
    color: #28a745;
}

/* Connector Line */
.step-line {
    flex: 1;
    height: 2px;
    background: #eee;
    margin: -25px 5px 0;
    position: relative;
    z-index: 1;
}

.step-line.completed {
    background: #28a745;
}

/* HIDE DEFAULT FLATSOME BREADCRUMB if it exists */
.checkout-breadcrumb,
.page-title-inner .breadcrumb,
.page-title {
    display: none !important;
}

/* ==========================================================================
 * 11. TRUST BADGES & SIDEBAR BOXES
 * ========================================================================== */
.visa-trust-wrapper {
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.visa-trust-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 25px 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 15px;
}

.trust-header {
    text-align: center;
    font-size: 18px;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: none;
    text-transform: none;
}

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

.trust-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
}

.trust-item:last-child {
    margin-bottom: 0;
}

/* Icon Check */
.trust-item i.icon-checkmark {
    color: #d8812c;
    font-size: 18px;
    margin-right: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.trust-content strong {
    color: #d8812c;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.trust-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.trust-content a {
    color: #007cba;
    text-decoration: underline;
}

/* Rating Box */
.visa-rating-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.rating-text {
    font-weight: 800;
    font-size: 18px;
    color: #333;
}

/* ==========================================================================
 * 12. NEW: STICKY SIDEBAR & TRUST BADGES STYLES
 * ========================================================================== */

/* --- 1. Sticky Logic --- */
/* Reset sticky for the summary box itself so it doesn't float alone */
#visa-sticky-summary.summary-box-styled {
    position: relative !important;
    top: auto !important;
    z-index: 1;
    margin-bottom: 15px;
}

/* Apply sticky to the entire column container (Summary + Badges) */
.visa-summary-col {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 90;
    align-self: flex-start;
    height: auto;
}

/* --- 2. New Badges Styles --- */
.visa-trust-new-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    font-family: inherit;
}

.visa-trust-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 20px 15px;
    text-align: center;
}

/* Horizontal Layout for SSL box */
.visa-trust-card.row-layout {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 15px;
}

/* TRUSTPILOT */
.tp-text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.tp-star-icon {
    color: #00b67a;
    margin: 0 3px;
    font-size: 16px;
}

.tp-brand {
    font-weight: 800;
    margin-left: 5px;
    color: #000;
}

/* SSL SECURE */
.ssl-icon {
    font-size: 32px;
    color: #8f9bb3;
    margin-right: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.ssl-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    letter-spacing: 0.5px;
}

.ssl-content p {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    margin: 0;
}

/* MONEY BACK */
.mb-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.mb-badge-bg {
    font-size: 42px;
    color: #409eff;
}

.mb-percent-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.mb-ribbon-title {
    display: inline-block;
    border: 1px solid #409eff;
    color: #409eff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    background: #f0f9ff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.mb-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
    padding: 0 10px;
}

/* ==========================================================================
 * 12. COMBINED RATINGS (Google + Trustpilot)
 * ========================================================================== */
.visa-ratings-combined {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4fd 100%);
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.visa-rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.visa-rating-item .rating-logo {
    height: 20px;
    width: auto;
}

.visa-rating-item .tp-brand {
    font-size: 14px;
    font-weight: 700;
    color: #00b67a;
}

.visa-rating-item .tp-star-icon {
    color: #00b67a;
    margin-right: 4px;
}

.visa-rating-item .rating-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visa-rating-item .rating-score {
    font-size: 16px;
    font-weight: 800;
    color: #333;
}

.visa-rating-item .rating-stars {
    color: #f5c518;
    font-size: 14px;
    letter-spacing: 1px;
}

.rating-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #ccc, transparent);
}

@media (max-width: 480px) {
    .visa-ratings-combined {
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px;
    }

    .rating-divider {
        width: 60%;
        height: 1px;
        background: linear-gradient(to right, transparent, #ccc, transparent);
    }
}

/* VISA REQUIREMENTS TABLE STYLES */
.evisa-policy-table-wrapper {
    overflow-x: auto;
}

.evisa-policy-table {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.evisa-policy-table th {
    background-color: #f7f7f7;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    color: #555;
    border-bottom: 2px solid #ddd;
}

.evisa-policy-table td {
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    color: #333;
}

.evisa-policy-table tr:last-child td {
    border-bottom: none;
}

.evisa-policy-table tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Content Styles */
.evisa-auto-content h2 {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #222;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.evisa-auto-content h3 {
    font-size: 1.1em;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #444;
}

.evisa-auto-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.evisa-auto-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.evisa-auto-content li {
    margin-bottom: 8px;
    color: #555;
}