/* ===============================================
   Contact Page Styles
   =============================================== */

/* -----------------------------------------------
   Contact Form Section
   ----------------------------------------------- */
.contact_form_section {
    width: 100%;
    padding: calc(100vw * 120 / 1400) 0;
    background-color: #E6E1DA;
}

.contact_form_inner {
    width: calc(100vw * 880 / 1400);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: calc(100vw * 80 / 1400);
}

.contact_form_description {
    width: 100%;
}

.contact_form_description_text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: calc(100vw * 14 / 1400);
    color: #4c5559;
    letter-spacing: 0.02em;
    line-height: 2;
    margin: 0;
}

.contact_form_description_text:first-child {
    margin-bottom: 0;
}

/* -----------------------------------------------
   Form Elements
   ----------------------------------------------- */
.contact_form {
    display: flex;
    flex-direction: column;
    gap: calc(100vw * 40 / 1400);
}

.form_group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: calc(100vw * 8 / 1400);
}

.form_group_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.form_input_wrapper {
    display: flex;
    flex-direction: column;
    gap: calc(100vw * 4 / 1400);
    width: calc(100vw * 616 / 1400);
}

.form_label {
    display: flex;
    align-items: center;
    gap: calc(100vw * 24 / 1400);
}

.form_label_badge {
    padding: calc(100vw * 4 / 1400) calc(100vw * 12 / 1400);
    border-radius: calc(100vw * 24 / 1400);
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    font-size: calc(100vw * 16 / 1400);
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.8;
    height: calc(100vw * 24 / 1400);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.form_label_badge_required {
    background-color: #994d4d;
}

.form_label_badge_optional {
    background-color: #a6a6a6;
}

.form_label_text {
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    font-size: calc(100vw * 16 / 1400);
    color: #4c5559;
    letter-spacing: 0.02em;
    line-height: 1.8;
    width: calc(100vw * 200 / 1400);
}

.form_input,
.form_select,
.form_textarea {
    width: calc(100vw * 616 / 1400);
    padding: calc(100vw * 12 / 1400) calc(100vw * 16 / 1400);
    background-color: #f6f6f6;
    border: none;
    border-radius: calc(100vw * 4 / 1400);
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    font-size: calc(100vw * 16 / 1400);
    color: #4c5559;
    letter-spacing: 0.02em;
    line-height: 1.8;
    transition: background-color 0.3s ease;
    height: calc(100vw * 48 / 1400);
}

.form_input::placeholder,
.form_select::placeholder,
.form_textarea::placeholder {
    color: #c2c2c2;
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    font-size: calc(100vw * 16 / 1400);
}

.form_input:focus,
.form_select:focus,
.form_textarea:focus {
    outline: none;
    background-color: #f0f0f0;
}

.form_input.error,
.form_select.error,
.form_textarea.error {
    background-color: #ffe6e6;
}

.form_select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='11' viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L9 9L17 1' stroke='%234c5559' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(100vw * 16 / 1400) center;
    background-size: calc(100vw * 18 / 1400) calc(100vw * 11 / 1400);
    padding-right: calc(100vw * 48 / 1400);
}

.form_textarea {
    resize: vertical;
    height: calc(100vw * 182 / 1400);
    min-height: calc(100vw * 182 / 1400);
    align-items: flex-start;
    padding-top: calc(100vw * 12 / 1400);
}

.form_error {
    display: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: calc(100vw * 12 / 1400);
    color: #a85959;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.form_error.show {
    display: block;
}

/* -----------------------------------------------
   Checkbox
   ----------------------------------------------- */
.form_group_checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form_checkbox_label {
    display: flex;
    align-items: center;
    gap: calc(100vw * 16 / 1400);
    cursor: pointer;
}

.form_checkbox {
    width: calc(100vw * 20 / 1400);
    height: calc(100vw * 20 / 1400);
    border: 1px solid #0a0a0a;
    background-color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.form_checkbox_text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: calc(100vw * 16 / 1400);
    color: #0a0a0a;
    letter-spacing: 0.02em;
    line-height: 2;
}

.form_checkbox_text a {
    text-decoration: underline;
    color: #0a0a0a;
}

/* -----------------------------------------------
   Submit Button
   ----------------------------------------------- */
.form_submit_wrapper {
    display: flex;
    justify-content: center;
}

.form_submit_btn {
    width: calc(100vw * 305 / 1400);
    height: calc(100vw * 66 / 1400);
    background-color: #994d4d;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
}

.form_submit_btn:hover {
    opacity: 0.9;
}

.form_submit_btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form_submit_btn span {
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    font-size: calc(100vw * 18 / 1400);
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.8;
}

.form_submit_btn img {
    position: absolute;
    right: calc(100vw * 16 / 1400);
    width: calc(100vw * 32 / 1400);
    height: calc(100vw * 22 / 1400);
}

/* -----------------------------------------------
   Responsive - SP
   ----------------------------------------------- */
@media (max-width: 768px) {
    .contact_form_section {
        padding: calc(100vw * 80 / 375) 0;
    }

    .contact_form_inner {
        width: calc(100vw * 335 / 375);
        gap: calc(100vw * 40 / 375);
    }

    .contact_form_description_text {
        font-size: calc(100vw * 12 / 375);
        letter-spacing: 0.02em;
        line-height: 2;
    }

    .contact_form_description_text:first-child {
        margin-bottom: calc(100vw * 8 / 375);
    }

    .contact_form {
        gap: calc(100vw * 32 / 375);
    }

    .form_group {
        gap: calc(100vw * 8 / 375);
    }

    .form_group_row {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(100vw * 8 / 375);
    }

    .form_input_wrapper {
        width: 100%;
        gap: calc(100vw * 4 / 375);
    }

    .form_label {
        gap: calc(100vw * 8 / 375);
    }

    .form_label_badge {
        padding: calc(100vw * 4 / 375) calc(100vw * 10 / 375);
        border-radius: calc(100vw * 20 / 375);
        font-size: calc(100vw * 12 / 375);
        height: calc(100vw * 20 / 375);
    }

    .form_label_text {
        font-size: calc(100vw * 14 / 375);
        width: auto;
    }

    .form_input,
    .form_select,
    .form_textarea {
        width: 88%;
        padding: calc(100vw * 12 / 375) calc(100vw * 16 / 375);
        border-radius: calc(100vw * 4 / 375);
        font-size: calc(100vw * 14 / 375);
        height: calc(100vw * 44 / 375);
    }

    .form_input::placeholder,
    .form_select::placeholder,
    .form_textarea::placeholder {
        font-size: calc(100vw * 14 / 375);
    }

    .form_select {
        background-position: right calc(100vw * 16 / 375) center;
        background-size: calc(100vw * 14 / 375) calc(100vw * 9 / 375);
        padding-right: calc(100vw * 40 / 375);
    }

    .form_textarea {
        height: calc(100vw * 160 / 375);
        min-height: calc(100vw * 160 / 375);
    }

    .form_error {
        font-size: calc(100vw * 11 / 375);
    }

    .form_group_checkbox {
        justify-content: flex-start;
    }

    .form_checkbox_label {
        gap: calc(100vw * 12 / 375);
    }

    .form_checkbox {
        width: calc(100vw * 18 / 375);
        height: calc(100vw * 18 / 375);
    }

    .form_checkbox_text {
        font-size: calc(100vw * 14 / 375);
    }

    .form_submit_wrapper {
        margin-top: calc(100vw * 16 / 375);
    }

    .form_submit_btn {
        width: 100%;
        height: calc(100vw * 56 / 375);
    }

    .form_submit_btn span {
        font-size: calc(100vw * 16 / 375);
    }

    .form_submit_btn img {
        right: calc(100vw * 20 / 375);
        width: calc(100vw * 7 / 375);
        height: calc(100vw * 14 / 375);
    }
}
