/* =========================================================
   CONTACT PAGE CSS
   S.N. PAREEK MEMORIAL HOSPITAL
========================================================= */


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
    position: relative;
    min-height: 330px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            135deg,
            rgba(92, 0, 0, 0.96),
            rgba(126, 0, 0, 0.88)
        );
    overflow: hidden;
}


.page-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    right: -120px;
    top: -150px;
}


.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 70px 0;
    color: #fff;
}


.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}


.hero-tag i {
    color: #fff;
}


.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.1;
    color: #fff;
}


.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}


.breadcrumb a {
    color: #fff;
    text-decoration: none;
}


.breadcrumb a:hover {
    text-decoration: underline;
}



/* =========================================================
   CONTACT SECTION
========================================================= */

.contact-section {
    padding: 90px 0;
    background: #fff;
}


.section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
}


.section-heading.text-center {
    text-align: center;
}


.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #8a0000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}


.section-heading h2,
.contact-form-heading h2,
.map-heading h2 {
    margin: 0;
    color: #500000;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
}


.section-heading p {
    margin: 17px auto 0;
    max-width: 680px;
    color: #666;
    line-height: 1.8;
}



/* =========================================================
   CONTACT INFO CARDS
========================================================= */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 65px;
}


.contact-info-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: #fff;
    border: 1px solid #eadede;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(80,0,0,0.06);
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}


.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(80,0,0,0.11);
}


.contact-info-icon {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff1f1;
    color: #8a0000;
    font-size: 21px;
}


.contact-card-label {
    display: block;
    margin-bottom: 5px;
    color: #9a7777;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.contact-info-card h3 {
    margin: 0 0 10px;
    color: #520000;
    font-size: 21px;
}


.contact-info-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}


.contact-info-card p a {
    color: #555;
    text-decoration: none;
}


.contact-info-card p a:hover {
    color: #8a0000;
}


.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    color: #8a0000;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}


.contact-card-link:hover {
    gap: 12px;
}



/* =========================================================
   MAIN CONTACT GRID
========================================================= */

.contact-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 35px;
    align-items: start;
}



/* =========================================================
   FORM WRAPPER
========================================================= */

.contact-form-wrapper {
    padding: 42px;
    background: #fff;
    border: 1px solid #eadede;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(80,0,0,0.07);
}


.contact-form-heading {
    margin-bottom: 30px;
}


.contact-form-heading p {
    margin: 10px 0 0;
    color: #666;
    line-height: 1.7;
}



/* =========================================================
   FORM
========================================================= */

.contact-form {
    width: 100%;
}


.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}


.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4b2525;
    font-size: 14px;
    font-weight: 700;
}


.form-group label span {
    color: #a40000;
}


.input-wrapper,
.textarea-wrapper {
    position: relative;
}


.input-wrapper > i,
.textarea-wrapper > i {
    position: absolute;
    left: 17px;
    top: 17px;
    color: #9b6d6d;
    pointer-events: none;
}


.textarea-wrapper > i {
    top: 18px;
}


.input-wrapper input,
.textarea-wrapper textarea {
    width: 100%;
    border: 1px solid #ded1d1;
    border-radius: 9px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.input-wrapper input {
    height: 52px;
    padding: 0 16px 0 47px;
}


.textarea-wrapper textarea {
    min-height: 150px;
    padding: 16px 16px 16px 47px;
    resize: vertical;
}


.input-wrapper input:focus,
.textarea-wrapper textarea:focus {
    border-color: #8a0000;
    box-shadow: 0 0 0 3px rgba(138,0,0,0.08);
}


.form-error {
    display: block;
    min-height: 17px;
    margin-top: 5px;
    color: #c00000;
    font-size: 12px;
}


.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #c00000;
}



/* =========================================================
   HONEYPOT
========================================================= */

.contact-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}



/* =========================================================
   SUBMIT BUTTON
========================================================= */

.contact-submit {
    position: relative;
    width: 100%;
    min-height: 54px;
    border: 0;
    cursor: pointer;
}


.contact-submit:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}


.submit-loading {
    display: none;
}


.contact-submit.is-loading .submit-normal {
    display: none;
}


.contact-submit.is-loading .submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}



/* =========================================================
   FORM RESPONSE
========================================================= */

.contact-form-message {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}


.contact-form-message.show {
    display: block;
}


.contact-form-message.success {
    background: #edf8ef;
    border: 1px solid #b9dfbf;
    color: #24612e;
}


.contact-form-message.error {
    background: #fff0f0;
    border: 1px solid #e2bcbc;
    color: #8c1f1f;
}



/* =========================================================
   RIGHT SIDE
========================================================= */

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


.emergency-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    background: linear-gradient(
        135deg,
        #780000,
        #a00000
    );
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(90,0,0,0.16);
}


.emergency-icon {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    font-size: 21px;
}


.emergency-card span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
}


.emergency-card h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 20px;
}


.emergency-card a {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}



/* =========================================================
   QUICK INFO
========================================================= */

.contact-side-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #eadede;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(80,0,0,0.06);
}


.contact-side-card > h3 {
    margin: 0 0 25px;
    color: #520000;
    font-size: 23px;
}


.side-info-item {
    display: flex;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid #eee4e4;
}


.side-info-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}


.side-info-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff1f1;
    color: #8a0000;
}


.side-info-item strong {
    display: block;
    margin-bottom: 4px;
    color: #4e2020;
    font-size: 15px;
}


.side-info-item p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}



/* =========================================================
   MAP
========================================================= */

.contact-map-section {
    padding: 80px 0;
    background: #faf7f7;
}


.map-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}


.map-heading h2 {
    margin-top: 5px;
}


.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    border: 1px solid #8a0000;
    border-radius: 7px;
    color: #8a0000;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}


.btn-outline:hover {
    background: #8a0000;
    color: #fff;
}


.map-container {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(80,0,0,0.08);
}


.map-container iframe {
    display: block;
    width: 100%;
    min-height: 450px;
    border: 0;
}



/* =========================================================
   FOOTER SUPPORT
========================================================= */

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}


.footer-logo img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}


.footer-bottom {
    margin-top: 35px;
}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 991px) {

    .contact-info-grid {
        grid-template-columns: 1fr;
    }


    .contact-main-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 767px) {

    .page-hero {
        min-height: 270px;
    }


    .page-hero-content {
        padding: 55px 0;
    }


    .contact-section {
        padding: 65px 0;
    }


    .section-heading {
        margin-bottom: 40px;
    }


    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }


    .contact-form-wrapper {
        padding: 25px 20px;
    }


    .contact-info-card {
        padding: 22px;
    }


    .map-heading {
        align-items: flex-start;
        flex-direction: column;
    }


    .map-container iframe {
        min-height: 350px;
    }

}


@media (max-width: 480px) {

    .contact-info-card {
        flex-direction: column;
    }


    .contact-info-icon {
        flex-basis: 50px;
    }


    .emergency-card {
        align-items: flex-start;
    }

}