.repair-estimate {
    background: #00a3e4;
    padding: 50px 20px;
    color: #333;
}

.repair-estimate__panel {
    max-width: 1140px;
    margin: auto;
    background: #fff;
    border-radius: 10px;
    padding: 45px 60px 50px;
}

.repair-estimate__title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 45px;
}

.repair-estimate__title span {
    display: inline-block;
    color: #009cdb;
    background: #ffdc00;
    border-radius: 5px;
    font-size: .75em;
    padding: 0 18px;
}

.repair-form__row {
    display: grid;
    grid-template-columns: 215px 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.repair-form__label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
    font-weight: bold;
}

.repair-form__badge {
    border: 1px solid #77818b;
    color: #77818b;
    border-radius: 15px;
    font-size: 11px;
    padding: 1px 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.repair-form__badge--required {
    color: #ff292f;
    border-color: #ff292f;
}

.repair-form__control input:not([type=hidden]),
.repair-form__control textarea,
.repair-form__choice {
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    border: 1px solid #ddd;
    border-radius: 9px;
    padding: 12px;
    font: inherit;
    background: #fff;
}

.repair-form__control textarea {
    min-height: 94px;
    resize: vertical;
}

.repair-form__control input::placeholder,
.repair-form__control textarea::placeholder {
    color: #b4b4b4;
}

.repair-form__control input[type=file] {
    margin-bottom: 12px;
    padding: 8px;
    color: #777;
}

.repair-form__choice {
    text-align: left;
    color: #999;
    cursor: pointer;
    position: relative;
    padding-right: 44px;
}

.repair-form__choice.has-value {
    color: #333;
}

.repair-form__choice:after {
    content: '⊕';
    position: absolute;
    right: 18px;
    color: #333;
    font-size: 23px;
    top: 7px;
}

.repair-form__row.is-invalid input:not([type=hidden]),
.repair-form__row.is-invalid textarea,
.repair-form__row.is-invalid .repair-form__choice {
    border: 3px solid #ff292f;
}

.repair-form__error {
    color: #ff292f;
    font-size: 13px;
    margin: 7px 0 0;
}

.repair-form__error[hidden] {
    display: none;
}

.repair-form__divider {
    border: 0;
    border-top: 2px solid #ddd;
    margin: 0 0 38px;
}

.repair-form__file-note {
    text-align: right;
    color: #777;
    font-size: 12px;
}

.repair-form__submit {
    text-align: center;
    margin-top: 55px;
}

.repair-form__submit a {
    color: #008ccc;
}

.repair-form__submit button {
    width: min(400px, 100%);
    min-height: 95px;
    border: 0;
    border-radius: 5px;
    background: #008fcc;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.repair-form__submit button:disabled {
    background: #e5e5e5;
    cursor: default;
}

.repair-finish h3 {
    background: #e5eff4;
    border-left: 4px solid #00a3e4;
    padding: 4px 12px;
    font-size: 22px;
}

.repair-finish__message {
    text-align: center;
    padding: 28px 0 0;
}

.repair-finish__message h4 {
    font-size: 22px;
}

.repair-finish__message p {
    margin: 20px 0;
}

.repair-finish__back {
    display: inline-block;
    margin-top: 20px;
    border: 1px solid #00a3e4;
    border-radius: 5px;
    padding: 14px 35px;
    min-width: 240px;
    color: #333;
    font-weight: bold;
    text-align: center;
}

@media(max-width:767px) {
    .repair-estimate {
        padding: 30px 10px;
    }

    .repair-estimate__panel {
        padding: 30px 12px;
    }

    .repair-estimate__title {
        font-size: 23px;
        margin-bottom: 45px;
    }

    .repair-estimate__title span {
        padding: 0 12px;
    }

    .repair-form__row {
        display: block;
        margin-bottom: 26px;
    }

    .repair-form__label {
        justify-content: flex-end;
        flex-direction: row-reverse;
        padding: 0;
        margin-bottom: 6px;
    }

    .repair-form__divider {
        margin-bottom: 25px;
    }

    .repair-form__submit {
        margin-top: 45px;
    }

    .repair-form__submit button {
        min-height: 72px;
        font-size: 19px;
    }

    .repair-finish__message {
        text-align: left;
    }

    .repair-finish__back {
        box-sizing: border-box;
        width: 100%;
    }
}

.repair-finish-page .repair-hero-contact {
    display: none;
}

.repair-contact-finish {
    background: #e5eff4;
    padding: 60px 15px;
    text-align: center;
}

.repair-contact-finish h2 {
    font-size: 32px;
    margin: 0 0 45px;
}

.repair-contact-finish div {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    margin: auto;
    padding: 30px;
}

.repair-contact-finish h3 {
    color: #008ac9;
    font-size: 25px;
    margin: 0;
}

.repair-contact-finish a {
    color: #333;
    font-size: 40px;
    font-weight: bold;
}

.repair-contact-finish p {
    margin: 0;
}

@media(max-width:767px) {
    .repair-contact-finish h2 {
        font-size: 24px;
    }

    .repair-contact-finish h3 {
        font-size: 20px;
    }

    .repair-contact-finish a {
        font-size: 32px;
    }
}

/* Repair form: isolate dimensions from the shared page and CMS styles. */
.repair-estimate,
.repair-estimate * {
    box-sizing: border-box;
}

.repair-estimate {
    padding: 50px 20px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.repair-estimate__panel {
    width: 100%;
    max-width: 1140px;
    padding: 43px 60px 50px;
}

.repair-estimate .repair-estimate__title {
    margin: 0 0 42px;
    color: #333;
    font-size: 40px;
    line-height: 1.3;
}

.repair-estimate .repair-estimate__title span {
    font-size: 30px;
    line-height: 1.4;
    padding: 0 20px;
}

.repair-form__row {
    grid-template-columns: 213px minmax(0, 1fr);
    gap: 20px;
    margin: 0 0 36px;
}

.repair-form__label {
    padding-top: 14px;
    line-height: 20px;
}

.repair-form__badge {
    min-width: 54px;
    text-align: center;
    padding: 1px 8px;
}

.repair-form__control input:not([type=hidden]):not([type=file]),
.repair-form__control textarea,
.repair-form__choice {
    height: 52px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid #dedede;
    border-radius: 9px;
    font-size: 16px;
    line-height: 1.5;
}

.repair-form__control textarea {
    height: 94px;
}

.repair-form__control input::placeholder,
.repair-form__control textarea::placeholder {
    color: #d4d4d4;
    opacity: 1;
}

.repair-form__choice {
    color: #999;
}

.repair-form__row.is-invalid input:not([type=hidden]):not([type=file]),
.repair-form__row.is-invalid textarea,
.repair-form__row.is-invalid .repair-form__choice {
    border: 3px solid #ff272c;
    padding-left: 10px;
}

.repair-form__error {
    margin: 8px 0 0;
    line-height: 20px;
}

.repair-form__divider {
    margin: 0 0 38px;
}

.repair-form__file {
    display: flex;
    position: relative;
    height: 50px;
    margin: 0 0 18px;
    overflow: hidden;
    border: 1px solid #dedede;
    border-radius: 9px;
    cursor: pointer;
}

.repair-form__file:focus-within {
    outline: 2px solid #008dcc;
    outline-offset: 2px;
}

.repair-form__file-name {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 12px;
    color: #d4d4d4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.repair-form__file-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 145px;
    flex: none;
    border-left: 1px solid #78828c;
    background: #f5f5f5;
    color: #6f7983;
    font-weight: 700;
}

.repair-form__file-button-sp {
    display: none;
}

.repair-form__file input[type=file] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.repair-form__submit {
    margin-top: 48px;
}

.repair-form__submit p {
    margin: 0 0 16px;
}

.repair-form__submit button {
    min-height: 100px;
    border-radius: 5px;
    box-shadow: 0 4px 0 #eee;
}

@media (max-width: 767px) {
    .repair-estimate {
        padding: 20px 10px 30px;
    }

    .repair-estimate__panel {
        padding: 30px 12px;
    }

    .repair-estimate .repair-estimate__title {
        margin: 0 0 48px;
        font-size: 24px;
        white-space: nowrap;
    }

    .repair-estimate .repair-estimate__title span {
        padding: 0 14px;
        font-size: 16px;
        line-height: 28px;
        vertical-align: 3px;
    }

    .repair-form__row {
        margin: 0 0 26px;
    }

    .repair-form__label {
        gap: 8px;
        padding: 0;
        margin: 0 0 6px;
        font-size: 14px;
    }

    .repair-form__badge {
        min-width: 38px;
        padding: 1px 6px;
        font-size: 11px;
    }

    .repair-form__control input:not([type=hidden]):not([type=file]),
    .repair-form__control textarea,
    .repair-form__choice {
        font-size: 16px;
    }

    .repair-form__divider {
        margin: 0 0 26px;
    }

    .repair-form__file {
        margin-bottom: 10px;
    }

    .repair-form__file-button {
        width: 65px;
    }

    .repair-form__file-button-pc {
        display: none;
    }

    .repair-form__file-button-sp {
        display: inline;
    }

    .repair-form__submit {
        margin-top: 50px;
    }

    .repair-form__submit p {
        margin-bottom: 12px;
    }

    .repair-form__submit button {
        min-height: 72px;
        font-size: 19px;
    }
}

/* The CMS wraps this form, so its button reset needs a more specific rule. */
.repair-page .repair-estimate .repair-form__choice {
    text-align: left;
}

.repair-page .repair-estimate .repair-form__control input:not([type=hidden]),
.repair-page .repair-estimate .repair-form__control textarea {
    box-shadow: none;
}

.repair-page .repair-estimate .repair-form__file input[type=file] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .repair-estimate .repair-estimate__title {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .repair-estimate .repair-estimate__title span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        line-height: 1;
    }
}