/**
 * 後藤旅館予約システム - 公開側CSS
 *
 * 予約フォームの共通スタイル
 * システム全体との統一感を保つため、管理画面と同じカラースキームを使用
 */

/* ==========================================================================
   共通設定
   ========================================================================== */

/* 予約フォームコンテナ */
.goto-reservation-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
    line-height: 1.6;
}

/* ==========================================================================
   ステータスバッジ（予約完了画面用）
   ========================================================================== */

.goto-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
}

/* 予約ステータス */
.goto-status-pending {
    background: #f0f0f1;
    color: #50575e;
}

.goto-status-confirmed {
    background: #d4edda;
    color: #155724;
}

.goto-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* 決済ステータス */
.goto-payment-pending {
    background: #fff3cd;
    color: #856404;
}

.goto-payment-completed {
    background: #d4edda;
    color: #155724;
}

.goto-payment-refunded {
    background: #cce5ff;
    color: #004085;
}

.goto-payment-failed {
    background: #f8d7da;
    color: #721c24;
}

/* ==========================================================================
   通知メッセージ
   ========================================================================== */

.goto-notice {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.goto-notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.goto-notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.goto-notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.goto-notice-info {
    background: #cce5ff;
    border-color: #0073aa;
    color: #004085;
}

/* ==========================================================================
   予約完了画面
   ========================================================================== */

.goto-reservation-complete {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.goto-reservation-complete h1 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #23282d;
    text-align: center;
}

.goto-complete-message {
    text-align: center;
    margin-bottom: 30px;
}

.goto-complete-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.goto-complete-icon.success {
    color: #28a745;
}

.goto-complete-icon.warning {
    color: #ffc107;
}

.goto-complete-icon.error {
    color: #dc3545;
}

/* 予約詳細テーブル */
.goto-reservation-details {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.goto-reservation-details h2 {
    font-size: 1.3em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #23282d;
}

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

.goto-detail-table th,
.goto-detail-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.goto-detail-table th {
    width: 35%;
    font-weight: 600;
    color: #50575e;
    background: #f9f9f9;
}

.goto-detail-table td {
    color: #23282d;
}

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

/* 人数内訳リスト */
.goto-guest-breakdown {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goto-guest-breakdown li {
    padding: 3px 0;
}

/* 金額表示 */
.goto-price-amount {
    font-size: 1.2em;
    font-weight: 700;
    color: #23282d;
}

/* ==========================================================================
   ボタン
   ========================================================================== */

.goto-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.goto-button-primary {
    background: #0073aa;
    color: #fff;
}

.goto-button-primary:hover {
    background: #005a87;
    color: #fff;
}

.goto-button-secondary {
    background: #f0f0f1;
    color: #50575e;
}

.goto-button-secondary:hover {
    background: #dcdcde;
    color: #23282d;
}

.goto-button-success {
    background: #28a745;
    color: #fff;
}

.goto-button-success:hover {
    background: #218838;
    color: #fff;
}

.goto-button-danger {
    background: #dc3545;
    color: #fff;
}

.goto-button-danger:hover {
    background: #c82333;
    color: #fff;
}

/* ボタングループ */
.goto-button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* ==========================================================================
   ローディング
   ========================================================================== */

.goto-loading {
    text-align: center;
    padding: 40px;
}

.goto-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: goto-spin 1s linear infinite;
}

@keyframes goto-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.goto-loading-text {
    margin-top: 15px;
    color: #666;
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

@media screen and (max-width: 600px) {
    .goto-reservation-form {
        padding: 15px;
    }

    .goto-reservation-complete {
        margin: 20px auto;
        padding: 0 15px;
    }

    .goto-reservation-complete h1 {
        font-size: 1.5em;
    }

    .goto-detail-table th,
    .goto-detail-table td {
        display: block;
        width: 100%;
        padding: 8px 12px;
    }

    .goto-detail-table th {
        border-bottom: none;
        padding-bottom: 0;
    }

    .goto-detail-table td {
        padding-top: 5px;
    }

    .goto-button-group {
        flex-direction: column;
    }

    .goto-button {
        width: 100%;
    }
}
