.contact-section {
    order: 6;
    position: relative;
    overflow: hidden;
    padding: 54px 32px 50px;
    background: #f7f9f8;
}

.contact-section::before {
    position: absolute;
    top: -220px;
    right: -180px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 92, 255, .1), transparent 68%);
    content: "";
    pointer-events: none;
}

.contact-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(390px, 1fr) minmax(460px, 1.1fr);
    align-items: start;
    gap: clamp(44px, 6vw, 80px);
    width: min(1180px, 100%);
    margin-inline: auto;
    padding: clamp(38px, 5vw, 68px);
    border: 1px solid rgba(88, 104, 112, .07);
    border-radius: 30px;
    background:
        radial-gradient(circle at 8% 12%, rgba(114, 234, 213, .07), transparent 24rem),
        rgba(242, 245, 245, .9);
    box-shadow: 0 24px 60px rgba(35, 40, 54, .055);
}

.contact-copy { display: flex; align-self: stretch; flex-direction: column; padding-top: 2px; }
.contact-eyebrow { margin-bottom: 18px; color: #7455e9; font-size: .73rem; font-weight: 800; letter-spacing: .19em; }
.contact-copy h2 { max-width: 520px; margin-bottom: 25px; color: #171b26; font-family: "Manrope", sans-serif; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.contact-copy > p:not(.contact-eyebrow) { max-width: 530px; margin-top: 16px; color: #59606d; font-size: .96rem; line-height: 1.75; }
.contact-copy .contact-leyo-prompt { margin-top: auto; padding-top: 38px; color: #343a46; font-size: .82rem; font-weight: 600; }
.contact-bubble {
    position: relative;
    z-index: 1;
    width: min(70%, 280px);
    margin-left: auto;
    padding: 18px 20px;
    border: 1px solid rgba(123, 92, 255, .1);
    border-radius: 22px;
    background: linear-gradient(145deg, #fff, #f8fcfb);
    box-shadow: 0 12px 30px rgba(35, 40, 54, .055);
    transform-origin: 12px 100%;
    translate: 40px 0;
    rotate: -4deg;
}
.contact-bubble::after {
    position: absolute;
    bottom: -22px;
    left: 12px;
    width: 28px;
    height: 26px;
    background: #f8fcfb;
    clip-path: polygon(20% 0, 100% 0, 0 100%);
    content: "";
}
.contact-bubble h2 {
    margin-bottom: 10px;
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    line-height: 1.2;
    text-align: center;
}
.contact-bubble p {
    margin-top: 0;
    color: #59606d;
    font-size: .84rem;
    line-height: 1.5;
    text-align: center;
}
.contact-receptionist {
    position: relative;
    aspect-ratio: 1374 / 1145;
    display: block;
    width: 100%;
    height: auto;
    margin: -8px auto 0;
    object-fit: contain;
    cursor: pointer;
}
.contact-receptionist:focus-visible {
    outline: 2px solid #7b5cff;
    outline-offset: 4px;
}
.contact-wave {
    position: absolute;
    top: -12px;
    right: 10px;
    font-size: 1.15rem;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
}
.contact-copy:has(.contact-receptionist) .contact-leyo-prompt {
    margin-top: 0;
    padding-top: 20px;
    text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
    .contact-receptionist {
        transition: opacity .65s ease, transform .65s ease, scale .4s ease;
    }
    .contact-bubble {
        transition: opacity .5s ease, transform .5s ease, box-shadow .3s ease;
    }
    .reception-greeting .contact-wave {
        animation: contact-wave-greeting 2s ease .4s both;
    }
    @keyframes contact-wave-greeting {
        0%, 100% { opacity: 0; }
        15%, 75% { opacity: .85; }
    }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .contact-receptionist:hover { scale: 1.01; }
    .contact-copy .contact-bubble:hover {
        transform: translateY(-2px);
        transition-delay: 0s;
        box-shadow: 0 14px 32px rgba(35, 40, 54, .065), 0 0 16px rgba(114, 230, 208, .08), 0 0 22px rgba(123, 92, 255, .035);
    }
}
@media (max-width: 1000px) {
    .contact-copy:has(.contact-receptionist) {
        width: 100%;
        max-width: 560px;
        margin-inline: auto;
    }
}
@media (max-width: 560px) {
    .contact-bubble { width: min(82%, 280px); padding: 16px; translate: 12px 0; }
    .contact-receptionist { margin-top: 4px; }
}
.contact-leyo-prompt button { margin-top: 12px; border: 0; background: transparent; color: #6c50df; cursor: pointer; font: inherit; font-weight: 750; }
.contact-leyo-label { position: relative; display: inline-block; }
.contact-leyo-label::after {
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #72e6d0, #7b5cff);
    transform: translateX(-50%);
    content: "";
}
.contact-leyo-prompt button:hover { color: #5135c3; text-decoration: underline; text-underline-offset: 3px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.contact-field { display: grid; gap: 9px; }
.contact-field-wide { grid-column: 1 / -1; }
.contact-field label { color: #282d38; font-size: .78rem; font-weight: 700; }

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    border: 1px solid #dfe3e5;
    border-radius: 12px;
    outline: none;
    background: #fbfcfc;
    padding: 14px 15px;
    color: #171b26;
    font: inherit;
    font-size: .88rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-field input,
.contact-field select { min-height: 50px; }
.contact-select-wrap { position: relative; min-height: 50px; }
.contact-field .contact-select-wrap select { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.contact-select-display { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; border: 1px solid #dfe3e5; border-radius: 12px; background: #fbfcfc; padding: 0 15px; color: #171b26; cursor: pointer; font: inherit; font-size: .88rem; text-align: left; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.contact-select-display i { color: #6c50df; font-size: 1rem; font-style: normal; transition: transform .2s ease; }
.contact-select-display:focus,
.contact-select-wrap.is-open .contact-select-display { border-color: #7bdcca; outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(114, 234, 213, .12); }
.contact-select-wrap.is-open .contact-select-display i { transform: rotate(180deg); }
.contact-select-options { position: absolute; z-index: 20; top: calc(100% + 7px); right: 0; left: 0; display: grid; overflow: hidden; border: 1px solid #dfe3e5; border-radius: 12px; background: #fff; box-shadow: 0 15px 35px rgba(35,40,54,.13); opacity: 0; transform: translateY(-5px); visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.contact-select-wrap.is-open .contact-select-options { opacity: 1; transform: translateY(0); visibility: visible; }
.contact-select-option { width: 100%; border: 0; background: transparent; padding: 12px 15px; color: #282d38; cursor: pointer; font: inherit; font-size: .84rem; text-align: left; }
.contact-select-option:hover,
.contact-select-option:focus { outline: none; background: linear-gradient(90deg, rgba(114,234,213,.11), rgba(123,92,255,.08)); color: #6045d0; }
.contact-field textarea { min-height: 132px; resize: vertical; }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus { border-color: #7bdcca; background: #fff; box-shadow: 0 0 0 4px rgba(114, 234, 213, .12); }

.contact-submit { grid-column: 1 / -1; width: fit-content; margin-top: 4px; border: 0; cursor: pointer; }
.contact-status { grid-column: 1 / -1; min-height: 1.2em; color: #4f7f76; font-size: .78rem; }

@media (max-width: 1000px) {
    .contact-section { padding: 48px 24px 44px; }
    .contact-shell { grid-template-columns: 1fr; gap: 46px; }
}

@media (max-width: 560px) {
    .contact-section { padding: 38px 16px 36px; }
    .contact-shell { padding: 32px 22px; border-radius: 22px; }
    .contact-form { grid-template-columns: 1fr; }
    .contact-field-wide,
    .contact-submit,
    .contact-status { grid-column: 1; }
    .contact-submit { width: 100%; min-width: 0; }
}

/* Progressive project reception, contained within the existing right column. */
.contact-leyo-question, .contact-leyo-description { display: block; }
.contact-leyo-description { margin: 5px 0 9px; font-weight: 400; }
.contact-form.project-intake { display: flex; min-width: 0; min-height: 530px; flex-direction: column; gap: 0; padding: 28px; border: 1px solid #e1e5e5; border-radius: 24px; background: rgba(255,255,255,.74); }
.project-intake [hidden] { display: none !important; }
.intake-progress { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.intake-progress li { flex: 1; padding-top: 10px; border-top: 2px solid #dfe3e5; color: #626773; font-size: .65rem; line-height: 1.5; }
.intake-progress li > span:first-child { display: block; font-size: .72rem; font-weight: 750; }
.intake-progress li[aria-current] { border-color: #7b5cff; color: #6045c5; }
.intake-progress li.is-complete { border-color: #72d7c3; color: #306b60; }
.intake-step h3, .intake-success h3 { margin: 0 0 18px; color: #171b26; font-family: 'Manrope', sans-serif; font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 500; line-height: 1.4; letter-spacing: -.035em; }
.intake-hint { margin: -5px 0 22px; color: #626773; font-size: .8rem; line-height: 1.65; }
.intake-choices { display: grid; gap: 10px; }
.intake-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 13px 16px; border: 1px solid #dce3e2; border-radius: 15px; background: #f7f9f8; color: #252934; font: inherit; font-size: .82rem; line-height: 1.5; text-align: left; cursor: pointer; }
.intake-choice > span[aria-hidden] { color: #7254d8; }
.intake-choice[aria-pressed='true'], .intake-choice:has(input:checked) { border-color: #75cbb9; background: #e1f7ef; color: #203d35; }
.intake-goal { justify-content: flex-start; }
.intake-goal input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: #6650bd; }
.intake-details { display: grid; gap: 18px; }
.intake-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 24px; }
.intake-back { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #615471; font: inherit; font-size: .8rem; cursor: pointer; }
.project-intake .cta-button { flex: .42 1 0; min-width: 0; min-height: 44px; width: auto; margin: 0; padding: 10px 12px; border: 0; font-size: .8rem; line-height: 1.4; cursor: pointer; }
.project-intake .contact-status { margin: 14px 0 0; color: #655173; font-size: .78rem; line-height: 1.5; }
.project-intake :is(button, input, textarea, h3):focus-visible { outline: 2px solid #7254d8; outline-offset: 4px; }
.project-intake button:disabled { opacity: .6; cursor: wait; }
.intake-success { margin-block: auto; padding-block: 38px; }
.intake-success-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 50%; background: #dcf7ec; color: #306b60; font-size: 1.5rem; }
@media (hover: hover) {
    .intake-choice:hover { border-color: #af9fe4; background: #f0ecfc; }
}
@media (prefers-reduced-motion: no-preference) {
    .intake-step:not([hidden]), .intake-success { animation: intake-enter .26s ease both; }
    .intake-choice { transition: background .18s ease, border-color .18s ease, transform .18s ease; }
    .intake-choice:active { transform: scale(.985); }
    @keyframes intake-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 600px) {
    .contact-form.project-intake { padding: 20px 16px; min-height: 540px; border-radius: 19px; }
    .intake-progress { gap: 6px; }
    .intake-progress li { font-size: .6rem; }
    .intake-choice { padding: 12px; }
    .intake-actions { gap: 8px; }
    .project-intake .cta-button { padding: 10px 8px; }
}
/* Direct contact outside and immediately below the project panel. */
.contact-form-column { min-width: 0; }
.contact-direct-label { flex-basis: 100%; text-align: center; font-weight: 600; }
.contact-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    width: min(1180px, 100%);
    margin: 26px auto 0;
    color: #626773;
    font-family: "Inter", sans-serif;
    font-size: .96rem;
    line-height: 1.75;
}
.contact-direct a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: #343a46;
    font-weight: 400;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.contact-direct svg { width: 17px; height: 17px; flex-shrink: 0; color: #7455c4; }
.contact-direct a:hover { color: #6045c5; text-decoration: underline; text-underline-offset: 4px; }
.contact-direct a:focus-visible { outline: 2px solid #7455c4; outline-offset: 4px; border-radius: 3px; }
.contact-direct-divider { color: #93baaf; }
@media (max-width: 600px) {
    .contact-direct { flex-direction: column; gap: 4px; text-align: center; }
    .contact-direct-divider { display: none; }
}
