/* Moved unchanged from the inline <style> in Views/Contact/Index.cshtml */
    .contact-right-bg a {
        color: #25a9e0 !important;
    }

        .contact-right-bg a:hover {
            color: black !important;
        }
    /* Contact Section Styling */
    .get-in-touch h2 {
        font-size: 28px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .contact-inputs .bg-light-blue {
        background-color: #f4f9fc !important; /* Lighter background for input fields */
    }

    .contact-inputs .form-control, .contact-inputs .form-select {
        transition: all 0.3s ease;
    }

        .contact-inputs .form-control:focus, .contact-inputs .form-select:focus {
            border-color: #25a9e0 !important;
            box-shadow: 0 0 5px rgba(37, 169, 224, 0.5);
        }

    .contact-btn .btn {
        background-color: #000; /* Button color */
        color: #fff;
        border-radius: 5px;
        font-size: 16px;
        padding: 10px 20px;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

        .contact-btn .btn:hover {
            background-color: #25a9e0; /* Button hover effect */
            color: #fff;
            transform: translateY(-2px);
        }

    /* Tab Navigation Styling */
    .nav-tabs .nav-link {
        border: none;
        color: #25a9e0;
        font-weight: 500;
        padding: 15px 20px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

        .nav-tabs .nav-link:hover {
            background-color: #f4f9fc;
        }

        .nav-tabs .nav-link.active {
            background-color: #25a9e0;
            color: #fff;
            border-radius: 5px 5px 0 0;
        }

    /* Tab Content Styling */
    .tab-content h2 {
        font-size: 24px;
        color: #333;
        margin-bottom: 15px;
    }

    .tab-content p, .tab-content a {
        font-size: 16px;
        color: #555;
    }

        .tab-content a:hover {
            text-decoration: underline;
        }

    /* Contact Info Icons */
    .fa-location-dot, .fa-phone, .fa-whatsapp, .fa-envelope {
        margin-right: 10px;
        color: #25a9e0;
        font-size: 20px;
    }

/* ---------- Design refresh (shared --ds-* tokens; layout and text unchanged) ---------- */
.contact-contact {
    row-gap: 24px;
}

/* Form card */
.get-in-touch.p-5 {
    width: 100%;
    padding: 40px !important;
    border: 1px solid var(--ds-line) !important;
    background: #fff;
    box-shadow: var(--ds-shadow-sm);
}

.get-in-touch h2 {
    margin-bottom: 8px;
    color: var(--ds-ink);
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.25;
}

.get-in-touch form > p {
    margin-bottom: 20px;
    color: var(--ds-muted);
    font-size: 14px;
}

.contact-inputs input,
.contact-inputs select {
    min-height: 50px;
}

.contact-inputs textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-btn .btn {
    min-height: 48px;
    padding: 0 32px;
    border-radius: var(--ds-radius-control) !important;
    font-weight: 600;
}

    .contact-btn .btn:hover {
        transform: none;
    }

/* Offices panel */
.contact-right-bg.p-5 {
    padding: 32px !important;
}

.contact-right-bg .nav-tabs {
    flex-wrap: nowrap;
    gap: 4px;
    padding: 4px;
    overflow-x: auto;
    border: 0;
    border-radius: var(--ds-radius-card);
    background: #fff;
    box-shadow: var(--ds-shadow-sm);
    scrollbar-width: none;
}

    .contact-right-bg .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .contact-right-bg .nav-tabs .nav-link {
        padding: 10px 14px;
        border-radius: 8px !important;
        color: var(--ds-blue-dark);
        font-weight: 600;
        white-space: nowrap;
    }

        .contact-right-bg .nav-tabs .nav-link:hover {
            background-color: var(--ds-blue-soft);
        }

        .contact-right-bg .nav-tabs .nav-link.active {
            background-color: var(--ds-blue);
            color: #fff;
        }

        .contact-right-bg .nav-tabs .nav-link:focus-visible {
            outline: 0;
            box-shadow: var(--ds-focus-ring-strong);
        }

.contact-right-bg .tab-content.p-4 {
    margin-top: 12px;
    padding: 24px !important;
    border-radius: var(--ds-radius-card);
    background: #fff;
    box-shadow: var(--ds-shadow-sm);
}

.contact-right-bg .tab-content h2 {
    margin-bottom: 12px;
    color: var(--ds-ink);
    font-size: 20px;
    font-weight: 700;
}

.contact-right-bg .tab-content h3 {
    margin: 18px 0 6px;
    padding-top: 0 !important;
    color: var(--ds-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-right-bg .tab-content p,
.contact-right-bg .tab-content a {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    color: var(--ds-text);
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.contact-right-bg .tab-content i {
    flex-shrink: 0;
    width: 22px;
    margin-top: 3px;
    margin-right: 10px;
    font-size: 16px;
    text-align: center;
}

/* Desktop: the panel is as tall as the form next to it (~720px) while its content was small and
   centred, leaving large empty grey bands. Bigger countries and numbers, and the white card grows
   to fill the panel so the grey stays a frame. */
@media (min-width: 992px) {
    .contact-right-bg.p-5 {
        justify-content: flex-start !important;
        padding: 24px !important;
    }

    /* four big country tabs don't fit in one row in this column: a 2 x 2 grid */
    .contact-right-bg .nav-tabs {
        display: grid;
        flex-shrink: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 6px;
    }

        .contact-right-bg .nav-tabs .nav-link {
            width: 100%;
            min-height: 52px;
            padding: 12px 14px;
            font-size: 17px;
        }

    .contact-right-bg .tab-content.p-4 {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: center;
        margin-top: 16px;
        padding: 36px 32px !important;
    }

    .contact-right-bg .tab-content h2 {
        margin-bottom: 16px;
        font-size: 28px;
    }

    .contact-right-bg .tab-content h3 {
        margin: 28px 0 8px;
        font-size: 14px;
    }

    .contact-right-bg .tab-content p,
    .contact-right-bg .tab-content a {
        font-size: 18px;
    }

    /* the phone numbers (Landline / Phone / WhatsApp); the US address is a <p> too */
    .contact-right-bg .tab-content p:has(> .fa-phone, > .fa-whatsapp) {
        color: var(--ds-ink);
        font-size: 22px;
        font-weight: 600;
    }

    .contact-right-bg .tab-content i {
        width: 26px;
        margin-top: 2px;
        margin-right: 12px;
        font-size: 20px;
    }
}

@media (max-width: 991.98px) {
    .contact-contact > [class*="col-lg-"] {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 575.98px) {
    .get-in-touch.p-5,
    .contact-right-bg.p-5 {
        padding: 22px 18px !important;
    }

    .contact-right-bg .tab-content.p-4 {
        padding: 18px !important;
    }

    .contact-btn .btn {
        width: 100%;
    }
}
