/* ==================================================
パパマルハウス諏訪 お問い合わせフォーム
================================================== */

.papamaru-contact-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-size: 16px;
}

/* 条件分岐エリア */

.papamaru-contact-form .contact-condition-group {
    display: none;
}

/* セクション */

.papamaru-contact-form .form-section {
    width: 100%;
    margin: 0 0 30px;
}

/* フォーム1行 */

.papamaru-contact-form .form-row {
    display: grid;
    grid-template-columns: 30% 70%;
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
}

/* ラベル */

.papamaru-contact-form .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #f7f7f7;
    font-weight: 500;
    line-height: 1.6;
}

/* 入力 */

.papamaru-contact-form .form-input {
    padding: 16px 20px;
    background: #fff;
}

/* 必須 */

.papamaru-contact-form .required {
    display: inline-block;
    padding: 2px 7px;
    background: #d9534f;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

/* 任意 */

.papamaru-contact-form .optional {
    display: inline-block;
    padding: 2px 7px;
    background: #999;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

/* input */

.papamaru-contact-form input[type="text"],
.papamaru-contact-form input[type="tel"],
.papamaru-contact-form input[type="email"],
.papamaru-contact-form input[type="date"],
.papamaru-contact-form select,
.papamaru-contact-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
}

/* flatpickr表示用入力欄 */

.papamaru-contact-form .flatpickr-input[readonly] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.papamaru-contact-form .flatpickr-input[readonly]::placeholder {
    color: #888;
    opacity: 1;
}

/* select */

.papamaru-contact-form select {
    cursor: pointer;
    min-height: 48px;
}

/* textarea */

.papamaru-contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* ラジオボタン */

.papamaru-contact-form .form-input .wpcf7-list-item {
    margin: 0 20px 8px 0;
}

.papamaru-contact-form input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

/* お問い合わせ種別 */

.papamaru-contact-form .form-type-section {
    margin-bottom: 35px;
}

.papamaru-contact-form .form-type-section .form-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.papamaru-contact-form .form-type-section .wpcf7-list-item {
    margin-bottom: 0;
}

/* 注釈 */

.papamaru-contact-form .form-note {
    margin: 8px 0 0;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

/* 共通項目 */

.papamaru-contact-form .common-section {
    margin-top: 30px;
}

/* 個人情報 */

.papamaru-contact-form .privacy-section {
    margin-top: 35px;
    padding: 25px;
    background: #f7f7f7;
    font-size: 13px;
    line-height: 1.8;
}

.papamaru-contact-form .privacy-title {
    margin: 0 0 10px;
    font-weight: bold;
}

.papamaru-contact-form .privacy-section p {
    margin-bottom: 15px;
}

.papamaru-contact-form .privacy-section a {
    text-decoration: underline;
}

/* 同意 */

.papamaru-contact-form .privacy-agreement {
    margin-bottom: 0 !important;
    text-align: center;
}

.papamaru-contact-form .privacy-agreement input {
    width: auto;
}

/* 送信 */

.papamaru-contact-form .form-submit {
    margin-top: 35px;
    text-align: center;
}

.papamaru-contact-form .form-submit input[type="submit"] {
    min-width: 220px;
    padding: 16px 35px;
    border: none;
    border-radius: 3px;
    background: #333;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* ==================================================
Flatpickr
================================================== */

.flatpickr-calendar {
    z-index: 999999 !important;
}

.flatpickr-day.flatpickr-disabled {
    color: #ccc;
    text-decoration: line-through;
}

/* CF7 */

.wpcf7 form,
.papamaru-contact-form .form-type-section,
.papamaru-contact-form .form-section,
.papamaru-contact-form .privacy-section {
    margin: 0 !important;
}

/* ==================================================
スマートフォン
================================================== */

@media screen and (max-width: 767px) {

    .wpcf7 {
        border: 1px solid #ddd !important;
    }

    input[type="checkbox"] {
        width: auto !important;
    }

    .wpcf7 .wpcf7-list-item-label {
        font-size: 12px !important;
    }

    .wpcf7-list-item {
        margin: 0;
    }

    .papamaru-contact-form {
        font-size: 15px;
    }

    .papamaru-contact-form .form-row {
        display: block;
    }

    .papamaru-contact-form .form-label {
        padding: 13px 15px;
    }

    .papamaru-contact-form .form-input {
        padding: 15px;
    }

    .papamaru-contact-form input[type="text"],
    .papamaru-contact-form input[type="tel"],
    .papamaru-contact-form input[type="email"],
    .papamaru-contact-form input[type="date"],
    .papamaru-contact-form select,
    .papamaru-contact-form textarea {
        font-size: 14px;
    }

    .papamaru-contact-form .flatpickr-input[readonly] {
        font-size: 14px;
        min-height: 48px;
    }

    .papamaru-contact-form .form-type-section .form-input {
        display: block;
    }

    .papamaru-contact-form .form-type-section .wpcf7-list-item {
        display: block;
        margin: 0 0 12px;
    }

    .papamaru-contact-form .privacy-section {
        padding: 16px;
    }

    .papamaru-contact-form .form-submit input[type="submit"] {
        width: 100%;
        max-width: 320px;
    }

}