/* contact.css */

.contact-page {
    background: #fff;
    color: #111;
}

.contact-hero {
    position: relative;
    width: 100%;
    min-height: clamp(240px, 34vw, 460px);
    overflow: hidden;
    background: #111;
}

.contact-hero img {
    width: 100%;
    height: clamp(240px, 34vw, 460px);
    display: block;
    object-fit: cover;
    filter: brightness(.68);
}

.contact-hero__title {
    position: absolute;
    left: clamp(24px, 7vw, 120px);
    bottom: clamp(32px, 6vw, 88px);
    color: #fff;
}

.contact-hero__title span {
    display: inline-block;
    margin-bottom: 14px;
    font-size: clamp(.78rem, 1vw, .95rem);
    font-weight: 700;
    letter-spacing: .18em;
}

.contact-hero__title h1 {
    margin: 0;
    font-size: clamp(2rem, 4.4vw, 5rem);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: .08em;
}

.contact-content {
    width: min(940px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(52px, 8vw, 110px) 0;
}

.contact-lead {
    margin: 0 0 clamp(36px, 5vw, 64px);
    color: #333;
    font-size: clamp(.95rem, 1.08vw, 1.05rem);
    line-height: 2;
    letter-spacing: .045em;
}

.contact-form {
    display: grid;
    gap: 0;
}

.contact-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid #e7e7e7;
}

.contact-row:last-of-type {
    border-bottom: 1px solid #e7e7e7;
}

.contact-row label {
    padding-top: 14px;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.contact-row label span {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: .68rem;
    line-height: 1;
    letter-spacing: .04em;
}

.contact-row input,
.contact-row textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    background: #f8f8f6;
    color: #111;
    font-size: 1rem;
    line-height: 1.8;
    padding: 16px 18px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-row textarea {
    resize: vertical;
    min-height: 180px;
}

.contact-row input:focus,
.contact-row textarea:focus {
    border-color: #1f8f4a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31, 143, 74, .12);
}

.contact-error {
    margin: 8px 0 0;
    color: #d93025;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.6;
}

.contact-agree {
    margin-top: 32px;
    text-align: center;
}

.contact-agree label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.contact-agree input {
    width: 20px;
    height: 20px;
    accent-color: #1f8f4a;
}

.contact-agree a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-actions {
    margin-top: clamp(36px, 5vw, 64px);
    display: flex;
    justify-content: center;
    gap: 16px;
}

.contact-actions button,
.contact-link-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    min-width: 220px;
    padding: 17px 32px;
    background: #1f8f4a;
    color: #fff;
    font-size: .96rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.contact-actions button:hover,
.contact-link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(31, 143, 74, .24);
}

.contact-actions .is-back {
    background: #e8e8e4;
    color: #111;
}

.contact-confirm-list {
    display: grid;
    border-top: 1px solid #e7e7e7;
}

.contact-confirm-list > div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 26px 0;
    border-bottom: 1px solid #e7e7e7;
}

.contact-confirm-list dt {
    font-weight: 700;
    letter-spacing: .06em;
}

.contact-confirm-list dd {
    margin: 0;
    line-height: 1.9;
    word-break: break-word;
}

.contact-complete {
    text-align: left;
}

.contact-complete h2 {
    margin: 0 0 20px;
    font-size: clamp(1.5rem, 2.4vw, 2.4rem);
    letter-spacing: .06em;
}

.contact-complete > p {
    margin: 0 0 42px;
    color: #333;
    line-height: 2;
}
.contact-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.contact-actions--back {
    margin-top: 12px;
}
/* tablet */
@media (max-width: 1024px) {
    .contact-content {
        width: min(860px, calc(100% - 48px));
    }

    .contact-row,
    .contact-confirm-list > div {
        grid-template-columns: 180px 1fr;
        gap: 24px;
    }
}

/* smartphone */
@media (max-width: 767px) {
    .contact-hero {
        min-height: 240px;
    }

    .contact-hero img {
        height: 240px;
    }

    .contact-hero__title {
        left: 24px;
        right: 24px;
        bottom: 32px;
    }

    .contact-hero__title h1 {
        font-size: 2rem;
        letter-spacing: .05em;
    }

    .contact-content {
        width: calc(100% - 40px);
        padding: 48px 0 72px;
    }

    .contact-lead {
        font-size: .92rem;
        line-height: 1.9;
    }

    .contact-row,
    .contact-confirm-list > div {
        display: block;
        padding: 22px 0;
    }

    .contact-row label {
        display: block;
        padding-top: 0;
        margin-bottom: 12px;
    }

    .contact-row input,
    .contact-row textarea {
        border-radius: 12px;
        font-size: 16px;
        padding: 14px 15px;
    }

    .contact-row textarea {
        min-height: 160px;
    }

    .contact-confirm-list dt {
        margin-bottom: 10px;
        font-size: .9rem;
    }

    .contact-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .contact-actions button,
    .contact-link-button {
        width: 100%;
        min-width: 0;
    }

    .contact-agree {
        text-align: left;
    }

    .contact-agree label {
        align-items: flex-start;
        line-height: 1.7;
    }

    .contact-agree input {
        flex: 0 0 auto;
        margin-top: 4px;
    }
}