/* =========================================================
   SPAVERSE CONTACT PAGE
========================================================= */

.contact-page {
    width: 100%;

    background:
        radial-gradient(
            circle at 4% 18%,
            rgba(201, 166, 107, 0.08),
            transparent 26%
        ),
        radial-gradient(
            circle at 94% 22%,
            rgba(46, 94, 78, 0.07),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            var(--soft-cream),
            var(--cream)
        );
}


/* =========================================================
   MAIN WRAPPER
========================================================= */

.contact-hero {
    width: 90%;
    max-width: 1180px;

    margin: 0 auto;

    padding: 55px 0 60px;
}


/* =========================================================
   PAGE TITLE
========================================================= */

.contact-title {
    max-width: 620px;

    margin: 0 auto 34px;

    text-align: center;
}

.contact-title > span {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.contact-title h1 {
    margin: 0;

    color: var(--deep-green);

    font-family: "Cormorant Garamond", serif;
    font-size: 40px;
    line-height: 1.1;
}

.contact-title h1 strong {
    color: var(--gold);

    font-weight: 700;
}

.contact-title p {
    max-width: 520px;

    margin: 10px auto 0;

    color: var(--soft-brown);

    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   ALERT
========================================================= */

.contact-alert {
    max-width: 700px;

    margin: 0 auto 24px;

    padding: 12px 16px;

    border: 1px solid #bbf7d0;
    border-radius: 12px;

    background: #ecfdf3;

    color: #166534;

    font-size: 13px;
    font-weight: 700;

    text-align: center;
}

.contact-alert-error {
    border-color: #fecdd3;

    background: #fff1f2;

    color: #be123c;
}


/* =========================================================
   GRID
========================================================= */

.contact-grid {
    display: grid;

    grid-template-columns:
        1.15fr
        0.75fr
        1.15fr;

    gap: 24px;

    align-items: start;
}


/* =========================================================
   FORM BOX
========================================================= */

.contact-form-box {
    padding: 26px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            var(--dark-green),
            var(--deep-green)
        );

    box-shadow:
        0 16px 38px
        rgba(46, 94, 78, 0.16);
}

.contact-form-heading {
    margin-bottom: 22px;
}

.contact-form-heading > span {
    display: block;

    margin-bottom: 5px;

    color: var(--gold);

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.contact-form-heading h2 {
    margin: 0;

    color: #ffffff;

    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    line-height: 1;
}

.contact-form-heading p {
    margin: 7px 0 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   FORM
========================================================= */

.contact-form {
    display: grid;

    gap: 14px;
}

.form-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}

.contact-field {
    min-width: 0;

    display: grid;

    gap: 7px;
}


/* =========================================================
   LABELS
========================================================= */

.contact-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 11px;
    font-weight: 800;

    line-height: 1.2;
}

.contact-field label > span:not(.optional) {
    color: #f3cb81;
}

.contact-field label .optional {
    color: rgba(255, 255, 255, 0.44);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


/* =========================================================
   INPUTS / TEXTAREA
========================================================= */

.contact-form-box
.contact-field
input,

.contact-form-box
.contact-field
textarea {
    display: block;

    width: 100%;

    margin: 0;

    border: 1px solid
        rgba(255, 255, 255, 0.22);

    border-radius: 11px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;

    caret-color: #ffffff;

    font-family: inherit;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.4;

    box-shadow: none;

    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.contact-form-box
.contact-field
input {
    min-height: 46px;

    padding: 0 14px;
}

.contact-form-box
.contact-field
textarea {
    min-height: 120px;

    padding: 13px 14px;

    resize: vertical;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.contact-form-box
.contact-field
input::placeholder,

.contact-form-box
.contact-field
textarea::placeholder {
    color: rgba(255, 255, 255, 0.48);

    opacity: 1;

    font-size: 12px;
    font-weight: 500;
}


/* =========================================================
   FOCUS
========================================================= */

.contact-form-box
.contact-field
input:focus,

.contact-form-box
.contact-field
textarea:focus {
    border-color:
        rgba(234, 215, 177, 0.9);

    background:
        rgba(255, 255, 255, 0.12);

    box-shadow:
        0 0 0 3px
        rgba(201, 166, 107, 0.13);
}


/* =========================================================
   AUTOFILL
========================================================= */

.contact-form-box
.contact-field
input:-webkit-autofill,

.contact-form-box
.contact-field
input:-webkit-autofill:hover,

.contact-form-box
.contact-field
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;

    caret-color: #ffffff;

    transition:
        background-color
        9999s
        ease-in-out
        0s;

    box-shadow:
        inset 0 0 0 1000px
        #2e5e4e;
}


/* =========================================================
   VALIDATION ERROR
========================================================= */

.contact-field small {
    display: block;

    margin-top: -1px;

    color: #ffd3d3;

    font-size: 9px;
    font-weight: 700;

    line-height: 1.4;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.contact-submit {
    width: max-content;
    min-width: 160px;

    min-height: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 0 18px;

    border: 0;
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            var(--light-gold),
            var(--gold)
        );

    color: var(--deep-green);

    font-family: inherit;

    font-size: 11px;
    font-weight: 900;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.contact-submit:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 22px
        rgba(201, 166, 107, 0.18);
}

.contact-submit b {
    font-size: 17px;
    font-weight: 500;
}


/* =========================================================
   CONTACT INFO
========================================================= */

.contact-info {
    padding: 22px 4px;
}

.contact-info h2 {
    margin-bottom: 20px;

    color: var(--deep-green);

    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    line-height: 1;
}

.info-item {
    display: flex;

    gap: 13px;

    padding: 0 0 17px;

    margin-bottom: 17px;

    border-bottom:
        1px solid
        rgba(46, 94, 78, 0.10);
}

.info-item:last-child {
    margin-bottom: 0;

    padding-bottom: 0;

    border-bottom: 0;
}

.icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--deep-green),
            var(--dark-green)
        );

    color: var(--light-gold);

    font-size: 18px;

    box-shadow:
        0 8px 18px
        rgba(46, 94, 78, 0.14);
}

.info-item strong {
    display: block;

    margin-bottom: 4px;

    color: var(--deep-green);

    font-size: 15px;
}

.info-item p {
    margin: 0;

    color: var(--soft-brown);

    font-size: 13px;
    line-height: 1.45;
}


/* =========================================================
   IMAGE / MAP
========================================================= */

.contact-side {
    display: grid;

    gap: 18px;
}

.contact-image,
.contact-map {
    overflow: hidden;

    border:
        1px solid
        rgba(46, 94, 78, 0.08);

    border-radius: 18px;

    box-shadow:
        0 12px 30px
        rgba(46, 94, 78, 0.10);
}

.contact-image {
    height: 260px;
}

.contact-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.contact-map {
    height: 210px;

    background: #eeeeee;
}

.contact-map iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =========================================================
   FEATURES
========================================================= */

.contact-features {
    margin-top: 24px;

    padding: 18px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;

    border:
        1px solid
        rgba(46, 94, 78, 0.08);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.78);

    box-shadow:
        0 10px 28px
        rgba(46, 94, 78, 0.07);
}

.contact-features > div {
    padding-left: 18px;

    border-left:
        1px solid
        rgba(46, 94, 78, 0.12);
}

.contact-features > div:first-child {
    border-left: 0;
}

.contact-features h4 {
    margin-bottom: 5px;

    color: var(--deep-green);

    font-size: 15px;
}

.contact-features p {
    margin: 0;

    color: var(--soft-brown);

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 0;
    }

    .contact-side {
        grid-template-columns:
            1fr 1fr;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .contact-hero {
        width: 92%;

        padding:
            45px 0 50px;
    }

    .contact-title h1 {
        font-size: 32px;
    }

    .form-row,
    .contact-side {
        grid-template-columns: 1fr;
    }

    .contact-form-box {
        padding: 22px;

        border-radius: 18px;
    }

    .contact-form-box
    .contact-field
    input,

    .contact-form-box
    .contact-field
    textarea {
        font-size: 16px;
    }

    .contact-image {
        height: 230px;
    }

    .contact-map {
        height: 230px;
    }

    .contact-features {
        grid-template-columns:
            1fr 1fr;
    }

    .contact-features
    > div:nth-child(3) {
        border-left: 0;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .contact-hero {
        width:
            calc(100% - 24px);
    }

    .contact-title {
        margin-bottom: 26px;
    }

    .contact-title h1 {
        font-size: 29px;
    }

    .contact-form-box {
        padding:
            19px 15px;
    }

    .contact-field label {
        font-size: 10px;
    }

    .contact-submit {
        width: 100%;

        min-height: 46px;
    }

    .contact-features {
        grid-template-columns: 1fr;
    }

    .contact-features > div {
        padding-left: 0;

        border-left: 0;
    }
}