/* =====================================================
   BREADCRUMB NAVIGATION
   ===================================================== */
/* Remove excess bottom whitespace under "Address During Visit" */

/* Reduce section-header height and font-size for PERSONAL INFORMATION and Upload Guidelines modals */
.section-header, .modal-header-upload h5 {
    min-height: 36px;
    height: 36px;
    font-size: 1.05rem !important;
    padding-top: 3px;
    padding-bottom: 3px;
    display: flex;
    align-items: center;
}

.form-container:first-child .section-header {
    min-height: 30px;
    height: 30px;
    font-size: 0.98rem;
}
.section-header {
    min-height: 36px;
    height: 36px;
    font-size: 1.05rem;
    padding-top: 3px;
    padding-bottom: 3px;
}

/* Fine tune first section-header if needed */
.form-container:first-child .section-header {
    min-height: 30px;
    height: 30px;
    font-size: 0.98rem;
}

#addressduringvisit {
    margin-bottom: 0 !important;
}
#addressduringvisit_counter {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.form-group-icon:last-child,
.input-icon-wrapper.textarea-counter-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.breadcrumb-wrapper {
    margin-top: 76px; /* Account for fixed navbar */
    background: var(--terms-bg-white);
    border-bottom: 1px solid var(--terms-border-light);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: var(--terms-font-small);
    color: var(--terms-text-muted);
    margin-bottom: 0;
}

.breadcrumb-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--terms-text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
    color: var(--terms-primary);
    text-decoration: none;
}

.breadcrumb-nav .breadcrumb-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.breadcrumb-nav .breadcrumb-separator {
    color: var(--terms-text-muted);
    margin: 0 4px;
    font-weight: 400;
}

.breadcrumb-nav .breadcrumb-current {
    color: var(--terms-text-muted);
    font-weight: 400;
}

/* =====================================================
   CSS VARIABLES - Common Values for Reusability
   ===================================================== */
:root {
    --terms-text-color: #000000;
    --terms-text-muted: #555555;
    --terms-text-light: #333333;
    --terms-bg-white: #ffffff;
    --terms-bg-light: #f8f8f8;
    --terms-bg-section: #f8f9fb;
    --terms-border: #cccccc;
    --terms-border-light: #dddddd;
    --terms-border-gray: #aaaaaa;
    --terms-border-divider: #e0e0e0;
    --terms-primary: #0d4f8b;
    --terms-primary-hover: #0b406f;
    --terms-secondary: #d32f2f;
    --terms-secondary-hover: #b71c1c;
    --visa-step-active: #b45b35;
    --visa-step-active-dark: #8f4323;
    --visa-step-neutral: #555555;
    --visa-step-neutral-dark: #3c3c3c;
    --visa-step-border: #d4c7bb;
    --visa-step-bg: #f4f5f7;
    --visa-step-gap: #ffffff;
    --terms-font-base: 15px;
    --terms-font-small: 14px;
    --terms-font-large: 17px;
    --terms-font-xl: 19px;
    --terms-font-xxl: 22px;
    --terms-line-height: 1.6;
    --terms-spacing-xs: 4px;
    --terms-spacing-sm: 8px;
    --terms-spacing-md: 12px;
    --terms-spacing-lg: 16px;
    --terms-spacing-xl: 24px;
    --terms-transition: transform 0.2s ease, box-shadow 0.2s ease;
    --terms-hover-transform: translateY(-2px);
    --status-primary: rgb(68, 115, 8);
    --status-primary-hover: rgb(48, 85, 5);
}

/* =====================================================
   HEADING HIERARCHY SAFEGUARD
   Ensure h2 never appears larger than h1 in content.
   ===================================================== */
main h1 {
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    line-height: 1.2;
}

main h2 {
    font-size: clamp(1.35rem, 2.1vw, 1.95rem);
    line-height: 1.25;
}

/* =====================================================
   TERMS PAGE LAYOUT
   ===================================================== */
.terms-page {
    padding: 100px 0 20px;
    background: var(--terms-bg-light);
    min-height: 100vh;
    margin-top: 0;
    scroll-margin-top: 80px;
}

.terms-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: var(--terms-bg-white);
    padding: 25px 35px;
    border: 1px solid var(--terms-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Responsive Container Max-Widths */
@media (min-width: 1400px) {
    .terms-container {
        max-width: 1320px;
        padding: 30px 50px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .terms-container {
        max-width: 1140px;
        padding: 30px 40px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .terms-container {
        max-width: 960px;
        padding: 25px 35px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .terms-container {
        max-width: 720px;
        padding: 25px 30px;
    }
}

@media (max-width: 767px) {
    .terms-container {
        max-width: 100%;
        padding: 20px 25px;
    }
}

/* =====================================================
   TERMS HEADER & INTRO
   ===================================================== */
.terms-header {
    text-align: left;
    margin-bottom: 18px;
    padding-bottom: var(--terms-spacing-md);
    border-bottom: 2px solid var(--terms-text-color);
}

.terms-header h1 {
    font-size: var(--terms-font-xxl);
    font-weight: 700;
    color: var(--terms-text-color);
    margin-bottom: var(--terms-spacing-xs);
    line-height: 1.2;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.terms-header p {
    font-size: var(--terms-font-small);
    color: var(--terms-text-muted);
    margin: 0;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.terms-intro {
    background: var(--terms-bg-white);
    padding: 0;
    border-radius: 0;
    border-left: none;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--terms-border-light);
    padding-bottom: var(--terms-spacing-md);
}

.terms-intro p {
    font-size: var(--terms-font-base);
    line-height: var(--terms-line-height);
    color: var(--terms-text-color);
    margin: 0;
    text-align: left;
}

/* =====================================================
   ACCORDION HEADER TWEAKS
   ===================================================== */
.accordion-header {
    font-size: 14px;
    line-height: 1.2;
    min-height: 36px;
}

.accordion-header .accordion-button {
    font-size: inherit;
    padding: 6px 12px;
}

.accordion-title {
    font-size: 14px;
    line-height: 1.3;
}

.accordion-button.collapsed {
    min-height: 36px;
    padding: 6px 12px;
}

.accordion-body.seo-content-block {
    padding-top: 0;
}

/* =====================================================
   TERMS CONTENT - Common Text Styles
   ===================================================== */
.terms-content {
    line-height: var(--terms-line-height);
    color: var(--terms-text-color);
    font-size: var(--terms-font-base);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.terms-content h2 {
    font-size: var(--terms-font-xl);
    font-weight: 700;
    color: var(--terms-text-color);
    margin-top: var(--terms-spacing-lg);
    margin-bottom: var(--terms-spacing-sm);
    padding-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.terms-content h2:first-of-type,
.terms-content .terms-section:first-of-type h2 {
    margin-top: 0;
}

.terms-content h3 {
    font-size: var(--terms-font-large);
    font-weight: 600;
    color: var(--terms-text-color);
    margin-top: var(--terms-spacing-md);
    margin-bottom: 6px;
}

.terms-content h4 {
    font-size: var(--terms-font-base);
    font-weight: 600;
    color: var(--terms-text-color);
    margin-top: var(--terms-spacing-sm);
    margin-bottom: 4px;
}

.terms-content p,
.terms-content li {
    font-size: var(--terms-font-base);
    line-height: var(--terms-line-height);
    margin-bottom: var(--terms-spacing-sm);
    color: var(--terms-text-color);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.terms-content ul,
.terms-content ol {
    margin: 6px 0;
    padding-left: 22px;
}

.terms-content strong,
.terms-content .col-md-12 strong,
.terms-content .col-md-7 strong,
.terms-content .col-md-8 strong,
.terms-content .col-md-5 strong,
.terms-content .col-md-4 strong {
    color: var(--terms-text-color);
    font-weight: 700;
}

/* =====================================================
   TERMS HIGHLIGHT & NOTE BOXES - Consolidated
   ===================================================== */
.terms-highlight,
.terms-note {
    background: var(--terms-bg-white);
    padding: 6px 0;
    border-radius: 0;
    margin: 6px 0;
    padding-left: 10px;
}

.terms-highlight {
    border-left: 2px solid var(--terms-text-color);
}

.terms-note {
    border: none;
    border-left: 1px solid var(--terms-border-gray);
}

.terms-highlight p,
.terms-note p {
    margin: 0;
    font-size: var(--terms-font-base);
    line-height: var(--terms-line-height);
}

.terms-highlight p {
    font-weight: 600;
}

.terms-note p {
    font-style: normal;
    color: var(--terms-text-light);
    line-height: 1.5;
}

/* =====================================================
   VISA APPLICATION STEP GUIDE
   ===================================================== */
.visa-steps-card {
    background: var(--visa-step-bg);
    border: 2px dashed var(--visa-step-border);
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    position: relative;
}

.visa-steps-card h2 {
    margin-top: 0;
    margin-bottom: var(--terms-spacing-sm);
    text-transform: uppercase;
    text-align: center;
}

.visa-steps-card h3 {
    margin-top: var(--terms-spacing-md);
    margin-bottom: var(--terms-spacing-sm);
    text-align: center;
}

.visa-steps-flow {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 20px 0 24px;
    border-radius: 40px;
    overflow: hidden;
    background: var(--visa-step-bg);
}

.visa-step {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px 12px 36px;
    background: var(--visa-step-neutral);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    flex: 1 1 0;
    min-height: 48px;
}

.visa-step:not(:first-child) {
    padding-left: 42px;
}

.visa-step:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-left: 24px solid var(--visa-step-gap);
    transform: translateX(-24px);
    z-index: 1;
}

.visa-step::after {
    content: "";
    position: absolute;
    top: 0;
    right: -24px;
    width: 0;
    height: 0;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-left: 24px solid var(--visa-step-neutral);
    z-index: 2;
}

.visa-steps-flow .visa-step:last-child {
    border-radius: 0;
    padding-right: 36px;
}

.visa-steps-flow .visa-step:last-child::after {
    display: none;
}

.visa-step-accent {
    background: var(--visa-step-active);
}

.visa-step-accent::after {
    border-left-color: var(--visa-step-active);
}

.visa-step-accent:not(:first-child)::before {
    border-left-color: var(--visa-step-gap);
}

.visa-step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--terms-spacing-lg);
}

.visa-step-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--terms-bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.visa-step-number {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--visa-step-active);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(180, 91, 53, 0.3);
}

.visa-step-content h4 {
    margin-top: 0;
    margin-bottom: var(--terms-spacing-xs);
    font-size: var(--terms-font-large);
}

.visa-step-content p {
    margin-bottom: var(--terms-spacing-xs);
}

.visa-step-actions {
    margin-top: var(--terms-spacing-xs);
}

.visa-step-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 24px;
    border: 2px solid var(--visa-step-active);
    color: var(--visa-step-active);
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(180, 91, 53, 0.15);
    justify-content: center;
}

.visa-step-button:hover,
.visa-step-button:focus {
    background: var(--visa-step-active);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.visa-step-button:focus {
    box-shadow: 0 0 0 4px rgba(180, 91, 53, 0.2);
}

.visa-requirements-card {
    background: #ffffff;
    border: 1px solid var(--terms-border-light);
    border-radius: 16px;
    padding: 26px 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: var(--terms-spacing-sm);
}

.visa-requirements-card h2 {
    margin-top: 0;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Match h3 in entry-points section to visa-requirements-card h2 styling */
#entry-points .col-md-6 h3:first-of-type {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    margin-top: 0;
}

/* Sections 8, 9, 10 - Match Section 7 styling */
.terms-section .col-md-6 h3:first-of-type,
.terms-section .dashbox h3:first-of-type,
.terms-section > .row > .col-md-6 > h3:first-of-type {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: var(--terms-spacing-md);
}

.visa-requirements-card ul {
    margin-left: 18px;
}

.visa-requirements-card ul li {
    margin-bottom: 6px;
}

.visa-requirements-card p:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .visa-steps-flow {
        gap: 8px;
    }

    .visa-step {
        padding: 10px 20px;
        flex: 1 1 45%;
        min-width: 140px;
    }

    .visa-step::after {
        right: -20px;
        border-left-width: 20px;
        border-top-width: 20px;
        border-bottom-width: 20px;
    }
}

@media (max-width: 767px) {
    .visa-steps-card {
        padding: 22px 20px;
    }

    .visa-requirements-card {
        padding: 22px 20px;
    }

    .visa-steps-flow {
        flex-direction: column;
        gap: 6px;
        border-radius: 16px;
    }

    .visa-step {
        border-radius: 10px;
        padding: 12px 16px;
        min-height: auto;
    }

    .visa-step::after {
        display: none;
    }

    .visa-step::before {
        display: none;
    }

    .visa-step-list li {
        flex-direction: column;
        padding: 16px;
    }

    .visa-step-number {
        width: 34px;
        height: 34px;
    }
}

/* =====================================================
   TERMS HIGHLIGHT & NOTE BOXES - Consolidated
   ===================================================== */
.terms-section {
    margin-bottom: var(--terms-spacing-xl);
    page-break-inside: avoid;
}

.terms-section:last-of-type {
    margin-bottom: 0;
}

/* Ensure Bootstrap columns maintain terms-content styling */
.terms-content .row {
    margin-bottom: 0;
}

.terms-content .col-md-12,
.terms-content .col-md-7,
.terms-content .col-md-8,
.terms-content .col-md-5,
.terms-content .col-md-4,
.terms-content .col-lg-8,
.terms-content .col-lg-4 {
    font-size: var(--terms-font-base);
    line-height: var(--terms-line-height);
    color: var(--terms-text-color);
}

/* Ensure all content inside Bootstrap columns gets proper styling */
.terms-section .row .col-md-12,
.terms-section .row .col-md-7,
.terms-section .row .col-md-8,
.terms-section .row .col-md-5,
.terms-section .row .col-md-4 {
    font-size: var(--terms-font-base) !important;
    line-height: var(--terms-line-height) !important;
    color: var(--terms-text-color) !important;
}

/* =====================================================
   FOOTER INFO SECTION
   ===================================================== */
.footer-info-section {
    padding: 40px 0;
    background: var(--terms-bg-section);
}

.info-links {
    text-align: center;
}

.info-links-title {
    font-size: 20px;
    color: var(--terms-text-color);
    margin-bottom: var(--terms-spacing-xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px var(--terms-spacing-xl);
    padding: 0;
    margin: 0;
}

.info-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--terms-spacing-md) var(--terms-spacing-lg);
    border-radius: 8px;
    background: var(--terms-bg-white);
    color: var(--terms-primary);
    font-size: var(--terms-font-base);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-light);
    transition: var(--terms-transition);
}

.info-link:hover,
.info-link:focus {
    transform: var(--terms-hover-transform);
    box-shadow: var(--shadow-medium);
    color: var(--terms-primary);
}

/* =====================================================
   FOOTER ACTIONS & BUTTONS
   ===================================================== */
.footer-actions-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--terms-spacing-xl);
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

.footer-social-share {
    flex: 1 1 280px;
}

.footer-navigation-buttons {
    flex: 1 1 100%;
    width: 100%;
    display: flex;
}

.footer-button-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--terms-spacing-lg);
    width: 100%;
}

/* =====================================================
   FOOTER BUTTONS - Consolidated Styles
   ===================================================== */
.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: var(--terms-spacing-md) var(--terms-spacing-xl);
    border-radius: 6px;
    font-size: var(--terms-font-base);
    font-weight: 600;
    text-decoration: none;
    color: var(--terms-bg-white);
    box-shadow: var(--shadow-light);
    transition: var(--terms-transition);
}

.footer-btn i {
    font-size: 16px;
}

.footer-btn-home {
    background: var(--terms-primary);
}

.footer-btn-home:hover,
.footer-btn-home:focus {
    background: var(--terms-primary-hover);
    transform: var(--terms-hover-transform);
    box-shadow: var(--shadow-medium);
}

.footer-btn-apply {
    background: var(--terms-secondary);
}

.footer-btn-apply:hover,
.footer-btn-apply:focus {
    background: var(--terms-secondary-hover);
    transform: var(--terms-hover-transform);
    box-shadow: var(--shadow-medium);
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--terms-border-divider);
}

.back-to-top a {
    color: var(--terms-text-color);
    text-decoration: underline;
    font-weight: 400;
    font-size: var(--terms-font-small);
    transition: none;
}

.back-to-top a:hover {
    color: var(--terms-text-light);
    text-decoration: underline;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .terms-page {
        padding: 0;
        background: var(--terms-bg-white);
    }
    
    .terms-container {
        border: none;
        box-shadow: none;
        padding: 20px;
    }
    
    .back-to-top {
        display: none;
    }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 992px) {
    .info-links-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .terms-page {
        padding: 90px 0 15px;
        scroll-margin-top: 70px;
    }

    .terms-container {
        padding: 20px 25px;
        margin: 0;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .terms-header h1 {
        font-size: 20px;
    }

    .terms-content h2 {
        font-size: var(--terms-font-large);
    }

    .terms-content h3 {
        font-size: 16px;
    }

    .terms-content p,
    .terms-content li,
    .terms-intro p {
        font-size: var(--terms-font-small);
    }

    .info-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-actions-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-navigation-buttons {
        justify-content: center;
    }

    .footer-button-group {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .terms-page {
        padding: 80px 0 15px;
        scroll-margin-top: 60px;
    }
    
    .terms-header h1 {
        font-size: 19px;
    }

    .terms-container {
        padding: 15px 20px;
        margin: 0;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    .terms-content {
        font-size: var(--terms-font-small);
    }
    
    .terms-content h2 {
        font-size: 16px;
    }
    
    .terms-content h3 {
        font-size: var(--terms-font-base);
    }
    
    .terms-content p,
    .terms-content li,
    .terms-intro p,
    .terms-highlight p,
    .terms-note p {
        font-size: var(--terms-font-small);
    }

    .info-links-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .footer-button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-btn {
        justify-content: center;
        width: 100%;
    }

    .breadcrumb-wrapper {
        margin-top: 70px;
    }

    .breadcrumb-nav {
        padding: 12px 0;
        font-size: 13px;
    }

    .breadcrumb-nav .breadcrumb-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 576px) {
    .breadcrumb-wrapper {
        margin-top: 60px;
    }
}

/* =====================================================
   EVISA PAGE IMAGES
   ===================================================== */
.evisa-hero-image {
    margin: 30px 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.evisa-hero-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.evisa-image-left,
.evisa-image-right,
.evisa-image-center {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.evisa-image-left {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
    max-width: 350px;
    width: 100%;
}

.evisa-image-right {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
    max-width: 350px;
    width: 100%;
}

.evisa-image-center {
    text-align: center;
    margin: 25px auto;
    max-width: 600px;
}

.evisa-image-left img,
.evisa-image-right img,
.evisa-image-center img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Clear floats and ensure proper section spacing */
.terms-section {
    clear: both;
    overflow: hidden;
}

.terms-section::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Image Styles */
@media (max-width: 768px) {
    .evisa-hero-image {
        margin: 20px 0;
    }

    .evisa-hero-image img {
        max-height: 250px;
    }

    .evisa-image-left,
    .evisa-image-right {
        float: none;
        margin: 20px auto;
        max-width: 100%;
        display: block;
    }

    .evisa-image-center {
        max-width: 100%;
        margin: 20px 0;
    }
}

@media (max-width: 576px) {
    .evisa-hero-image img {
        max-height: 200px;
    }

    .evisa-image-left,
    .evisa-image-right,
    .evisa-image-center {
        margin: 15px 0;
    }
}

/* =====================================================
   FOOTER STYLING - SEO Optimized with Good Contrast
   ===================================================== */
.footer-main {
    background: #2c2c2c; /* Dark gray background */
    color: #e0e0e0; /* Light gray text - WCAG AA compliant (4.5:1 contrast) */
    padding: 40px 0 30px;
    margin-top: 0;
}

.footer-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-links-section {
    flex: 1;
}

.footer-links-row {
    text-align: left;
    margin-bottom: 12px;
}

.footer-links-row:last-of-type {
    margin-bottom: 0;
}

.footer-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    line-height: 1.8;
}

.footer-links-list li {
    display: inline;
    margin: 0;
    padding: 0;
}

.footer-links-list a {
    color: #e0e0e0; /* Light gray - good contrast ratio */
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.footer-links-list a:hover,
.footer-links-list a:focus {
    color: #ffffff; /* White on hover - better visibility */
    text-decoration: underline;
}

.footer-links-list .breadcrumb-separator {
    color: #b0b0b0; /* Medium gray for separators */
    margin: 0 2px;
}

.footer-copyright {
    text-align: right;
    flex-shrink: 0;
    min-width: 280px;
}

.footer-copyright p {
    font-size: 14px;
    color: #d0d0d0; /* Slightly lighter gray for copyright */
    margin: 6px 0;
    line-height: 1.6;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links-section {
        width: 100%;
    }

    .footer-links-row {
        text-align: center;
    }

    .footer-links-list {
        justify-content: center;
        font-size: 14px;
    }

    .footer-links-list a {
        font-size: 14px;
        padding: 0 3px;
    }

    .footer-copyright {
        text-align: center;
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 35px 0 25px;
    }

    .footer-content-wrapper {
        gap: 25px;
    }

    .footer-links-row {
        margin-bottom: 10px;
    }

    .footer-links-list {
        flex-wrap: wrap;
        justify-content: center;
        line-height: 2;
    }

    .footer-links-list li {
        margin: 0 2px;
    }

    .footer-links-list a {
        font-size: 13px;
        padding: 0 2px;
    }

    .footer-copyright {
        margin-top: 0;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-copyright p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .footer-main {
        padding: 30px 0 20px;
    }

    .footer-content-wrapper {
        gap: 20px;
    }

    .footer-links-list {
        font-size: 12px;
        line-height: 2.2;
    }

    .footer-links-list a {
        font-size: 12px;
        padding: 0 1px;
    }

    .footer-copyright {
        padding-top: 18px;
    }

    .footer-copyright p {
        font-size: 12px;
    }
}

.dashbox {
  border: 1px dashed #7c7c7d;
  border-left: 1px dashed #7c7c7d !important;
  padding: 20px;
  border-radius: 10px;
   overflow-wrap: break-word;
  word-wrap: break-word;
  position: relative;
  box-sizing: border-box;
}

/* Ensure left border is visible in Bootstrap columns */
.row .dashbox,
.col-md-6 .dashbox,
.col-lg-6 .dashbox,
[class*="col-"] .dashbox {
  border-left: 1px dashed #7c7c7d !important;
  position: relative;
}

/* Add pseudo-element to ensure left border visibility */
.row .dashbox::after,
.col-md-6 .dashbox::after,
.col-lg-6 .dashbox::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    #7c7c7d 0px,
    #7c7c7d 4px,
    transparent 4px,
    transparent 8px
  );
  pointer-events: none;
  z-index: 10;
}

/* For dashbox with custom blue border color - match inline styles */
.dashbox[style*="#0d4f8b"],
.dashbox[style*="border: 1px dashed #0d4f8b"],
.dashbox[style*="border-left: 1px dashed #0d4f8b"] {
  border-left: 1px dashed #0d4f8b !important;
}

/* Blue border pseudo-element */
.col-md-6.dashbox[style*="#0d4f8b"]::after,
.dashbox[style*="#0d4f8b"]::after {
  background: repeating-linear-gradient(
    to bottom,
    #0d4f8b 0px,
    #0d4f8b 4px,
    transparent 4px,
    transparent 8px
  );
}

/* Ensure parent containers don't clip the border */
.terms-section .row,
.terms-content .row,
.row.g-4 {
  overflow: visible !important;
}

.borderbox {
  border: 1px solid #000;
  padding: 20px;
  border-radius: 10px;
}
.step-container{display:flex;width:100%;overflow:hidden;background:0 0;margin:0;padding:0}.step,.step.first,.step.last{flex:1 1 0;padding:6px 10px;font:600 12px sans-serif;color:#fff;text-align:center;white-space:nowrap;background:#555;transition:.3s}.step.active,.step.first,.step.last{background:#a0523c}.step{clip-path:polygon(0 0,92% 0,100% 50%,92% 100%,0 100%,8% 50%)}.step.first{clip-path:polygon(0 0,92% 0,100% 50%,92% 100%,0 100%)}.step.last{clip-path:polygon(0 0,100% 0,100% 100%,0 100%,8% 50%)}
.circle-steps{list-style:none;counter-reset:step-counter;padding-left:0}.circle-steps li{counter-increment:step-counter;position:relative;margin-bottom:15px;padding-left:40px;font-size:16px}.circle-steps li::before{content:counter(step-counter);position:absolute;left:0;top:0;height:28px;width:28px;background-color:#666;color:#fff;border-radius:50%;display:flex;justify-content:center;align-items:center;font-weight:700;font-size:14px}

shadow-btn{display:inline-block; } .shadow-btn, .shadow-btn-green {
    white-space: nowrap;
}
.shadow-btn{padding:4px 8px;max-width:100%;border-radius:6px;font-family:sans-serif;font-size:12px;font-weight:600;text-align:center;box-shadow:0 3px 6px rgba(0,0,0,.08);transition:background-color .2s,transform .2s,color .2s;border:2px solid}.shadow-btn:focus,.shadow-btn:hover{transform:translateY(-2px);outline:0}.shadow-btn-blue{background-color:#fff;color:#0b3d91;border-color:#0b3d91}.shadow-btn-blue:focus,.shadow-btn-blue:hover{background-color:#0b3d91;color:#fff}.shadow-btn-green{background-color:#fff;color:#1b5e20;border-color:#1b5e20}.shadow-btn-green:focus,.shadow-btn-green:hover{background-color:#1b5e20;color:#fff}.shadow-btn-red{background-color:#fff;color:#b71c1c;border-color:#b71c1c}.shadow-btn-red:focus,.shadow-btn-red:hover{background-color:#b71c1c;color:#fff}

.contenttitle {
  width: 100%;
  margin: 0;
}

.contenttitle h2 {
  margin: 0;
  padding: 5px;
  background-color: #a94442;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  border-radius: 5px 5px 0 0;
  text-align: center;
}

.contentbox {
  width: 100%;
  margin: 0;
  font-family: Arial,sans-serif;
  padding: 20px;
  padding-bottom: 10px !important;
  background-color: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 5px 5px;
}

/* Common styles for dashbox, contentbox, visa-requirements-card */
.dashbox,
.contentbox,
.visa-requirements-card {
  font-size: var(--terms-font-base);
  line-height: var(--terms-line-height);
  color: var(--terms-text-color);
  overflow-wrap: break-word;
  word-wrap: break-word;
  box-sizing: border-box;
}

.visa-requirements-card h2,
.contenttitle h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: var(--terms-spacing-md);
  color: var(--terms-text-color);
  text-transform: uppercase;
}

.visa-requirements-card h3,
.contentbox h3 {
  font-size: var(--terms-font-large);
  font-weight: 600;
  margin-top: var(--terms-spacing-md);
  margin-bottom: var(--terms-spacing-sm);
  color: var(--terms-text-color);
}

.dashbox p,
.contentbox p,
.visa-requirements-card p {
  font-size: var(--terms-font-base);
  line-height: var(--terms-line-height);
  margin-bottom: var(--terms-spacing-sm);
  color: var(--terms-text-color);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.dashbox strong,
.contentbox strong,
.visa-requirements-card strong {
  font-weight: 700;
  color: var(--terms-text-color);
}

/* Icon Styles - Remove Inline Styles */
.icon-svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
}

.icon-svg.faq-icon {
  width: 24px;
  height: 24px;
}

.icon-svg.bullet-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

/* List Group Item with Arrow Icons */
.list-group-item {
  display: flex;
  align-items: flex-start;
  padding: var(--terms-spacing-sm) var(--terms-spacing-md);
  margin-bottom: var(--terms-spacing-xs);
  border: 1px solid var(--terms-border-light);
  border-radius: 4px;
  background-color: var(--terms-bg-white);
}

.list-group-item .icon-svg {
  margin-top: 2px;
}

/* Simple List Group - No Borders */
.list-group-simple .list-group-item {
  border: none;
  background-color: transparent;
  padding: var(--terms-spacing-xs) 0;
  margin-bottom: var(--terms-spacing-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--terms-spacing-sm);
}

.list-group-simple .list-group-item .icon-svg {
  flex-shrink: 0;
  margin-top: 4px;
  width: 20px;
  height: 20px;
}

.list-group-simple .list-group-item > span {
  flex: 1;
  line-height: var(--terms-line-height);
}

/* All list-group-item spans should have proper flex layout */
.list-group-item > span {
  flex: 1;
  line-height: var(--terms-line-height);
}

/* Image Styles - Remove Inline */
.img-visa {
  max-width: 340px;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}

.text-center {
  text-align: center;
}

/* Dashbox Variants */
.dashbox-primary {
  border: 1px dashed #0d4f8b;
  border-left: 1px dashed #0d4f8b !important;
  padding: 15px;
  border-radius: 8px;
  background-color: #f0f7ff;
}

.dashbox-warning {
  border: 1px dotted #d32f2f;
  border-left: 1px dotted #d32f2f !important;
  padding: 15px;
  border-radius: 8px;
  background-color: #fff5f5;
}

.dashbox-info {
  border: 1px dotted #7c7c7d;
  border-left: 1px dotted #7c7c7d !important;
  padding: 15px;
  border-radius: 8px;
  background-color: #f9faff;
}

.dashbox-blue {
  border: 1px dashed #0d4f8b;
  border-left: 1px dashed #0d4f8b !important;
  padding: 15px;
  border-radius: 8px;
  background-color: #f0f7ff;
}

/* FAQ Question Icon */
.contentbox h3 .icon-svg {
  color: var(--terms-primary);
}

/* Responsive Design - PC, Tablet, Mobile */
@media (max-width: 991px) {
  .terms-container {
    padding: 20px 25px;
  }
  
  .dashbox {
    padding: 15px;
  }
  
  .visa-requirements-card {
    padding: 20px;
  }
  
  .contenttitle h2 {
    font-size: 1.25rem;
    padding: 8px;
  }
  
  .contentbox {
    padding: 15px;
  }
}

@media (max-width: 767px) {
  .terms-page {
    padding: 80px 0 20px;
  }
  
  .terms-container {
    padding: 15px 12px;
  }
  
  .dashbox {
    padding: 15px 12px;
    margin-bottom: 15px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  .dashbox p,
  .dashbox h3,
  .dashbox ul,
  .dashbox li {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .visa-requirements-card {
    padding: 15px 12px;
    margin-left: 0;
    margin-right: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  .visa-requirements-card p,
  .visa-requirements-card h2,
  .visa-requirements-card h3,
  .visa-requirements-card ul,
  .visa-requirements-card li {
    padding-left: 0;
    padding-right: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .contenttitle h2 {
    font-size: 1.1rem;
    padding: 8px 12px;
  }
  
  .contentbox {
    padding: 15px 12px;
    margin-left: 0;
    margin-right: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  .contentbox p,
  .contentbox h3 {
    padding-left: 0;
    padding-right: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .icon-svg {
    width: 18px;
    height: 18px;
  }
  
  .icon-svg.faq-icon {
    width: 20px;
    height: 20px;
  }
  
  .list-group-item {
    padding: 10px 8px;
    font-size: var(--terms-font-small);
    margin-left: 0;
    margin-right: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .list-group-item span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .terms-content p,
  .terms-section p {
    padding-left: 0;
    padding-right: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .col-md-6 {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .row {
    margin-left: -12px;
    margin-right: -12px;
  }
}

@media (max-width: 576px) {
  .terms-container {
    padding: 12px 10px;
  }
  
  .terms-content h2,
  .visa-requirements-card h2 {
    font-size: 1.25rem;
  }
  
  .terms-content h3 {
    font-size: 1rem;
  }
  
  .contenttitle h2 {
    font-size: 1rem;
    padding: 6px 10px;
  }
  
  .dashbox {
    padding: 12px 10px;
    margin-left: 0;
    margin-right: 0;
  }
  
  .visa-requirements-card {
    padding: 12px 10px;
  }
  
  .contentbox {
    padding: 12px 10px;
  }
  
  .col-md-6 {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .list-group-item {
    padding: 8px 6px;
    font-size: 13px;
  }
  
  p, .dashbox p, .visa-requirements-card p, .contentbox p {
    font-size: 14px;
    line-height: 1.5;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Contrast Ratio Improvements - WCAG AA Compliant */
.contenttitle h2 {
  background-color: #8b3535;
  color: #ffffff;
}

.terms-highlight {
  background-color: #fff9e6;
  border-left: 3px solid #ff9800;
  color: #1a1a1a;
}

.terms-note {
   border-left: 3px solid #757575;
  color: #212121;
}

/* Arrow Bullet Points */
.list-group-item-arrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%230d4f8b' d='M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Back to Top Icon */
.back-to-top .icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 5px;
}

/* =====================================================
   STATUS CHECK PAGE STYLES
   ===================================================== */
.status-check-container {
    margin: 0 auto 50px;
    padding: 25px;
    background: var(--terms-bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.status-info-content {
    margin: 0 0 50px;
    padding: 0;
}

/* Accordion Styles - Using Bootstrap with custom colors */
.status-info-content .accordion-item {
    border: 1px solid var(--terms-border-light);
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.status-info-content .accordion-button {
    background-color: var(--terms-bg-light);
    color: var(--terms-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 15px 20px;
}

.status-info-content .accordion-button:not(.collapsed) {
    background-color: var(--terms-primary);
    color: var(--terms-bg-white);
    box-shadow: none;
}

.status-info-content .accordion-button:focus {
    box-shadow: none;
    border-color: var(--terms-primary);
}

.status-info-content .accordion-body {
    padding: 20px;
    font-size: 0.9rem;
    line-height: var(--terms-line-height);
}

.status-info-section {
    margin-bottom: 30px;
}

.status-info-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--terms-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.status-info-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terms-primary);
    margin-bottom: 15px;
    margin-top: 30px;
    line-height: 1.3;
}

.status-info-section p {
    font-size: var(--terms-font-base);
    line-height: 1.7;
    color: var(--terms-text-light);
    margin-bottom: 15px;
}

.status-info-section a {
    color: var(--terms-primary);
    text-decoration: underline;
    font-weight: 600;
}

.status-info-section a:hover {
    color: var(--terms-primary-hover);
    text-decoration: none;
}

.status-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.status-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid var(--terms-border-divider);
    line-height: var(--terms-line-height);
}

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

.status-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--terms-primary);
    border-radius: 50%;
}

.status-list li strong {
    color: var(--terms-primary);
    font-weight: 700;
}

.status-check-title {
    text-align: center;
    margin: 20px 0 15px;
    padding: 0;
    color: var(--terms-primary);
}

.status-check-title h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.status-check-title p {
    color: var(--terms-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Form Styles - Using Bootstrap classes with minimal overrides */
.status-check-container .form-control {
    padding: 12px 15px;
    border: 2px solid var(--terms-border);
    border-radius: 6px;
    font-size: var(--terms-font-base);
    transition: border-color 0.3s;
    width: 100%;
    max-width: 100%;
    background-color: var(--terms-bg-white);
}

.status-check-container .input-with-icon {
    position: relative;
    width: 90%;
    max-width: 360px;
}

.status-check-container .input-with-icon .form-control {
    padding-left: 44px;
}

.status-check-container .input-with-icon.textarea-icon .form-control {
    min-height: 120px;
    padding-top: 16px;
}

.status-check-container .input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--terms-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.status-check-container .input-with-icon.textarea-icon .input-icon {
    top: 18px;
    transform: none;
}

.status-check-container .input-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.status-check-container .form-control:focus {
    border-color: var(--terms-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 79, 139, 0.1);
}

.status-check-container .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: none;
}

.validation-error {
    display: none;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 600;
}

.status-info-card {
    border: 1px solid var(--terms-border-light);
    border-radius: 10px;
    padding: 20px;
    background: var(--terms-bg-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--terms-primary);
    margin-bottom: 12px;
}

.status-info-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.status-info-card li {
    margin-bottom: 12px;
    color: var(--terms-text-light);
}

.status-info-card li:last-child {
    margin-bottom: 0;
}

.status-info-card .contact-info-img {
    display: block;
    width: 140px;
    height: auto;
    max-width: 100%;
    margin-top: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.captcha-display {
    background: var(--terms-bg-light);
    border: 2px solid var(--terms-border);
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terms-primary);
    letter-spacing: 5px;
    min-width: 100px;
    flex-shrink: 0;
    text-align: center;
    user-select: none;
}

.btn-refresh-captcha {
    background: var(--terms-bg-light);
    border: 2px solid var(--terms-border);
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh-captcha:hover {
    background: var(--terms-bg-section);
    border-color: var(--terms-primary);
}

.captcha-input {
    flex: 1;
    min-width: 0;
}

.btn-submit {
    width: auto;
    min-width: 140px;
    padding: 14px 24px;
    background: var(--status-primary);
    color: var(--terms-bg-white);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--status-primary-hover);
    color: var(--terms-bg-white);
}

.info-box {
    background: var(--terms-bg-light);
    border-left: 4px solid var(--terms-primary);
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.info-box p {
    margin: 0;
    color: var(--terms-text-muted);
    font-size: 0.9rem;
}

.status-result-container {
    margin: 30px 0;
    padding: 30px;
    background: var(--terms-bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--terms-primary);
}

.status-card {
    background: #fff;
    border: 1px solid #e1e5ef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

.status-card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin: -24px -24px 24px;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
}

.status-card-header-primary {
    background: #ff8c00;
    color: #ffffff;
}

.status-card-header-danger {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

.status-card-headline {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1rem;
    font-weight: 650;
    margin: 0;
}

.status-card-state {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 0 auto;
}

.status-card:first-of-type {
    margin-top: 0;
}

.status-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
}

.status-card p {
    margin-bottom: 12px;
    color: #444;
}

.status-card-warning {
    color: #b71c1c;
    font-weight: 600;
}

.status-card-approved {
    border-color: #2e7d32;
    background-color: #e8f5e9;
}

.status-card-success {
    border-color: #badbcc;
    background-color: #d1e7dd; /* Bootstrap success subtle */
    color: #0f5132;
}

.status-card-success .status-card-header-primary {
    background: #0f5132; /* Dark green header */
}

.status-card-hold {
    border-color: #c62828;
    background-color: #ffebee;
}

.status-card-default {
    border-color: #1e88e5;
    background-color: #e3f2fd;
}

.status-card-submitted {
    border-color: #f57c00;
    background-color: #fff3e0;
}

.status-card-amended {
    border-color: #7b1fa2;
    background-color: #f3e5f5;
}

.status-card-cancelled {
    background: #c62828; /* Bootstrap danger red */
    color: #ffffff;      /* White text */
}

.status-card-cancel {
    border-color: #fb8c00;
    background-color: #fff3cd; /* Bootstrap warning subtle */
    color: #5c2c00;
}

 
.status-card-not-success {
    border-color: #f28b82;
    background-color: #fdecea;
}

.status-card-danger {
    border-color: #ef9a9a;
    background-color: #ffebee;
    color: #b71c1c;
}

.status-card-critical {
    border-color: #c62828;
    background-color: #fdecea;
}

.status-card-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: #fff;
    background: #1e88e5;
}

.status-card-submitted .status-card-label {
    background: #f57c00;
    color: #ffffff;
}

.status-card-amended .status-card-label {
    background: #7b1fa2;
    color: #ffffff;
}

.status-card-cancelled .status-card-label {
    background: #f28b82; /* Light red */
    color: #ffffff;       /* Keep text white */
}

.status-card-cancel .status-card-label {
    background: #fb8c00;
    color: #fff;
}

.status-card-not-success .status-card-label {
    background: #00838f;
    color: #ffffff;
}

.status-card-danger .status-card-label {
    background: #ef5350;
    color: #ffffff;
}

.status-card-success .status-card-label {
    background: #66bb6a;
    color: #ffffff;
}

.status-card-details {
    border-top: 1px solid #dfe3ec;
    margin-top: 16px;
    padding-top: 16px;
}

.status-card-details h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.status-card-details p {
    margin-bottom: 8px;
    color: #111;
}

.status-card-payment-link {
    display: inline-flex;
    align-items: center;
    margin: 0 6px;
}

.status-card-download {
    border-top: 1px solid #e8ebf3;
    padding-top: 16px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.status-card-applicant {
    flex: 1;
}

.status-card-passport {
    margin: 0;
    color: #222;
    font-weight: 500;
}

.status-card-download-btn {
    white-space: nowrap;
}

.btn-outline-secondary {
    background-color: #1e88e5;
    border-color: #1e88e5;
    color: #fff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: #1565c0;
    border-color: #1565c0;
    color: #fff;
}

@media (max-width: 576px) {
    .status-card {
        padding: 18px;
    }

    .status-card-download {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-card-download-btn {
        width: 100%;
        text-align: center;
    }
}

.status-result-header {
    text-align: center;
    margin-bottom: 25px;
}

.status-result-header h2 {
    color: var(--terms-primary);
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.status-badge.submitted {
    background: #fff3cd;
    color: #856404;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.cancelled {
    background: #e2e3e5;
    color: #383d41;
}

.status-details {
    background: var(--terms-bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.status-details-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--terms-border-divider);
}

.status-details-row:last-child {
    border-bottom: none;
}

.status-details-label {
    font-weight: 600;
    color: var(--terms-text-muted);
}

.status-details-value {
    color: var(--terms-text-color);
    text-align: right;
}

/* Status Page Responsive Styles */
@media (max-width: 991px) {
    .status-check-container {
        margin: 0 auto 30px;
    }
    
    .status-check-title {
        margin: 15px 0 10px;
    }
    
    .status-info-content {
        margin: 30px 0 50px;
    }
    
    .col-lg-5,
    .col-md-7 {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .status-check-container {
        margin: 0 15px 30px;
        padding: 25px 20px;
    }
    
    .status-check-title {
        margin: 15px 0 10px;
    }
    
    .status-check-title h1 {
        font-size: 1.5rem;
    }
    
    .captcha-container {
        gap: 8px;
    }
    
    .captcha-display {
        min-width: 80px;
        padding: 10px 12px;
        font-size: 1.3rem;
        letter-spacing: 3px;
    }
    
    .btn-refresh-captcha {
        padding: 8px 10px;
    }
    
    .captcha-input {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .status-info-section h2 {
        font-size: 1.5rem;
    }
    
    .status-info-section h3 {
        font-size: 1.25rem;
    }
    
    .status-details-row {
        flex-direction: column;
    }
    
    .status-details-value {
        text-align: left;
        margin-top: 5px;
    }
}

/* =====================================================
   COUNTRY LIST PAGE STYLES
   ===================================================== */
.country-list-table {
    margin-bottom: 30px;
}

.country-list-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.country-list-table thead th {
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    font-size: var(--terms-font-base);
}

.country-list-table tbody td {
    padding: 10px 15px;
    text-align: left;
    border: 1px solid var(--terms-border-light);
    transition: background-color 0.2s ease;
}

.country-list-table tbody tr:hover {
    background-color: var(--terms-bg-section);
}

.country-list-table tbody td:empty {
    border: none;
}

/* Country links styling - underline only on hover */
.status-info-card table tbody td a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: text-decoration 0.2s ease;
}

.status-info-card table tbody td a:hover {
    text-decoration: underline;
    color: #007bff;
}

@media (max-width: 767px) {
    .country-list-table {
        margin-bottom: 20px;
    }
    
    .country-list-table table {
        font-size: var(--terms-font-small);
    }
    
    .country-list-table thead th,
    .country-list-table tbody td {
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .info-links-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================================
   HOW TO APPLY - MOBILE: 4 STEPS IN ONE ROW
   ===================================================== */
@media (max-width: 767.98px) {
  .how-to-apply-section .steps-container {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 8px;
    max-width: 100%;
  }

  .how-to-apply-section .step-item {
    flex: 1 1 25%;
    max-width: 25%;
    text-align: center;
  }

  .how-to-apply-section .step-connector {
    display: none !important;
  }
}

.red { color:red;}