/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT HERO
   Desktop Figma: 1680px frame
   Left column:  width 560px, sticky, padding: 143px 0 80px, left: 140px
   Right column: fills rest, Google map, margin: 160px 140px
═══════════════════════════════════════════════════════════════════════════ */
.section-contact {
    padding: 160px 0 100px;
    gap: 40px;
    min-height: 700px;
    align-items: flex-start;
}

/* ─── Left: sticky info ───────────────────────────────────────────────────── */
/*
 * Utility classes: d-flex flex-col
 */

.section-contact__info {
    width: 560px;
    flex-shrink: 0;
    padding: 0;
    gap: 20px;
}

/* ─── Tag "Stay connected" ────────────────────────────────────────────────── */
/*
 * Utility class: relative
 * Same arrow trick as prefooter tag, but border-left uses --accent.
 */

.contact-tag {
    display: inline-flex;
    align-items: center;
    background: var(--second-bg);
    border-left: 3px solid var(--accent);
    padding: 13px 5px 11px 15px;
    align-self: flex-start;
}

.contact-tag::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    bottom: 0;
    width: 15px;
    background: var(--second-bg);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.contact-tag span {
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--black-70);
    white-space: nowrap;
}

/* ─── Title ───────────────────────────────────────────────────────────────── */
/*
 * Utility class: capitalize
 */

.contact-title {
    margin-top: 2px;
    margin-bottom: 2px;
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 61px;
    line-height: 1;
    color: var(--black);
    width: 680px;
}

/* ─── Description ─────────────────────────────────────────────────────────── */

.contact-desc {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    color: var(--black-70);
    max-width: 560px;
}

/* ─── Info items ──────────────────────────────────────────────────────────── */
/*
 * Utility classes: d-flex items-center
 */

.contact-item { gap: 10px; }

.contact-item__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item__icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.contact-item__link {
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 25px;
    line-height: 1;
    color: var(--black);
    text-decoration: underline;
    white-space: nowrap;
}
.contact-item__link:hover {
    text-decoration: none;
}

.contact-item__text {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    color: var(--black);
}

/* ─── Right: map ──────────────────────────────────────────────────────────── */
.section-contact__row {
    gap: 40px;
}
.section-contact__map {
    flex: 1;
    min-height: 500px;
    margin: 0;
}

.section-contact__map #contactMap {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
    vertical-align: top;
    background: var(--second-bg);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA / FORM SECTION
   Desktop Figma: left 140px, width 1400px, background --second-bg
   Left side: 680px, padding 80px 40px 80px 80px
   Right side: fills rest, worker photo with left fade
═══════════════════════════════════════════════════════════════════════════ */

.section-cta {
    margin-bottom: 100px;
    overflow: hidden;
}
.section-cta__body {
    background: var(--second-bg);
}

/* ─── Left: content ───────────────────────────────────────────────────────── */
/*
 * Utility classes: d-flex flex-col
 */

.section-cta__content {
    width: 680px;
    flex-shrink: 0;
    padding: 80px 40px 80px 80px;
    gap: 20px;
}

/* ─── Tag "Get started" ───────────────────────────────────────────────────── */
/*
 * Utility class: relative
 * Dark border (--black), white background
 */

.cta-tag {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border-left: 3px solid var(--black);
    padding: 13px 5px 11px 15px;
    align-self: flex-start;
}

.cta-tag::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    bottom: 0;
    width: 15px;
    background: var(--white);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.cta-tag span {
    font-family: var(--font-onest);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--black-70);
    white-space: nowrap;
}

/* ─── Title ───────────────────────────────────────────────────────────────── */
/*
 * Utility class: capitalize
 */

.cta-title {
    font-family: var(--font-plus);
    font-weight: 700;
    font-size: 39px;
    line-height: 1;
    color: var(--black);
    white-space: nowrap;
}

/* ─── Description ─────────────────────────────────────────────────────────── */

.cta-desc {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
    color: var(--black);
}

/* ─── Form ────────────────────────────────────────────────────────────────── */
/*
 * Utility classes: d-flex flex-col
 */

.cta-form { gap: 0; }

.cta-form__row { gap: 20px; }

.cta-form__field {
    flex: 1;
    border-bottom: 1px solid var(--black-30);
    padding: 20px 0;
}

.cta-form__field input,
.cta-form__field textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: var(--black);
    resize: none;
}

.cta-form__field input.is-invalid {
    color: #c63b3b;
}

.cta-form__field.is-invalid {
    border-bottom-color: #c63b3b;
}

.cta-form__field input::placeholder,
.cta-form__field textarea::placeholder {
    color: var(--black-30);
}

.cta-form__field--textarea {
    flex: none;
    width: 100%;
}

.cta-form__notice {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-family: var(--font-onest);
    font-size: 14px;
    line-height: 1.4;
}

.cta-form__notice[hidden] {
    display: none;
}

.cta-form__notice--loading {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(51, 54, 57, 0.08);
    color: var(--black);
}

.cta-form__notice--success {
    background: rgba(58, 130, 74, 0.12);
    color: #24542f;
}

.cta-form__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(51, 54, 57, 0.2);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: cta-form-spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* ─── Privacy text ────────────────────────────────────────────────────────── */

.cta-form__privacy {
    font-family: var(--font-onest);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.3;
    color: var(--black-70);
    padding-top: 10px;
}

.cta-form__privacy a {
    color: var(--black);
    text-decoration: underline;
}

/* ─── Button ──────────────────────────────────────────────────────────────── */
/*
 * Utility classes: d-inline-flex items-center justify-center capitalize cursor-pointer
 */

.btn-cta {
    height: 50px;
    padding: 0 35px;
    margin-top: 20px;
    font-family: var(--font-plus);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    border: none;
    white-space: nowrap;
    background: var(--accent);
    color: var(--black);
    clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
    align-self: flex-start;
}

.btn-cta:disabled {
    opacity: 0.75;
    cursor: wait;
}

/* ─── Right: image ────────────────────────────────────────────────────────── */

.section-cta__image {
    flex: 1;
    min-height: 400px;
}

.section-cta__image img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

.section-cta__image-corner {
    width: 100px;
    height: 100%;
    background-color: var(--second-bg);
    clip-path: polygon(0 0, 0% 100%, 100% 0);
    transform: translateX(100%);
}

/* ==================
 * Responsive
 * ================== */
@media (max-width: 991px) {
    .section-contact {
        padding: 106px 0 120px;
        min-height: 0;
        gap: 0;
    }

    .section-contact__row {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .section-contact__info {
        width: 100%;
        gap: 20px;
    }

    .contact-tag,
    .cta-tag {
        padding: 10px 5px 10px 15px;
    }

    .contact-tag span,
    .cta-tag span {
        font-size: 16px;
        line-height: normal;
    }

    .contact-title {
        width: 100%;
        margin: 0;
        font-size: 48px;
        line-height: normal;
    }

    .contact-desc {
        max-width: 100%;
        font-size: 19px;
        line-height: normal;
    }

    .contact-item {
        gap: 10px;
    }

    .contact-item__link {
        font-size: 23px;
        line-height: normal;
        white-space: normal;
    }

    .contact-item__text {
        width: 270px;
        max-width: calc(100% - 50px);
        font-size: 19px;
        line-height: normal;
    }

    .section-contact__map {
        width: 100vw;
        min-height: 270px;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        flex: none;
    }

    .section-contact__map #contactMap {
        height: 270px;
    }

    .section-cta {
        margin-bottom: 120px;
        padding-left: 0;
        padding-right: 0;
    }

    .section-cta__body {
        flex-direction: column-reverse;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .section-cta__content {
        width: 100%;
        padding: 30px 24px 40px;
        gap: 20px;
    }

    .section-cta__image {
        width: 100%;
        min-height: 240px;
        flex: none;
    }

    .section-cta__image-corner {
        top: -40px;
        right: 0;
        width: 100%;
        height: 40px;
        clip-path: polygon(0 0, 0 100%, 100% 100%);
        transform: none;
    }

    .cta-title {
        font-size: 33px;
        line-height: normal;
        white-space: normal;
    }

    .cta-desc {
        font-size: 19px;
        line-height: normal;
    }

    .cta-form__row {
        flex-direction: column;
        gap: 0;
    }

    .cta-form__field {
        width: 100%;
        padding: 15px 0;
    }

    .cta-form__field input,
    .cta-form__field textarea {
        font-size: 16px;
        line-height: normal;
    }

    .cta-form__field--textarea textarea {
        min-height: 60px;
    }

    .cta-form__privacy {
        padding-top: 10px;
        font-size: 13px;
        line-height: normal;
    }

    .btn-cta {
        align-self: center;
        height: 50px;
        font-size: 16px;
        line-height: normal;
    }
}

@keyframes cta-form-spin {
    to {
        transform: rotate(360deg);
    }
}
