.contact-page-container {
    margin: 0 auto;
    padding-top: 110px;
}
.contact-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 0;
}
.contact-title {
    font-size: 32px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 40px;
}
.contact-instruction {
    color: #023084;
    font-weight: 500;
}
.mw-custom-contact-form {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    font-family: "Noto Sans JP", sans-serif;
    padding-bottom: 60px;
}

.mw-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.mw-form-label {
    width: 280px;
    padding: 15px 0;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    flex-shrink: 0;
}

.req-asterisk {
    color: #E11D48;
    margin-left: 5px;
    font-weight: normal;
}

.mw-form-input {
    flex-grow: 1;
}

.mw-custom-contact-form .input-field {
    width: 100%;
    background-color: #f4f8fa;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.mw-custom-contact-form .input-field:focus {
    background-color: #fff;
    border-color: #023084;
    box-shadow: 0 0 0 2px rgba(2, 82, 146, 0.1);
}

.mw-custom-contact-form textarea.input-field {
    height: 180px;
    resize: vertical;
}

.privacy-row {
    margin-top: 30px;
    align-items: flex-start;
}
.privacy-check label {
    font-size: 14px;
    cursor: pointer;
}
.privacy-link {
    margin-top: 5px;
    font-size: 12px;
}
.privacy-link a {
    color: #023084;
    text-decoration: underline;
}

.mw-form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.btn-submit {
    text-align: center;
    background-color: #023084;
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    min-width: 280px;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-back {
    background-color: #ccc;
    color: #333;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
}

input[type="checkbox"] {
    -webkit-appearance: checkbox !important;
    appearance: checkbox !important;
}

/* Custom select */
.mwform-select-wrap {
    width: 100%;
    flex-grow: 1;
}

.custom-select-ui {
    margin-bottom: 0;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f4f8fa !important;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
}

.custom-select-trigger::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg) translateY(-2px);
    transition: 0.2s;
    margin-left: 10px;
}

.custom-select-ui.active .custom-select-trigger::after {
    transform: rotate(225deg) translateY(-2px);
}

.custom-select-options {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border-radius: 4px;
    margin-top: 5px;
}

@media screen and (max-width: 960px) {
    .contact-page-container {
        padding-top: 0px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 768px) {
    .mw-custom-contact-form {
        padding: 0 20px;
    }
    .mw-form-row {
        display: block;
        margin-bottom: 20px;
    }
    .mw-form-label {
        width: 100%;
        padding-bottom: 8px;
    }
    .btn-submit {
        width: 100%;
        min-width: auto;
    }
}

/* Page thanks */
.st-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 110px 0 60px 0;
}

.st-page-heading {
    padding-top: 60px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.st-success-banner {
    border-left: 5px solid #023084;
    padding-left: 15px;
    margin-bottom: 50px;
    font-size: 18px;
    color: #444;
}

.st-content-body {
    margin-bottom: 60px;
    font-size: 15px;
}

.st-thank-you-text {
    font-size: 18px;
    margin-bottom: 30px;
    display: block;
}

.st-content-body p {
    margin-bottom: 15px;
}

.st-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.st-close-btn {
    display: inline-block;
    background-color: #023084;
    color: #fff;
    padding: 15px 80px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.st-close-btn:hover {
    background-color: #023084;
    opacity: 0.9;
}

.is-full-height {
  min-height: 75.6vh;
}

@media (max-width: 960px) {
    .st-container {
        padding: 0 20px;
    }
    .st-page-heading {
        padding-top: 30px;
        font-size: 20px;
    }
    .st-close-btn {
        width: 100%;
        padding: 15px 0;
        box-sizing: border-box;
    }
}