/* =========================================================
   KARUNA PREM
   CONTACT PAGE
========================================================= */


/* =========================================================
   HERO
========================================================= */

.contact-hero {

    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(8, 43, 78, 0.90),
            rgba(8, 43, 78, 0.58),
            rgba(8, 43, 78, 0.15)
        ),
        url("../images/contact-hero.jpg")
        center / cover no-repeat;

}


.contact-hero-content {

    max-width: 760px;

    padding: 90px 0;

}


.contact-hero-tag {

    display: inline-block;

    margin-bottom: 22px;

    padding: 8px 15px;

    border:
        1px solid
        rgba(255,255,255,0.30);

    border-radius: 30px;

    color: #ffffff;

    background:
        rgba(255,255,255,0.10);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;

}


.contact-hero h1 {

    margin: 0 0 22px;

    color: #ffffff;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(44px, 6vw, 68px);

    line-height: 1.08;

    font-weight: 600;

}


.contact-hero p {

    max-width: 650px;

    margin: 0;

    color:
        rgba(255,255,255,0.90);

    font-size: 17px;

    line-height: 1.8;

}

/* =========================================================
   MAIN CONTACT SECTION
========================================================= */

.contact-main {

    padding: 100px 0;

    background: #f5f8fc;

}


.contact-grid {

    display: grid;

    grid-template-columns:
        0.85fr
        1.15fr;

    gap: 80px;

    align-items: start;

}


/* =========================================================
   CONTACT INFORMATION
========================================================= */

.contact-information {

    padding-top: 10px;

}


.contact-information-intro {

    max-width: 500px;

    margin: 0 0 38px;

    color: #687b90;

    font-size: 15px;

    line-height: 1.85;

}


.contact-info-item {

    display: flex;

    align-items: flex-start;

    gap: 16px;

    margin-bottom: 28px;

}


.contact-info-icon {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #eaf3fc;

    color: #1763ad;

    font-size: 17px;

}


.contact-info-item h3 {

    margin: 1px 0 5px;

    color: #24364a;

    font-family:
        "Playfair Display",
        serif;

    font-size: 18px;

}


.contact-info-item p {

    margin: 0;

    color: #718196;

    font-size: 13px;

    line-height: 1.7;

}


/* =========================================================
   SOCIAL
========================================================= */

.contact-social {

    margin-top: 35px;

    padding-top: 25px;

    border-top:
        1px solid
        #dfe7ef;

}


.contact-social > span {

    display: block;

    margin-bottom: 13px;

    color: #26384d;

    font-size: 13px;

    font-weight: 700;

}


.contact-social-links {

    display: flex;

    gap: 10px;

}


.contact-social-links a {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        #d8e2eb;

    border-radius: 50%;

    background: #ffffff;

    color: #1763ad;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;

}


.contact-social-links a:hover {

    background: #1763ad;

    color: #ffffff;

    transform: translateY(-3px);

}


/* =========================================================
   FORM WRAPPER
========================================================= */

.contact-form-wrapper {

    padding: 42px;

    border:
        1px solid
        #e1e9f1;

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 15px 40px
        rgba(20,55,90,0.07);

}


.contact-form-header {

    margin-bottom: 30px;

}


.contact-form-header .section-tag {

    margin-bottom: 10px;

}


.contact-form-header h2 {

    margin: 0 0 10px;

    color: #1e2e41;

    font-family:
        "Playfair Display",
        serif;

    font-size: 32px;

}


.contact-form-header p {

    margin: 0;

    color: #718196;

    font-size: 14px;

}


/* =========================================================
   FORM
========================================================= */

.contact-form {

    width: 100%;

}


.form-row {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 18px;

}


.form-group {

    margin-bottom: 20px;

}


.form-group label {

    display: block;

    margin-bottom: 8px;

    color: #26384d;

    font-size: 13px;

    font-weight: 700;

}


.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    padding: 13px 15px;

    border:
        1px solid
        #d9e3ec;

    border-radius: 8px;

    outline: none;

    background: #ffffff;

    color: #24364a;

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.form-group input,
.form-group select {

    height: 48px;

}


.form-group textarea {

    min-height: 145px;

    resize: vertical;

}


.form-group input::placeholder,
.form-group textarea::placeholder {

    color: #9aa8b7;

}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: #1763ad;

    box-shadow:
        0 0 0 3px
        rgba(23,99,173,0.08);

}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.contact-submit {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 50px;

    padding: 0 24px;

    border: none;

    border-radius: 8px;

    background: #1763ad;

    color: #ffffff;

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

}


.contact-submit:hover {

    background: #12548f;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(20,55,90,0.16);

}


.contact-submit i {

    transition:
        transform 0.25s ease;

}


.contact-submit:hover i {

    transform:
        translateX(4px);

}


/* =========================================================
   FORM SUCCESS MESSAGE
========================================================= */

.contact-success-message {

    display: none;

    margin: 18px 0 0;

    color: #238636;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.5;

}


.contact-success-message.show {

    display: block;

}


/* =========================================================
   LOCATION
========================================================= */

.contact-location {

    padding: 100px 0;

    background: #ffffff;

}


.location-grid {

    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap: 70px;

    align-items: center;

}


.location-content p {

    max-width: 520px;

    margin: 0 0 25px;

    color: #687b90;

    font-size: 15px;

    line-height: 1.85;

}


.location-address {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    color: #26384d;

    font-size: 14px;

    font-weight: 600;

}


.location-address i {

    margin-top: 4px;

    color: #1763ad;

}


/* =========================================================
   MAP PLACEHOLDER
========================================================= */

.map-placeholder {

    height: 350px;

    overflow: hidden;

    border:
        1px solid
        #dfe7ef;

    border-radius: 22px;

    background: #f1f6fa;

}


.map-placeholder iframe {

    width: 100%;

    height: 100%;

    display: block;

    border: none;

}


.map-placeholder-content {

    max-width: 350px;

    padding: 40px;

    text-align: center;

}


.map-placeholder-content > i {

    margin-bottom: 18px;

    color: #1763ad;

    font-size: 42px;

}


.map-placeholder-content h3 {

    margin: 0 0 10px;

    color: #24364a;

    font-family:
        "Playfair Display",
        serif;

    font-size: 24px;

}


.map-placeholder-content p {

    margin: 0;

    color: #718196;

    font-size: 13px;

    line-height: 1.7;

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .contact-grid {

        grid-template-columns: 1fr;

        gap: 55px;

    }

    .contact-information {

        max-width: 700px;

    }

    .location-grid {

        grid-template-columns: 1fr;

        gap: 45px;

    }

}


@media (max-width: 800px) {

    .contact-intro {

        padding: 70px 0;

    }

    .contact-intro-grid {

        grid-template-columns: 1fr;

        gap: 35px;

    }

    .contact-main {

        padding: 70px 0;

    }

    .contact-location {

        padding: 70px 0;

    }

    .contact-form-wrapper {

        padding: 30px;

    }

}


@media (max-width: 600px) {

    .contact-hero {

        min-height: 430px;

    }

    .contact-hero-content {

        padding: 65px 0;

    }

    .contact-hero h1 {

        font-size: 40px;

    }

    .contact-hero p {

        font-size: 15px;

    }

    .form-row {

        grid-template-columns: 1fr;

        gap: 0;

    }

    .contact-form-wrapper {

        padding: 25px 20px;

        border-radius: 17px;

    }

    .contact-form-header h2 {

        font-size: 28px;

    }

    .map-placeholder {

        min-height: 300px;

    }

}


@media (max-width: 450px) {

    .contact-hero h1 {

        font-size: 35px;

    }

    .contact-info-item {

        gap: 12px;

    }

    .contact-info-icon {

        width: 43px;

        height: 43px;

    }

    .contact-submit {

        width: 100%;

    }

}


/* =========================================================
   CONTACT INTRO
========================================================= */

.contact-intro {

    padding: 90px 0;

    background: #ffffff;

}


.contact-intro-grid {

    display: grid;

    grid-template-columns:
        0.9fr
        1.1fr;

    gap: 80px;

    align-items: center;

}


/* LEFT SIDE */

.contact-intro .section-tag {

    display: inline-block;

    margin-bottom: 16px;

    color: #1763ad;

}


.contact-intro .section-title {

    max-width: 500px;

    margin: 0;

}


/* RIGHT SIDE */

.contact-intro-grid > div:last-child {

    max-width: 650px;

}


.contact-intro-grid p {

    margin: 0 0 20px;

    color: #687b90;

    font-size: 16px;

    line-height: 1.9;

}


.contact-intro-grid p:last-child {

    margin-bottom: 0;

}


/* =========================================================
   CONTACT INTRO - RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    .contact-intro {

        padding: 70px 0;

    }


    .contact-intro-grid {

        grid-template-columns: 1fr;

        gap: 30px;

    }


    .contact-intro-grid > div:last-child {

        max-width: 100%;

    }

}


@media (max-width: 500px) {

    .contact-intro {

        padding: 60px 0;

    }


    .contact-intro-grid p {

        font-size: 14px;

        line-height: 1.8;

    }

}


/* =========================================================
   CONTACT HERO TITLE — SINGLE LINE
========================================================= */

.contact-hero h1 {
    white-space: nowrap;
}

/* Allow wrapping on smaller screens */
@media (max-width: 800px) {
    .contact-hero h1 {
        white-space: normal;
    }
}

/* TITLE COLOR CONSISTENCY */
.contact-info-item h3,
.contact-form-header h2,
.map-placeholder-content h3 {
    color: #214f8f !important;
}
