@charset "utf-8";

/* form_modal.css で定義された CSS 変数のテーマカラーをここで上書きできます */
:root {
    --modal-color: #ff5500;
    --modal-color-light: #ffe8d4;
}

.main_form {
    width: 400px;
    height: fit-content;
    background-color: #fff;
    color: #000;
    z-index: 1;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

@media screen and (max-width: 960px) {
    .main_form {
        width: 100%;
        margin: 0 auto;
        padding: 10px;
        border-radius: 0;
    }
}

.contact_form {
    background: #fff;
    border-radius: 4px;
    padding: 4% 4% 20px;
    text-align: left;
}

@media screen and (max-width: 960px) {
    .contact_form {
        width: 100%;
        margin: 0 auto;
        padding: 10px 15px;
        background-color: #faf9d2;
        box-shadow: none;
    }
}

.form_heading {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid #bbb;
}

.form_heading::before {
    content: "";
    width: 30px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: 5px;
    background-size: contain;
    background-repeat: no-repeat;
}

.main_form #car_area .form_heading::before {
    background-image: url(../img/form_icon_car.png);
}

.main_form #user_area .form_heading::before {
    background-image: url(../img/form_icon_customer.png);
}

@media screen and (max-width: 960px) {
    .form_heading {
        width: 95%;
        padding: 10px 0 0;
        margin: 0 auto 10px;
        font-size: 1.1em;
        text-align: center;
        font-weight: bold;
        background-color: initial;
        background-image: none;
        color: initial;
        border-bottom: 1px solid #bbb;
    }

    .form_heading {
        display: none;
    }

    .form_heading::before {
        display: none;
    }
}

/*　次へ　*/
.form_next_btn {
    display: block;
    width: 97%;
    margin: 0 auto;
    padding: 8px;
    background: linear-gradient(to bottom, #bd202d 0%, #e10214 88%);
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    transition: 0.2s;
    border: none;
}

.form_next_btn:hover {
    opacity: 0.8;
}

.form_next_btn.disable {
    background: #dadada;
    text-shadow: -2px -1px 2px #a8a8a8;
}

@media screen and (min-width: 961px) {
    .form_next_btn {
        display: none;
    }
}

/* 入力フォームのスタイル */
input,
select {
    width: 100%;
    font-size: 16px;
    font-family: Meiryo, sans-serif;
    line-height: 1.5;
    padding: 4px 8px;
    border: solid 1px #888;
    box-sizing: border-box;
    appearance: none;
}

input[name="car_id"] {
    position: absolute;
    overflow: hidden;
    width: 0;
}

select::-ms-expand {
    display: none;
}

.form_title {
    display: flex;
    width: 33%;
    text-align: left;
    font-weight: 500;
    font-size: 0.9em;
    line-height: 1.4;
    align-items: center;
}

.form_title label[for="as_maker"] {
    font-size: 0.9em;
    vertical-align: middle;
    display: inline-grid;
    line-height: 1.4;
}

@media screen and (max-width: 960px) {
    .form_title {
        width: 100%;
        margin-bottom: 5px;
    }

    .form_title label[for="as_maker"] {
        display: block;
    }
}

.form_inner {
    margin-bottom: 12px;
}

.form_item {
    display: flex;
    margin-top: 10px;
}

@media screen and (max-width: 960px) {
    .form_item {
        flex-direction: column;
        width: 100%;
    }
}

.form_area {
    position: relative;
    flex: 1;
}

.form_area input,
.form_area select {
    height: 41px;
    padding: 6px 8px;
    line-height: normal;
    cursor: pointer;
}

.form_area.triangle input,
.form_area.triangle select {
    padding-right: 25px;
}

.form_area.triangle::after {
    content: "";
    position: absolute;
    top: 21px;
    right: 10px;
    margin-top: -3px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #333;
    pointer-events: none;
}

.form_area input,
.form_area select {
    background-color: #ffffc9;
}

.form_area input.req_on,
.form_area select.req_on {
    background-color: #ffffc9;
}

@media screen and (max-width: 960px) {
    .form_area {
        width: 100%;
    }

    .form_area input,
    .form_area select {
        background-color: #fff;
    }

    .form_area input.req_on,
    .form_area select.req_on {
        background-color: #fff;
    }
}

@media screen and (max-width: 960px) {
    #user_area,
    .submit_btn_box {
        display: none;
    }

    #user_area {
        padding-top: 0;
    }
}

/* JS実行前のチラつき防止（applyConfig() が実行されると上書きされる） */
@media screen and (min-width:961px) {
    .pc-hidden { display: none; }
}
@media screen and (max-width: 960px) {
    .sp-hidden { display: none; }
}

/*　必須/任意　*/
span.req_on,
span.req_off {
    margin-right: 7px;
    padding: 3px 5px;
    font-size: 0.8em;
    color: #fff;
    display: inline-block;
    font-weight: 500;
}

span.req_on {
    background: red;
}

span.req_off {
    background: #27a424;
}

/*------------------------------ ご売却希望時期 ラジオボタン ------------------------------*/

#period_group,
#radio_group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

#period_group .question_head,
#radio_group .question_head {
    width: 100%;
    margin-bottom: 8px;
    font-size: 13px;
}

/* ラジオボタン群を3列グリッドで並べる */
#period_group .form_area.question.radio,
#radio_group .form_area.question.radio {
    display: flex;
    align-items: center;
    width: 33.33%;
    margin-bottom: 8px;
    box-sizing: border-box;
    padding-right: 4px;
}

/* ラジオ input 自体のリセット（form.css グローバルの appearance:none / border / padding を上書き） */
#period_group input[type="radio"],
#radio_group input[type="radio"] {
    appearance: auto;
    -webkit-appearance: radio;
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex-shrink: 0;
    margin: 0 6px 0 0;
    background-image: none;
    border: none;
    padding: 0;
    line-height: normal;
    cursor: pointer;
}

/* ラジオボタンへの点滅アニメーションを無効化 */
input[type="radio"].target_item {
    border: none;
    animation: none;
    box-shadow: none;
}

#period_group .radio-label,
#radio_group .radio-label {
    font-size: 13px;
    cursor: pointer;
    line-height: 1.4;
}

/*------------------------------　利用規約/プライバシーポリシー　------------------------------*/

.form-agreement {
    font-size: 0.8em;
    margin-bottom: 15px;
    text-align: center;
}

.form-agreement a {
    text-decoration: underline;
}

/*------------------------------ 同意する ------------------------------*/

.agree-txt {
    font-size: 13px;
    margin: 14px 0 8px;
    line-height: 1.5;
}

.terms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
}

.terms input[id="chkbox"],
.terms input[id="chkbox2"] {
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    appearance: checkbox;
    -webkit-appearance: checkbox;
    vertical-align: middle;
    margin: 0;
}

/*------------------------------　CVボタン　------------------------------*/

.submit_btn {
    display: block;
    width: 100%;
    height: inherit;
    margin: 0 auto;
    padding: 6px 0;
    font-size: 1.6em;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    color: #fff;
    border: 1px solid firebrick;
    border-radius: 4px;
    background: linear-gradient(to bottom, #e70012 0%, #e70012 36%, #a8000d 51%, #d90011 100%);
}

@media screen and (max-width: 960px) {
    .submit_btn {
        width: 97%;
    }
}

/*------------------------------　SSL信号　------------------------------*/

.ssl_information {
    width: 97%;
    margin: 20px auto 0;
    font-size: 0.8rem;
    text-align: left;
    line-height: 1.4;
}

.ssl_information span {
    padding-bottom: 3px;
    margin: 7px auto 2px;
    font-size: 1.2em;
    font-weight: bold;
}

.ssl_information span::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../img/ssl_icon.png) no-repeat left center / contain;
    vertical-align: inherit;
    margin-right: 4px;
}

@media screen and (max-width: 960px) {
    .ssl_information {
        padding-bottom: 10px;
        width: 100%;
    }
}

/* **************************************************************************************** */
/* ************************************* 以下編集しない ************************************* */
/* **************************************************************************************** */

/* 点滅 */

input.target_item {
    border: 3px solid #f12;
    animation: inputPulse 1s ease-out infinite;
}

/* アニメーション */

@keyframes inputPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(241, 18, 34, 0.8);
    }

    60% {
        box-shadow: 0 0 0 4px rgba(241, 18, 34, 0.2);
    }

    100% {
        box-shadow: 0 0 0 6px rgba(241, 18, 34, 0);
    }
}

/* 送信項目のエラーメッセージ */

.err_msg {
    clear: both;
    padding-top: 3px;
    color: #f00;
    font-size: 13px;
    text-align: left;
    line-height: 1.6;
}

/* 送信ボタン後のloading画像 */

#loading_img {
    display: none;
    /* 編集しないで下さい */
    width: 10%;
}