/* =========================================
   CONTACT HERO
========================================= */

.contact-hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: var(--color-ivory);
}

.contact-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.contact-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(247, 243, 236, .98) 0%,
            rgba(247, 243, 236, .94) 34%,
            rgba(247, 243, 236, .60) 56%,
            rgba(247, 243, 236, .10) 100%);
}

.contact-hero-inner {
    position: relative;
    z-index: 3;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-hero-content {
    width: 62%;
    padding: 90px 0;
}

.contact-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--color-coral);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.contact-breadcrumb i {
    font-style: normal;
    color: #77716a;
}

.contact-hero-line {
    width: 38px;
    height: 2px;
    margin-bottom: 28px;
    background: var(--color-coral);
}

.contact-hero-content h1 {
    max-width: 760px;
    margin: 0;
    color: var(--color-charcoal);
    font-size: clamp(4rem, 6.8vw, 7rem);
    font-weight: 500;
    line-height: .88;
    letter-spacing: -.065em;
}

.contact-hero-content h1 span {
    display: block;
    color: var(--color-coral);
}

.contact-hero-content>p {
    max-width: 570px;
    margin: 32px 0 0;
    color: #4f4943;
    font-size: .95rem;
    line-height: 1.7;
}


/* HERO SIDE */

.contact-hero-side {
    width: 180px;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 3vw;
}

.contact-hero-side-line {
    width: 38px;
    height: 1px;
    margin-bottom: 20px;
    background: var(--color-charcoal);
}

.contact-hero-side-text {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.contact-hero-side-text span {
    color: #4c4842;
    font-size: .57rem;
    font-weight: 600;
    letter-spacing: .25em;
}


/* =========================================
   ENQUIRY
========================================= */

.contact-enquiry {
    background: var(--color-white);
    padding: 110px 0 120px;
}

.contact-enquiry-grid {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 85px;
    align-items: start;
}

.contact-enquiry-intro {
    min-height: 570px;
    position: relative;
    padding-top: 5px;
}

.contact-section-line {
    width: 38px;
    height: 2px;
    margin-bottom: 27px;
    background: var(--color-coral);
}

.contact-enquiry-intro h2 {
    max-width: 400px;
    margin: 0;
    color: var(--color-charcoal);
    font-size: clamp(3rem, 4.5vw, 5rem);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.06em;
}

.contact-enquiry-intro h2 span {
    display: block;
    color: var(--color-coral);
}

.contact-enquiry-intro>p {
    max-width: 340px;
    margin: 35px 0 0;
    color: #625d57;
    font-size: .83rem;
    line-height: 1.75;
}


/* LEFT DECORATION */

.contact-intro-mark {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-intro-mark>span {
    width: 125px;
    height: 125px;
    display: block;
    border: 1px solid rgba(201, 107, 92, .45);
    border-radius: 50%;
    position: relative;
}

.contact-intro-mark>span::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    right: -4px;
    top: 58px;
    border-radius: 50%;
    background: var(--color-coral);
}

.contact-intro-mark p {
    margin: 0;
    color: #817a72;
    font-size: .56rem;
    font-weight: 600;
    line-height: 2;
    letter-spacing: .28em;
}


/* FORM AREA */

.contact-form-area {
    border-left: 1px solid #d9d2c9;
    padding-left: 70px;
}

.contact-form-heading {
    margin-bottom: 32px;
}

.contact-form-heading .contact-section-line {
    margin-bottom: 22px;
}

.contact-form-heading p {
    margin: 0;
    color: var(--color-charcoal);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: .2em;
}


/* FORM */

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 25px;
}

.contact-field {
    position: relative;
}

.contact-field label {
    display: block;
    margin-bottom: 8px;
    color: #393530;
    font-size: 1.61rem;
    font-weight: 600;
    letter-spacing: .03em;
}

.contact-field label span {
    color: var(--color-coral);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 0;
    border-bottom: 1px solid #aaa39b;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: var(--color-charcoal);
    font-family: var(--font-main);
    font-size: 1.08rem;
    transition:
        border-color .3s ease,
        box-shadow .3s ease;
}

.contact-field input,
.contact-field select {
    height: 44px;
    padding: 0 28px 0 0;
}

.contact-field textarea {
    min-height: 90px;
    padding: 10px 0;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #98918a;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-bottom-color: var(--color-coral);
    box-shadow: 0 3px 0 rgba(201, 107, 92, .08);
}

.contact-field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.contact-field:has(select)::after {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 17px;
    width: 7px;
    height: 7px;
    border-right: 1px solid #403b36;
    border-bottom: 1px solid #403b36;
    transform: rotate(45deg);
    pointer-events: none;
}

.contact-message-field {
    margin-top: 8px;
}


/* FORM ACTIONS */

.contact-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 32px;
}

.contact-captcha {
    width: 240px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5cec5;
    background: #faf8f4;
    color: #817a72;
    font-size: .6rem;
    letter-spacing: .12em;
}

.contact-submit {
    min-width: 260px;
    height: 58px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border: 0;
    border-radius: 2px;
    background: var(--color-charcoal);
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .15em;
    cursor: pointer;
    transition:
        background .35s ease,
        transform .35s var(--ease-smooth);
}

.contact-submit span:last-child {
    color: var(--color-coral);
    font-size: 1rem;
}

.contact-submit:hover {
    background: var(--color-teal);
    transform: translateY(-3px);
}

.contact-required {
    margin: 14px 0 0;
    color: #938c84;
    font-size: .57rem;
}

.contact-required span {
    color: var(--color-coral);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .contact-hero-content {
        width: 75%;
    }

    .contact-hero-side {
        margin-right: 0;
    }

    .contact-enquiry-grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .contact-enquiry-intro {
        min-height: auto;
    }

    .contact-intro-mark {
        position: relative;
        margin-top: 55px;
    }

    .contact-form-area {
        border-left: 0;
        border-top: 1px solid #d9d2c9;
        padding: 60px 0 0;
    }

}


@media (max-width: 700px) {

    .contact-hero {
        min-height: 620px;
    }

    .contact-hero-inner {
        min-height: 620px;
    }

    .contact-hero-image img {
        object-position: 62% center;
    }

    .contact-hero-overlay {
        background:
            linear-gradient(90deg,
                rgba(247, 243, 236, .97) 0%,
                rgba(247, 243, 236, .88) 65%,
                rgba(247, 243, 236, .35) 100%);
    }

    .contact-hero-content {
        width: 100%;
        padding: 90px 0;
    }

    .contact-hero-content h1 {
        font-size: clamp(3.2rem, 13vw, 5rem);
    }

    .contact-hero-content>p {
        max-width: 340px;
        font-size: .84rem;
    }

    .contact-hero-side {
        display: none;
    }

    .contact-enquiry {
        padding: 75px 0 85px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 22px;
    }

    .contact-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-captcha,
    .contact-submit {
        width: 100%;
        min-width: 0;
    }

}

/* =========================================
   CUSTOM CAPTCHA
========================================= */

.contact-captcha {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0;
}

.contact-captcha label {
    display: block;
    margin: 0 0 10px;
    color: #393530;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-captcha label span {
    color: var(--color-coral);
}


/* CAPTCHA DISPLAY + REFRESH */

.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
}

.captcha-image {
    position: relative;
    width: 190px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #2F2F2F;
    border: 1px solid #2F2F2F;
}

.captcha-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(-25deg,
            transparent 0 9px,
            rgba(255, 255, 255, 0.12) 10px 11px);
}

.captcha-image::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 1px;
    background: rgba(201, 107, 92, 0.85);
    transform: rotate(-7deg);
}

#captchaCode {
    position: relative;
    z-index: 2;
    color: #F7F3EC;
    font-family: "Courier New", monospace;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    transform: skewX(-8deg);
    user-select: none;
}


/* REFRESH BUTTON */

.captcha-refresh {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #D8D1C7;
    background: #F7F3EC;
    color: #2F2F2F;
    font-size: 1.35rem;
    cursor: pointer;
    transition:
        background .3s ease,
        color .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

.captcha-refresh:hover {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: #FFFFFF;
    transform: rotate(180deg);
}


/* CAPTCHA INPUT */

.contact-captcha input {
    display: block;
    width: 258px;
    height: 44px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid #aaa39b;
    background: transparent;
    color: var(--color-charcoal);
    font-family: var(--font-main);
    font-size: 1.08rem;
    outline: none;
    transition:
        border-color .3s ease,
        box-shadow .3s ease;
}

.contact-captcha input::placeholder {
    color: #98918a;
}

.contact-captcha input:focus {
    border-bottom-color: var(--color-coral);
    box-shadow: 0 3px 0 rgba(201, 107, 92, .08);
}


/* =========================================
   CAPTCHA + SUBMIT LAYOUT
========================================= */

.contact-form-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-top: 32px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .contact-form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }

    .contact-captcha {
        max-width: 100%;
    }

    .captcha-image {
        width: 190px;
    }

    .contact-captcha input {
        width: 100%;
    }

    .contact-submit {
        width: 100%;
        min-width: 0;
    }
}