.contact-page-hero,
.contact-info-section,
.contact-message-section,
.contact-form-section,
.contact-final-section {
    position: relative;
    overflow: hidden;
}

.contact-page-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 90px 30px 80px;
}

.contact-page-hero::before {
    content: "";
    position: absolute;
    inset: 35px;
    border: 1px solid rgba(128, 101, 67, 0.45);
    pointer-events: none;
}

.contact-hero-shape {
    position: absolute;
    border: 1px solid rgba(128, 101, 67, 0.35);
    pointer-events: none;
}

.contact-hero-shape-left {
    width: 280px;
    height: 280px;
    left: -120px;
    top: 80px;
    transform: rotate(18deg);
}

.contact-hero-shape-right {
    width: 350px;
    height: 350px;
    right: -170px;
    top: -100px;
    transform: rotate(35deg);
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    text-align: center;
}

.section-label {
    margin: 0 0 15px;
    color: var(--red);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
}

.contact-hero-content h1 {
    margin: 0;
    color: var(--brown);
    font-family: "IM Fell English SC", serif;
    font-size: clamp(48px, 7vw, 78px);
    font-weight: 400;
    line-height: 1;
}

.contact-hero-text {
    max-width: 570px;
    margin: 28px auto 0;
    color: var(--brown-light);
    font-size: 17px;
    line-height: 1.8;
}

.contact-info-section {
    background: var(--paper);
    padding: 100px 30px;
}

.contact-info-inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-heading {
    margin-bottom: 50px;
}

.contact-info-heading h2 {
    margin: 0;
    color: var(--brown);
    font-family: "IM Fell English SC", serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 400;
    line-height: 1.05;
}

.contact-info-heading h2 span {
    color: var(--red);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.contact-info-card {
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    background: rgba(239, 225, 195, 0.55);
    border: 1px solid var(--line);
    color: var(--brown);
    text-decoration: none;
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    background: var(--cream);
}

.contact-info-number {
    position: absolute;
    top: 20px;
    right: 22px;
    color: var(--line);
    font-family: "IM Fell English SC", serif;
    font-size: 24px;
}

.contact-info-label {
    margin-bottom: 8px;
    color: var(--red);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

.contact-info-card strong {
    color: var(--brown);
    font-size: 21px;
    font-weight: 500;
}

.contact-info-arrow {
    position: absolute;
    right: 24px;
    bottom: 22px;
    color: var(--green);
    font-size: 25px;
    transition: transform 0.25s ease;
}

.contact-info-card:hover .contact-info-arrow {
    transform: translateX(5px);
}

.contact-message-section {
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    background: var(--brown);
}

.contact-message-section::before,
.contact-message-section::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(201, 168, 94, 0.35);
    pointer-events: none;
}

.contact-message-section::before {
    width: 300px;
    height: 300px;
    left: -120px;
    top: -130px;
    transform: rotate(25deg);
}

.contact-message-section::after {
    width: 260px;
    height: 260px;
    right: -90px;
    bottom: -130px;
    transform: rotate(-20deg);
}

.contact-message-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    text-align: center;
}

.contact-message-mark {
    display: block;
    color: var(--gold);
    font-family: "IM Fell English SC", serif;
    font-size: 75px;
    line-height: 0.6;
}

.contact-message-content p {
    margin: 25px 0;
    color: var(--cream);
    font-family: "IM Fell English SC", serif;
    font-size: clamp(25px, 4vw, 37px);
    line-height: 1.35;
}

.contact-message-line {
    width: 80px;
    height: 1px;
    margin: 0 auto;
    background: var(--gold);
}

.contact-form-section {
    background: var(--cream);
    padding: 110px 30px;
}

.contact-form-decoration {
    position: absolute;
    border: 1px solid rgba(128, 101, 67, 0.3);
    pointer-events: none;
}

.contact-form-decoration-left {
    width: 350px;
    height: 350px;
    left: -190px;
    top: 100px;
    transform: rotate(30deg);
}

.contact-form-decoration-right {
    width: 300px;
    height: 300px;
    right: -160px;
    bottom: 50px;
    transform: rotate(-25deg);
}

.contact-form-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    align-items: start;
}

.contact-form-heading h2 {
    margin: 0 0 28px;
    color: var(--brown);
    font-family: "IM Fell English SC", serif;
    font-size: clamp(40px, 5vw, 58px);
    font-weight: 400;
    line-height: 1.05;
}

.contact-form-heading h2 span {
    color: var(--red);
}

.contact-form-heading > p:not(.section-label) {
    color: var(--brown-light);
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 20px;
}

.contact-form-wrapper {
    padding: 40px;
    background: var(--brown);
    border: 1px solid var(--line);
    box-shadow: 12px 12px 0 rgba(128, 101, 67, 0.22);
}

.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--cream);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid rgba(239, 225, 195, 0.35);
    outline: none;
    background: rgba(239, 225, 195, 0.08);
    color: var(--cream);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(239, 225, 195, 0.55);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(239, 225, 195, 0.12);
}

.form-group textarea {
    min-height: 170px;
    resize: vertical;
}

.form-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 5px 0 28px;
    padding: 15px;
    border: 1px solid rgba(201, 168, 94, 0.35);
    background: rgba(201, 168, 94, 0.08);
}

.form-note span {
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-family: "IM Fell English SC", serif;
    font-size: 14px;
}

.form-note p {
    margin: 0;
    color: rgba(239, 225, 195, 0.78);
    font-size: 13px;
    line-height: 1.6;
}

.contact-submit-button {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--brown);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.contact-submit-button:hover {
    background: transparent;
    color: var(--gold);
}

.contact-final-section {
    min-height: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    background: var(--red-dark);
    text-align: center;
}

.contact-final-decoration {
    position: absolute;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(239, 225, 195, 0.18);
    transform: rotate(35deg);
    pointer-events: none;
}

.contact-final-content {
    position: relative;
    z-index: 2;
}

.contact-final-content .section-label {
    color: var(--gold);
}

.contact-final-content h2 {
    margin: 0;
    color: var(--cream);
    font-family: "IM Fell English SC", serif;
    font-size: clamp(40px, 6vw, 65px);
    font-weight: 400;
    line-height: 1.05;
}

.contact-final-content > p:last-child {
    margin-top: 22px;
    color: rgba(239, 225, 195, 0.8);
    font-size: 16px;
}

@media (max-width: 850px) {

    .contact-form-inner {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-form-heading {
        max-width: 700px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 650px) {

    .contact-page-hero {
        min-height: 360px;
        padding: 80px 22px 65px;
    }

    .contact-page-hero::before {
        inset: 18px;
    }

    .contact-info-section,
    .contact-form-section {
        padding: 75px 20px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        min-height: 155px;
    }

    .contact-message-section {
        min-height: 300px;
        padding: 70px 25px;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
        box-shadow: 7px 7px 0 rgba(128, 101, 67, 0.22);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-final-section {
        min-height: 320px;
        padding: 70px 25px;
    }

    .contact-final-decoration {
        width: 300px;
        height: 300px;
    }

}

.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 42px 15px 16px;

    border: 1px solid rgba(239, 225, 195, 0.35);
    border-radius: 0;

    background-color: #594536;
    color: var(--cream);

    font-family: "DM Sans", sans-serif;
    font-size: 14px;

    outline: none;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c9a85e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-group select:hover {
    border-color: var(--gold);
    background-color: #634d3b;
}

.form-group select:focus {
    border-color: var(--gold);
    background-color: #634d3b;
    box-shadow: 0 0 0 2px rgba(201, 168, 94, 0.12);
}

.form-group select option {
    background-color: var(--brown);
    color: var(--cream);
    padding: 12px;
}

.optional-label {
    color: var(--gold);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-left: 5px;
}
