/* ===================== Variables ===================== */
:root {
    --bg1-color: #1F3A93;
    ;
    /* Dark Blue (main text / nav) */
    --bg3-color: #ffffff;
    /* Section background */
    --button-color: #e9292f;
    /* Bright Red (highlights / buttons) */
    --text-color: #6B7280;
    /* Primary text for sections */
    --sub-text: #111928;

    --gold-color: #dda83d;
}

.contact-info-p {
    color: var(--button-color) !important;
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 11;
}

.section-title-hlp1 {
    color: var(--button-color) !important;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--button-color);
}

.section-title-hlp {
    color: var(--bg1-color) !important;
}

.contact-info p {
    margin-bottom: 0 !important;
    text-align: center;
    text-align-last: center;
    font-size: 14px !important;
}

.section-title svg {
    margin-bottom: 5px;
}

.contact-icon .fas {
    color: var(--bg1-color);
}

/* ===================== Hero Section ===================== */
.contact-hero {
    height: 90vh;
    background-attachment: fixed;
    background-image: url('../image/ContactUs.jpg');
    background-repeat: no-repeat;
    background-position: left top -50px;
    background-size: cover;

    color: var(--bg3-color);
    text-align: center;
    padding: 80px 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(rgba(31, 58, 147, 0.4), rgba(31, 58, 147, 0.4));

}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse farthest-side at bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);

    z-index: 1;
}

.section-container h1 {
    font-size: 38px !important;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--bg3-color);
}

/* ===================== Contact Options ===================== */
.contact-section:nth-child(1) {
    padding: 100px 0;
    background-color: #e2e8f0;
}

.contact-section:nth-child(3) {
    padding: 100px 0;
    background-color: #e2e8f0;
}

.contact-section:nth-child(2) {
    padding: 100px 0;
}

.contact-section:nth-child(4) {
    padding-top: 100px;
    padding-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--bg3-color);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;

    width: 75%;
    margin: auto;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.contact-title {
    position: relative;
    display: inline-block;
}

.contact-title:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--bg1-color);
    bottom: -5px;
    left: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-card:hover .contact-icon {
    transform: rotateY(180deg);
}

.contact-info {
    margin-top: 20px;
}

.contact-card:hover .contact-title:after {
    width: 100%;
}

.contact-icon {
    font-size: 2rem;
    color: var(--button-color);
    margin-bottom: 15px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fa-phone-althlp {
    /* transform: rotate(90deg) */
}

.contact-title {
    font-size: 22;
    font-weight: 600;
    color: var(--bg1-color);
    margin-bottom: 12px;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gold-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-info-p,
.contact-info a {
    font-size: 0.95rem;
    color: var(--gold-color);
    line-height: 1.5;
}

.contact-info a {
    color: var(--bg1-color);
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--gold-color);
}


/* ===================== Contact Form ===================== */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.15), 0 15px 12px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: var(--bg3-color);
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease;
}

.form-control:focus {
    border-color: var(--bg1-color);
}

.form-group label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--bg3-color);
    padding: 0 5px;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--sub-text);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn.btn-primary {
    background: var(--button-color);
    color: var(--bg3-color);
    border: none;
    position: relative;
    z-index: 111111111;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.contact-info strong:last-child {
    margin-top: 20px;
}

.contact-info strong {
    color: var(--sub-text);
    font-weight: 700;
    text-align: center;
    width: 100%;
    display: block;
    font-size: 18px;
    text-transform: uppercase;
}

.btn.btn-primary:hover {
    background: #c71f25;
    /* thoda darker red */
}

/* ===================== Map Section ===================== */
.map-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* ===================== FAQ Section ===================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 18px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question span {
    color: var(--bg3-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    color: var(--sub-text);
    background-color: var(--bg1-color);
    padding: 20px;
}

.faq-toggle {
    transition: transform 0.3s ease;
    color: var(--bg3-color);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    color: var(--text-color);
    font-size: 0.95rem;
}

.faq-question:hover {
    background: #3a56c9;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    color: #f9f9f9;

}

/* ===================== Contact ===================== */
.contact {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.contact h2 {
    color: var(--bg1-color);
}

.contact .container {
    background: var(--bg3-color);
}

.contact input,
.contact textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    color: var(--bg1-color);
}

.stats h3 {
    color: #dda83d;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin: auto;
    position: relative;
    padding: 40px;
}

#contactForm::before {
    content: '';
    position: absolute;
    top: 0;
    border-radius: 15px;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(31, 58, 147, 0.05) 0%, rgba(221, 168, 61, 0.05) 100%); */
    z-index: 0;
}

.contact button {
    background-color: red;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    width: 45%;
    margin: auto;

}


@media (max-width: 992px) {
    .contact-hero {
        height: 90vh;
        background-image: url(../image/ContactUs.jpg);
        background-repeat: no-repeat;
        background-position: top center;
        background-size: cover;
    }
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 30px;
    }

    #contactForm {
        gap: 30px;
    }

    .contact-hero {
        height: 400px;
        background-image: url(../image/ContactUs.jpg);
        background-repeat: no-repeat;
        background-position: left center;
        background-size: cover;
    }
}