/* =========================================================
   Contact Page
========================================================= */

.contact-page {
    min-height: 70vh;
    padding: 70px 24px 100px;
    background: #f7f7fa;
    color: #20204e;
}

.contact-container {
    width: min(100%, 960px);
    margin: 0 auto;
}

/* =========================================================
   Heading
========================================================= */

.contact-heading {
    margin-bottom: 38px;
    text-align: center;
}

.contact-heading-en {
    margin: 0 0 8px;
    color: #77779a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.contact-heading h1 {
    margin: 0;
    color: #20204e;
    font-size: clamp(1.7rem, 4vw, 2.25rem);
    line-height: 1.4;
}

.contact-introduction {
    margin: 18px 0 0;
    color: #626277;
    font-size: 0.95rem;
    line-height: 1.9;
}

/* =========================================================
   Form
========================================================= */

.contact-form {
    overflow: hidden;
    border: 1px solid #e1e1eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(32, 32, 78, 0.06);
}

.contact-form-row {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    border-bottom: 1px solid #e8e8ef;
}

.contact-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 30px;
    background: #f4f4f8;
    color: #20204e;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.6;
}

.contact-required {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #20204e;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;
}

.contact-input-area {
    min-width: 0;
    padding: 24px 30px;
}

.contact-input-area input[type="text"],
.contact-input-area input[type="email"],
.contact-input-area select,
.contact-input-area textarea {
    display: block;
    width: 100%;
    border: 1px solid #cfcfdd;
    border-radius: 8px;
    background: #fff;
    color: #29293d;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
    box-sizing: border-box;
}

.contact-input-area input[type="text"],
.contact-input-area input[type="email"],
.contact-input-area select {
    min-height: 50px;
    padding: 0 15px;
}

.contact-input-area textarea {
    min-height: 220px;
    padding: 15px;
    line-height: 1.8;
    resize: vertical;
}

.contact-input-area input:focus,
.contact-input-area select:focus,
.contact-input-area textarea:focus {
    border-color: #4c4c83;
    box-shadow: 0 0 0 3px rgba(32, 32, 78, 0.1);
}

.contact-input-area input::placeholder,
.contact-input-area textarea::placeholder {
    color: #aaaab6;
}

.contact-select-wrap {
    position: relative;
}

.contact-select-wrap::after {
    position: absolute;
    top: 50%;
    right: 17px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #55556f;
    border-bottom: 2px solid #55556f;
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.contact-select-wrap select {
    padding-right: 48px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.contact-input-area .is-error {
    border-color: #d94b62;
    background: #fffafb;
}

.contact-error {
    margin: 8px 0 0;
    color: #d33750;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.6;
}

.contact-character-note {
    margin: 8px 0 0;
    color: #89899c;
    font-size: 0.78rem;
    line-height: 1.6;
}

/* =========================================================
   Privacy
========================================================= */

.contact-privacy {
    padding: 34px 30px 16px;
    text-align: center;
}

.contact-checkbox-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.contact-checkbox-label input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-checkbox-design {
    position: relative;
    flex-shrink: 0;
    width: 21px;
    height: 21px;
    border: 2px solid #aaaaba;
    border-radius: 4px;
    background: #fff;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.contact-checkbox-label input:checked + .contact-checkbox-design {
    border-color: #20204e;
    background: #20204e;
}

.contact-checkbox-label input:checked + .contact-checkbox-design::after {
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    content: "";
    transform: rotate(45deg);
}

.contact-checkbox-label input:focus-visible + .contact-checkbox-design {
    outline: 3px solid rgba(32, 32, 78, 0.18);
    outline-offset: 2px;
}

.contact-checkbox-text {
    color: #55556c;
    font-size: 0.9rem;
    line-height: 1.7;
}

.contact-checkbox-text a {
    color: #20204e;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-privacy-error {
    text-align: center;
}

/* =========================================================
   Submit
========================================================= */

.contact-submit-area {
    padding: 22px 30px 42px;
    text-align: center;
}

.contact-submit-button {
    width: min(100%, 420px);
    min-height: 58px;
    padding: 15px 30px;
    border: 0;
    border-radius: 9px;
    background: #20204e;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(32, 32, 78, 0.18);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-submit-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 11px 28px rgba(32, 32, 78, 0.22);
}

.contact-submit-button:active {
    transform: translateY(0);
}

.contact-submit-note {
    margin: 13px 0 0;
    color: #9191a1;
    font-size: 0.76rem;
}

/* =========================================================
   Global Error
========================================================= */

.contact-global-error {
    margin-bottom: 20px;
    padding: 16px 20px;
    border: 1px solid #efb5bf;
    border-radius: 8px;
    background: #fff5f6;
    color: #c52f47;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.7;
}

/* =========================================================
   Complete
========================================================= */

.contact-complete {
    padding: 65px 40px;
    border: 1px solid #e1e1eb;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 10px 35px rgba(32, 32, 78, 0.06);
}

.contact-complete h1 {
    margin: 0;
    color: #20204e;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.contact-complete p {
    margin: 20px 0 0;
    color: #606076;
    font-size: 0.95rem;
    line-height: 1.9;
}

.contact-complete .contact-complete-note {
    margin-top: 13px;
    color: #89899b;
    font-size: 0.82rem;
}

.contact-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 320px);
    min-height: 54px;
    margin-top: 32px;
    padding: 13px 24px;
    border-radius: 8px;
    background: #20204e;
    color: #fff !important;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.contact-home-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* =========================================================
   Honeypot
========================================================= */

.contact-honeypot {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* =========================================================
   Responsive
========================================================= */

@media screen and (max-width: 768px) {

    .contact-page {
        padding: 45px 16px 70px;
    }

    .contact-heading {
        margin-bottom: 28px;
    }

    .contact-introduction br {
        display: none;
    }

    .contact-form {
        border-radius: 12px;
    }

    .contact-form-row {
        display: block;
    }

    .contact-label {
        align-items: center;
        padding: 18px 20px 8px;
        background: #fff;
    }

    .contact-input-area {
        padding: 10px 20px 22px;
    }

    .contact-input-area textarea {
        min-height: 190px;
    }

    .contact-privacy {
        padding: 28px 20px 10px;
    }

    .contact-submit-area {
        padding: 18px 20px 34px;
    }

    .contact-complete {
        padding: 48px 22px;
        border-radius: 12px;
    }

    .contact-complete p br {
        display: none;
    }
}

@media screen and (max-width: 480px) {

    .contact-page {
        padding-right: 12px;
        padding-left: 12px;
    }

    .contact-label {
        padding-right: 16px;
        padding-left: 16px;
    }

    .contact-input-area {
        padding-right: 16px;
        padding-left: 16px;
    }

    .contact-checkbox-label {
        align-items: flex-start;
        text-align: left;
    }

    .contact-checkbox-design {
        margin-top: 2px;
    }
}