１/**
 * WP Smart Booking Lite Styles
 * モダンでレスポンシブな予約フォームスタイル
 */

/* フォームラッパー - テーマの影響を排除 */
.wpsbl-form-wrapper {
    all: unset !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 基本設定 */
.wpsbl-reservation-form {
    width: 450px;
    max-width: calc(100vw - 48px);
    min-width: 450px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    flex-shrink: 0 !important;
    box-sizing: border-box;
}

/* セクション */
.wpsbl-section {
    margin-bottom: 40px;
    padding: 30px;
    background: transparent;
}

.wpsbl-section-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #2c3e50;
    text-align: center;
}

/* 2番目以降のセクションタイトル（面談予約など） */
.wpsbl-section-title + .wpsbl-section-title {
    margin-top: 40px;
}

.wpsbl-section-description {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
}

/* フォームグループ */
.wpsbl-form-group {
    margin-bottom: 25px;
    margin-left: 8px;
    margin-right: 8px;
}

.wpsbl-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 16px;
}

.wpsbl-required {
    display: inline-block;
    background: #ef4444; /* bg-red-500 */
    color: #ffffff;
    font-size: 10px;
    font-weight: normal;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.2;
}

/* 入力フィールド */
.wpsbl-input,
.wpsbl-select {
    width: 100%;
    max-width: calc(100% - 2px);
    padding: 16px 16px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.wpsbl-input:focus,
.wpsbl-select:focus {
    outline: none;
    /* border-color: #374151; */
    /* box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1); */
}

.wpsbl-input::placeholder {
    color: #d1d5db; /* text-gray-300 */
    font-weight: normal;
}

/* エラー状態 */
.wpsbl-error-field {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.wpsbl-field-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
}

/* エラーハイライトのスタイル */
.wpsbl-error-highlight {
    animation: wpsbl-error-pulse 0.5s ease-in-out;
    border: 2px solid #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05) !important;
    border-radius: 8px;
    padding: 10px;
    margin: 5px 0;
}

@keyframes wpsbl-error-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 時間スロットのエラーハイライト */
.wpsbl-time-error-highlight {
    animation: wpsbl-time-error-pulse 0.5s ease-in-out;
    border: 2px solid #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.1) !important;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3) !important;
}

@keyframes wpsbl-time-error-pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(231, 76, 60, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(231, 76, 60, 0.5); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(231, 76, 60, 0.3); }
}

/* エラーメッセージ */
.wpsbl-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* スケジュール情報 */
.wpsbl-schedule-info {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: 600;
}

/* フォームデータコンテナ */
.wpsbl-form-data {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* フィールドデータ */
.wpsbl-field-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    /* background: #f8f9fa; */
    /* border-radius: 6px; */
    /* margin-bottom: 2px; */
}

.wpsbl-field-data:last-child {
    margin-bottom: 0;
}

.wpsbl-field-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 100px;
    font-size: 14px;
}

.wpsbl-field-value {
    color: #333;
    flex: 1;
    font-size: 14px;
}



/* 確認画面 */
.wpsbl-confirm-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wpsbl-confirm-section {
    margin-bottom: 30px;
}

.wpsbl-confirm-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.wpsbl-confirm-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* ボタン */
.wpsbl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
}

.wpsbl-btn-outline {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.wpsbl-btn-outline:hover {
    background: #6c757d;
    color: #fff;
}

.wpsbl-btn-text {
    font-weight: 500;
}

.wpsbl-btn-spinner {
    display: none;
}

.wpsbl-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

/* ボタンコンテナ */
.wpsbl-button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* 管理画面用スタイル */
.wpsbl-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.wpsbl-tab-button {
    padding: 10px 20px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.wpsbl-tab-button.active {
    background: #0073aa;
    color: #fff;
}

.wpsbl-tab-button:hover {
    background: #005a87;
    color: #fff;
}

.wpsbl-tab-content {
    display: none;
}

.wpsbl-tab-content.active {
    display: block;
}

.wpsbl-admin-content {
    padding: 20px 0;
}

.wpsbl-admin-actions {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.wpsbl-help-text {
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.wpsbl-settings-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wpsbl-custom-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.wpsbl-custom-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.wpsbl-fields-table {
    margin-top: 20px;
}

.wpsbl-sort-handle {
    cursor: move;
    color: #666;
    font-size: 18px;
}

.wpsbl-status-required {
    background: #dc3545;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.wpsbl-status-optional {
    background: #6c757d;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.wpsbl-status-visible {
    background: #28a745;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.wpsbl-status-hidden {
    background: #6c757d;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.wpsbl-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpsbl-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.wpsbl-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wpsbl-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.wpsbl-modal-close:hover {
    color: #000;
}

.wpsbl-form-section {
    padding: 20px;
}

.wpsbl-field-note {
    color: #666;
    font-style: italic;
    font-size: 12px;
}

.wpsbl-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.wpsbl-shortcode-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.wpsbl-shortcode-info code {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 14px;
}

.wpsbl-shortcode-info .description {
    margin-top: 10px;
    color: #666;
}

.wpsbl-search-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.wpsbl-search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.wpsbl-search-group {
    flex: 1;
    min-width: 200px;
}

.wpsbl-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpsbl-date-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpsbl-date-separator {
    color: #666;
    font-weight: bold;
}

.wpsbl-search-actions {
    text-align: right;
}

.wpsbl-search-results {
    margin-top: 20px;
}

.wpsbl-no-reservations {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* ラジオボタン */
.wpsbl-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.wpsbl-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    user-select: none;
    position: relative;
}

/* ラジオボタンアイコン */
.wpsbl-radio::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    margin-right: 12px;
    background: #fff;
    flex-shrink: 0;
}

.wpsbl-radio:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.wpsbl-radio.selected {
    border-color: #3498db;
    background: #ebf3fd;
}

/* 選択時のラジオボタンアイコン（二重丸） */
.wpsbl-radio.selected::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 1px solid #3498db;
    border-radius: 50%;
    margin-right: 12px;
    background: #ebf3fd;
    flex-shrink: 0;
    position: relative;
}

/* 選択時の内側の円（二重丸の内側） */
.wpsbl-radio.selected::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3498db;
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translate(-50%, -50%);
}

.wpsbl-radio input[type="radio"] {
    display: none;
}

.wpsbl-radio-text {
    font-size: 16px;
    color: #333;
}

/* チェックボックス */
.wpsbl-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.wpsbl-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

/* チェックボックスアイコン */
.wpsbl-checkbox::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    margin-right: 12px;
    background: #fff;
    flex-shrink: 0;
}

.wpsbl-checkbox:hover {
    border-color: #3498db;
}

.wpsbl-checkbox.selected {
    border-color: #3498db;
    background: #ebf3fd;
}

.wpsbl-checkbox input[type="checkbox"] {
    display: none;
}

.wpsbl-checkbox-text {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

/* 選択時のチェックマーク */
.wpsbl-checkbox.selected::before {
    content: "✓";
    width: 18px;
    height: 18px;
    border: 1px solid #3498db;
    border-radius: 3px;
    margin-right: 12px;
    background: #ebf3fd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #3498db;
    font-size: 16px;
    font-weight: bold;
}

/* 性別フィールド */
.wpsbl-gender-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.wpsbl-gender-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.wpsbl-gender-option:hover {
    border-color: #374151;
    background: #f8f9fa;
}

.wpsbl-gender-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.wpsbl-gender-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 選択された性別オプションのスタイル */
.wpsbl-gender-option.selected {
    background: #374151; /* bg-gray-700 */
    border-color: #374151;
}

.wpsbl-gender-option.selected .wpsbl-gender-text {
    color: #ffffff; /* white */
}

/* 日付グループ */
.wpsbl-date-group {
    display: flex;
    gap: 10px;
}

.wpsbl-date-group .wpsbl-select {
    flex: 1;
}

/* 注意書き */
.wpsbl-notice {
    margin: 20px 0;
}

.wpsbl-notice-text {
    margin: 0;
}

/* 日付選択 */
.wpsbl-date-picker {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-left: 8px;
    margin-right: 8px;
}

.wpsbl-date-card {
    width: 80px;
    height: 80px;
    padding: 15px 10px;
    text-align: center;
    border: none; /* ボーダーなし */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f3f4f6; /* bg-gray-100 */
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wpsbl-date-card:hover {
    background: #e5e7eb; /* bg-gray-200 for hover */
}

/* 土日の色設定 - 基本状態 */
.wpsbl-date-card.holiday.saturday .wpsbl-date-day,
.wpsbl-date-card.holiday.saturday .wpsbl-date-weekday {
    color: #0ea5e9; /* sky-500 for Saturday */
}

.wpsbl-date-card.holiday.sunday .wpsbl-date-day,
.wpsbl-date-card.holiday.sunday .wpsbl-date-weekday {
    color: #f43f5e; /* rose-500 for Sunday and holidays */
}

.wpsbl-date-card.selected {
    background: #374151; /* bg-gray-700 */
    color: #ffffff; /* white */
}

/* 選択状態では土日関係なく白文字 - 最高優先度 */
.wpsbl-date-card.selected .wpsbl-date-day,
.wpsbl-date-card.selected .wpsbl-date-weekday {
    color: #ffffff !important; /* white for all selected dates */
}

.wpsbl-date-day {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #111827; /* text-gray-900 */
}

.wpsbl-date-weekday {
    font-size: 12px;
    color: #111827; /* text-gray-900 */
}

/* 通常状態の日付カードのテキスト色を明示的に設定 */
.wpsbl-date-card:not(.holiday) .wpsbl-date-day,
.wpsbl-date-card:not(.holiday) .wpsbl-date-weekday {
    color: #111827; /* text-gray-900 for non-holiday dates */
}

/* 締切日を過ぎた日付のスタイル */
.wpsbl-date-card.deadline-passed {
    background: #f3f4f6; /* bg-gray-100 */
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.wpsbl-date-card.deadline-passed .wpsbl-date-day,
.wpsbl-date-card.deadline-passed .wpsbl-date-weekday {
    color: #9ca3af; /* text-gray-400 */
}

.wpsbl-date-card.deadline-passed:hover {
    background: #f3f4f6; /* bg-gray-100 - ホバー効果を無効化 */
    transform: none;
}

.wpsbl-deadline-mark {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #ef4444; /* bg-red-500 */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* 締切日ツールチップ */
.wpsbl-date-deadline-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937; /* bg-gray-800 */
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wpsbl-date-deadline-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #1f2937; /* bg-gray-800 */
}

/* 時間帯選択 */
.wpsbl-time-slots {
    margin-top: 15px;
}

.wpsbl-time-slot {
    display: block;
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 10px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.wpsbl-time-slot:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.wpsbl-time-slot.selected {
    border-color: #374151; /* bg-gray-700 */
    background: #374151; /* bg-gray-700 */
    color: #fff;
}



/* 締切日を過ぎた時間枠 */
.wpsbl-time-slot.deadline-passed {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.wpsbl-time-slot.deadline-passed:hover {
    border-color: #dee2e6;
    background: #f8f9fa;
    transform: none;
}

.wpsbl-time-slot.deadline-passed:disabled {
    opacity: 0.7;
}

/* 締切日ラベルを削除 - 時間の横に×を表示 */

/* 予約不可時間の×マークのスタイル */
.wpsbl-time-slot.deadline-passed .wpsbl-time-text,
.wpsbl-time-slot.wpsbl-time-slot-full .wpsbl-time-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

/* ×マークの固定幅設定（時刻の前に配置） */
.wpsbl-time-slot.deadline-passed .wpsbl-time-text::before,
.wpsbl-time-slot.wpsbl-time-slot-full .wpsbl-time-text::before {
    content: "×";
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* 時刻の位置を統一するための調整 */
.wpsbl-time-slot.deadline-passed .wpsbl-time-text,
.wpsbl-time-slot.wpsbl-time-slot-full .wpsbl-time-text {
    transform: translateX(-14px); /* ×マークの幅の半分 + gapの半分 */
}

/* 在庫なしの時間枠 */
.wpsbl-time-slot.wpsbl-time-slot-full {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.wpsbl-time-slot.wpsbl-time-slot-full:hover {
    border-color: #dee2e6;
    background: #f8f9fa;
    transform: none;
}

.wpsbl-time-slot.wpsbl-time-slot-full:disabled {
    opacity: 0.7;
}

/* 在庫なしラベルを削除 - 時間の横に×を表示 */

/* 締切日ツールチップ */
.wpsbl-deadline-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #343a40;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.wpsbl-deadline-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #343a40;
}

.wpsbl-time-text {
    font-size: 16px;
    font-weight: 500;
}

.wpsbl-no-date {
    text-align: center;
    color: #95a5a6;
    font-size: 16px;
    padding: 30px;
}

/* 情報ボックス */
.wpsbl-info-box {
    margin: 20px 0;
}

.wpsbl-info-content {
    /* ユーザーがカスタマイズ可能 */
}

.wpsbl-info-text {
    margin: 0;
}

/* 送信ボタン */
.wpsbl-submit-btn {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    padding: 18px 30px;
    background: #f43f5e; /* rose-500 */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

.wpsbl-submit-btn:hover {
    background: #e11d48; /* rose-600 for hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3); /* Updated shadow color */
}

.wpsbl-submit-btn:active {
    transform: translateY(0);
}

/* ローディング */
.wpsbl-loading {
    text-align: center;
    padding: 40px;
}

.wpsbl-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.wpsbl-loading-text {
    color: #95a5a6;
    font-size: 16px;
    text-align: center;
    padding: 30px;
}

/* 成功・エラーメッセージ */
.wpsbl-success,
.wpsbl-error {
    text-align: center;
    padding: 40px;
    border-radius: 8px;
    margin: 20px 0;
}

.wpsbl-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wpsbl-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wpsbl-success-icon,
.wpsbl-error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.wpsbl-success-title,
.wpsbl-error-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.wpsbl-success-text,
.wpsbl-error-text {
    font-size: 16px;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .wpsbl-reservation-form {
        padding: 15px;
    }
    
    .wpsbl-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .wpsbl-section-title {
        font-size: 20px;
    }
    
    .wpsbl-radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .wpsbl-checkbox-group {
        gap: 8px;
    }
    
    .wpsbl-date-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .wpsbl-date-picker {
        gap: 8px;
    }
    
    .wpsbl-date-card {
        min-width: 70px;
        padding: 12px 8px;
    }
    
    .wpsbl-info-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .wpsbl-submit-btn {
        padding: 16px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wpsbl-date-card {
        min-width: 60px;
        padding: 10px 6px;
    }
    
    .wpsbl-date-day {
        font-size: 16px;
    }
    
    .wpsbl-date-weekday {
        font-size: 10px;
    }
    
    .wpsbl-time-slot {
        padding: 12px 16px;
    }
    
    .wpsbl-time-text {
        font-size: 14px;
    }
}

/* アクセシビリティ */
.wpsbl-input:focus,
.wpsbl-select:focus,
.wpsbl-radio:focus-within,
.wpsbl-date-card:focus,
.wpsbl-time-slot:focus {
    outline: 1px solid #374151;
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .wpsbl-reservation-form {
        background: #1a1a1a;
        color: #fff;
    }
    
    .wpsbl-section {
        background: #2d2d2d;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    .wpsbl-input,
    .wpsbl-select,
    .wpsbl-radio,
    .wpsbl-date-card,
    .wpsbl-time-slot {
        background: #3d3d3d;
        border-color: #555;
        color: #fff;
    }
    
    .wpsbl-input::placeholder {
        color: #888;
    }
}
