/* ========================================================
   reserve.css 
   予約フォーム向け専用スタイル
======================================================== */

/* ◆ ステップインジケーター */
.reserve-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.reserve-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ccc;
    font-family: var(--font-serif);
}

.reserve-steps .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.reserve-steps .step-label {
    font-size: 14px;
    font-weight: bold;
}

.reserve-steps .step.active {
    color: var(--color-accent);
}

.reserve-steps .step.active .step-num {
    background-color: var(--color-accent);
    color: #fff;
}

.reserve-steps .step-line {
    flex: 1;
    height: 2px;
    background-color: #f0f0f0;
    margin: 0 15px;
    position: relative;
    top: -12px;
}

/* ◆ エラー表示領域 */
.form-errors {
    background-color: #ffeeee;
    border: 1px solid #ffaaaa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    color: #cc0000;
}

.form-errors p {
    font-weight: bold;
    margin-bottom: 10px;
}

.form-errors ul {
    list-style-type: disc;
    margin-left: 20px;
    font-size: 14px;
}

/* ◆ フォーム共通 */
.reserve-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 30px;
}

.form-group:last-of-type {
    margin-bottom: 40px;
}

.form-label {
    display: flex;
    align-items: center;
    font-family: var(--font-serif);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--color-main);
}

.required-label::after {
    content: "必須 / Required";
    background-color: #e54d42;
    color: #fff;
    font-size: 12px;
    font-family: var(--font-base);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.optional-badge {
    background-color: #999;
    color: #fff;
    font-size: 12px;
    font-family: var(--font-base);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: var(--font-base);
    font-size: 16px;
    background-color: #fafafa;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #fff;
}

.form-input--medium {
    max-width: 300px;
}

.form-select--narrow {
    width: 100px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-hint {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

/* ボタン類 */
.form-submit {
    text-align: center;
}

.confirm-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-back {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-family: var(--font-serif);
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: #ccc;
}

/* ◆ 確認画面テーブル */
.confirm-message {
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.confirm-table-wrap {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.confirm-table {
    width: 100%;
    border-collapse: collapse;
}

.confirm-table th,
.confirm-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.confirm-table th {
    width: 30%;
    font-family: var(--font-serif);
    color: var(--color-main);
    font-weight: bold;
}

.confirm-table tr:last-child th,
.confirm-table tr:last-child td {
    border-bottom: none;
}

/* ◆ 完了画面 */
.complete-box {
    text-align: center;
    background: #fff;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto;
}

.complete-title {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.complete-title.error {
    color: #e54d42;
}

.complete-desc {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.complete-notice {
    background-color: #fcfaf2;
    padding: 20px;
    border: 1px dashed var(--color-accent);
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: left;
    display: inline-block;
}

.complete-notice p {
    font-size: 14px;
    line-height: 1.6;
}

.btn-home {
    display: inline-block;
    background-color: var(--color-main);
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
}

.btn-home:hover {
    background-color: #2c211c;
    color: #fff;
}

/* ◆ レスポンシブ */
@media (max-width: 768px) {

    .reserve-form,
    .confirm-table-wrap,
    .complete-box {
        padding: 30px 20px;
    }

    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .confirm-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }

    .confirm-table td {
        margin-bottom: 10px;
    }

    .confirm-actions {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .btn-confirm,
    .btn-back {
        width: 100%;
    }
}