/* recruit-contact form */

.contactTitle {
    height: 150px;
    position: relative;
    background: url(../img/interviewTitleBG.gif) center bottom / cover no-repeat;
}

.contactTitle h1 {
    display: block;
    padding-top: 32px;
    color: #FFF;
    font-size: 2.8rem;
    line-height: 1.3;
}

.contactTitle .en {
    display: block;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    font-weight: 400;
    opacity: .9;
    margin-bottom: 4px;
}

.contact {
    padding: 50px 0 80px;
}

.contact-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-lead {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.6rem;
    line-height: 1.8;
}

.contact-form .row {
    margin-bottom: 28px;
}

.contact-form .label {
    display: block;
    font-weight: 700;
    color: #0c50a3;
    margin-bottom: 10px;
}

.contact-form .req {
    color: #ec0603;
    font-size: 1.2rem;
    margin-left: 6px;
    font-weight: 700;
}

.contact-form .choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.contact-form .choice {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #0c50a3;
    line-height: 2;
}

.contact-form .choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-form .choice span {
    position: relative;
    padding-left: 32px;
}

.contact-form .choice span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    background: #ecf5f9;
    border: 1px solid #0c50a3;
    border-radius: 50%;
}

.contact-form .choice input:checked + span::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 5px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    background: #0c50a3;
    border-radius: 50%;
}

.contact-form .name-row {
    display: flex;
    gap: 16px;
}

.contact-form .name-row .name-col {
    flex: 1;
}

.contact-form .name-col .sub-label {
    display: block;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: #ecf5f9;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1.6rem;
    color: #444;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0c50a3;
    background: #fff;
}

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

.privacy-box {
    max-height: 220px;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
}

.privacy-box h3 {
    color: #0c50a3;
    font-size: 1.4rem;
    margin: 16px 0 6px;
}

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

.privacy-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    font-weight: 600;
    color: #0c50a3;
    cursor: pointer;
}

.privacy-agree input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #0c50a3;
}

.contact-submit {
    text-align: center;
    margin-top: 40px;
}

.contact-submit button {
    display: inline-block;
    min-width: 280px;
    background-color: #C00;
    color: #FFF;
    font-size: 2.0rem;
    font-weight: 700;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

.contact-submit button:hover {
    background-color: #0c50a3;
}

.contact-error {
    color: #c00;
    text-align: center;
    margin: 0 0 32px;
    padding: 0;
    background: none;
    font-size: 1.5rem;
    line-height: 1.9;
}

.contact-error p {
    font-weight: 700;
    margin: 0;
}

.field-error {
    color: #c00;
    font-size: 1.3rem;
    margin-top: 8px;
    text-align: left;
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
    border-color: #c00 !important;
    background: #fff5f5;
}

.contact-form .row.is-invalid .label,
.contact-form .name-col.is-invalid .sub-label {
    color: #c00;
}

.contact-form .name-col.is-invalid input {
    border-color: #c00 !important;
    background: #fff5f5;
}

.turnstile-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-submit button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.contact-thanks {
    text-align: center;
    padding: 60px 20px;
}

.contact-thanks h2 {
    color: #0c50a3;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.contact-thanks p {
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-thanks a {
    display: inline-block;
    background-color: #0c50a3;
    color: #FFF;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
}

.contact-thanks a:hover {
    background-color: #C00;
}

.hp-field {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

@media screen and (max-width: 1000px) {
    .contactTitle {
        height: auto;
    }

    .contactTitle h1 {
        padding: 40px 0;
        font-size: 2.0rem;
    }

    .contact-form .name-row {
        display: block;
    }

    .contact-form .name-col + .name-col {
        margin-top: 16px;
    }

    .contact-submit button {
        width: 90%;
        min-width: 0;
        font-size: 1.8rem;
    }
}
