/* Custom Reserve - Frontend Styles */

.cr-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px;
    box-sizing: border-box;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

.cr-form-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #444;
}

.cr-error-box {
    background: #fde8e8;
    border: 1px solid #f5b4b4;
    color: #a02020;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.cr-error {
    background: #fde8e8;
    border: 1px solid #f5b4b4;
    color: #a02020;
    padding: 12px 16px;
    border-radius: 4px;
}

.cr-success {
    text-align: center;
    padding: 40px 20px;
}

.cr-success-title {
    font-size: 22px;
    margin-bottom: 16px;
    color: #2a7a3a;
}

.cr-field {
    margin-bottom: 20px;
}

.cr-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.cr-required::after {
    content: " *";
    color: #d33;
}

.cr-form input[type="text"],
.cr-form input[type="email"],
.cr-form input[type="tel"],
.cr-form input[type="date"],
.cr-form select,
.cr-form textarea {
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* iOS zoom 防止 */
    background: #fff;
    color: #333;
    line-height: 1.4;
}

.cr-form input:focus,
.cr-form select:focus,
.cr-form textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
}

.cr-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* 来店区分ラジオ */
.cr-radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cr-radio-pill {
    flex: 1 1 0;
    min-width: 120px;
    display: block;
    position: relative;
    cursor: pointer;
}

.cr-radio-pill input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.cr-radio-pill span {
    display: block;
    padding: 14px 12px;
    text-align: center;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 600;
    color: #555;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.cr-radio-pill input:checked + span {
    background: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
}

.cr-radio-pill input:focus + span {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.25);
}

/* 希望日時 */
.cr-datetime-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cr-datetime-row .cr-date,
.cr-datetime-row .cr-time {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
}

.cr-help {
    font-size: 13px;
    color: #888;
    margin: 6px 0 0;
}

.cr-slot-message:empty {
    display: none;
}

.cr-slot-message.cr-closed {
    color: #c0392b;
}

/* 月の休業日サマリー */
.cr-closed-summary {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff8e6;
    border-left: 3px solid #f0b400;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
}

.cr-closed-summary-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #7a5a00;
}

.cr-closed-summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.cr-closed-summary-list li {
    color: #7a5a00;
}

.cr-closed-summary-date {
    font-weight: 600;
}

.cr-closed-summary-label {
    color: #555;
}

/* 完了画面のカスタムメッセージ */
.cr-success-message {
    text-align: left;
    background: #f0f9f4;
    border: 1px solid #d2eadd;
    padding: 18px 22px;
    border-radius: 6px;
    line-height: 1.7;
}
.cr-success-message p:first-child { margin-top: 0; }
.cr-success-message p:last-child  { margin-bottom: 0; }

/* 同意 */
.cr-field-consent {
    background: #f8f8f8;
    padding: 14px 16px;
    border-radius: 4px;
}

.cr-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.cr-consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

/* 送信ボタン */
.cr-submit-wrap {
    text-align: center;
    margin-top: 28px;
}

.cr-submit-btn {
    display: inline-block;
    min-width: 200px;
    padding: 14px 36px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cr-submit-btn:hover {
    background: #1a252f;
}

.cr-submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ハニーポット */
.cr-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* スマホ */
@media (max-width: 600px) {
    .cr-form-wrap {
        padding: 16px 12px;
    }
    .cr-form-title {
        font-size: 18px;
    }
    .cr-datetime-row .cr-date,
    .cr-datetime-row .cr-time {
        flex: 1 1 100%;
    }
    .cr-radio-pill {
        flex: 1 1 calc(50% - 5px);
    }
    .cr-submit-btn {
        width: 100%;
        min-width: 0;
    }
}
