@charset "utf-8";

/*=============================
Contact heading
=============================*/

.contact-page {
    background: var(--color-pale);
    scroll-margin-top: 80px;
}

.contact-heading {
    padding: 36px 20px 32px;
    text-align: center;
}

.contact-heading .line {
    height: 48px;
    margin-bottom: 28px;
}

.contact-heading h1 {
    margin-bottom: 24px;
    font-size: 22px;
    line-height: 1.5;
}

.contact-heading p {
    font-size: 15px;
}

/*=============================
Contact form
=============================*/

.contact-form-background {
    padding: 28px 0 48px;
    background: linear-gradient(rgba(244, 248, 252, 0.7), rgba(244, 248, 252, 0.7)), url("../../images/subpage-background.jpg") center / cover;
}

.contact-form-panel,
.form-notice {
    width: 90%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 14px;
    line-height: 1.7;
}

.contact-field + .contact-field {
    margin-top: 28px;
}

.contact-field label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.field-badge {
    padding: 3px 16px;
    border-radius: 999px;
    background: var(--color-navy);
    color: #fff;
    font-size: 13px;
}

.field-badge--optional {
    background: #707575;
}

.contact-field input,
.contact-field textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b8bdc1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--color-navy);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.025em;
}

.contact-field textarea {
    min-height: 240px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #727a80;
    opacity: 1;
}

.contact-page :focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 4px;
}

.contact-field [aria-invalid="true"] {
    border-color: #a32121;
}

.field-error {
    margin-top: 8px;
    color: #a32121;
    font-size: 14px;
}

.form-notice {
    margin-bottom: 24px;
    border: 1px solid #a32121;
}

.form-notice a {
    text-decoration: underline;
}

.form-notice ul {
    margin-top: 12px;
}

.contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.contact-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 90%;
    margin: 28px auto 0;
}

.contact-page .contact-form-button {
    display: block;
    position: static;
    width: 300px;
    max-width: 100%;
    padding: 18px 20px;
    border: 1px solid var(--color-navy);
    transform: none;
    white-space: normal;
    cursor: pointer;
}

.contact-page .contact-form-back {
    background: #fff;
    color: var(--color-navy);
}

.contact-page .contact-form-button:disabled {
    background: #d8dde2;
    color: #626b74;
    border-color: #d8dde2;
    cursor: not-allowed;
}

.contact-page .contact-form-back:hover {
    background: var(--color-navy);
    color: #fff;
}

.contact-confirm > div {
    padding: 20px 0;
    border-bottom: 1px solid #d1d8df;
}

.contact-confirm dt {
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-confirm dd {
    overflow-wrap: anywhere;
}

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

.contact-complete h2 {
    margin-bottom: 24px;
    font-size: 22px;
}

.contact-complete .contact-form-button {
    margin: 32px auto 0;
}

/*=============================
Privacy policy
=============================*/

.privacy-section {
    margin-top: 32px;
}

.privacy-section h2 {
    margin-bottom: 24px;
    font-size: 18px;
}

.privacy-scroll {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    border: 1px solid #8a9198;
    background: rgba(255, 255, 255, 0.6);
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.privacy-scroll h3 {
    margin: 24px 0 12px;
    font-size: 16px;
    font-weight: 600;
}

.privacy-scroll h3:first-child {
    margin-top: 0;
}

.privacy-scroll p + p {
    margin-top: 16px;
}

.privacy-scroll ul {
    margin: 12px 0;
    padding-left: 1.5em;
    list-style: disc;
}

.contact-consent-note {
    margin-top: 24px;
    font-size: 14px;
}

.privacy-agreement {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    cursor: pointer;
}

.privacy-agreement input {
    appearance: auto;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    accent-color: var(--color-navy);
}

/* Contact pc */
@media screen and (min-width: 769px) {
    .contact-heading {
        padding: 100px 30px 48px;
    }

    .contact-heading .line {
        height: 116px;
        margin-bottom: 40px;
    }

    .contact-heading h1 {
        margin-bottom: 32px;
        font-size: 35px;
    }

    .contact-heading p {
        font-size: 18px;
    }

    .contact-form-background {
        padding: 50px 0 64px;
    }

    .contact-form-panel,
    .form-notice {
        width: 80%;
        padding: 64px clamp(32px, 5vw, 72px);
        font-size: 16px;
    }

    .contact-field + .contact-field {
        margin-top: 34px;
    }

    .contact-field--short {
        max-width: 400px;
    }

    .contact-field input {
        min-height: 60px;
    }

    .contact-field textarea {
        min-height: 490px;
    }

    .field-badge {
        font-size: 16px;
    }

    .privacy-section {
        margin-top: 60px;
    }

    .privacy-section h2 {
        margin-bottom: 36px;
        font-size: 27px;
    }

    .privacy-scroll {
        height: 400px;
        padding: 28px 32px;
    }

    .privacy-scroll h3 {
        font-size: 18px;
    }

    .contact-form-actions {
        margin-top: 48px;
    }

    .contact-page .contact-form-button {
        padding: 24px 20px;
    }
}
