/*
 * reservation.css
 * 予約システムのスタイル
 */

.reservation-main {
    padding: 4rem 0;
    padding: 8rem 0 4rem 0; /* 上部余白を増やす */
    background-color: #f8fafc; /* 明るい背景色 */
    min-height: 100vh;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .reservation-main {
        padding: 6rem 0 2rem 0; /* モバイルでは少し小さく */
    }
}

.reservation-header {
    margin-bottom: 3rem;
}

/* ステップインジケーター */
.step-indicator {
    display: flex;
    justify-content: space-between;
    max-width: 700px;
    margin: 0 auto 3rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    background-color: #f8fafc;
    padding: 0 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.step-item.active .step-number {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--primary-navy);
}

.step-item.active .step-label {
    color: var(--primary-navy);
    font-weight: 500;
}

/* ステップカード */
.step-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.step-header h3 {
    color: var(--primary-navy);
    font-weight: 600;
}

.step-header p {
    color: #6c757d;
    font-size: 1rem;
}

/* カレンダー */
.calendar-container {
    max-width: 600px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin: 0;
}

.calendar-nav {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.calendar-nav:hover {
    color: var(--primary-navy);
}

.calendar-weekdays, .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    padding-bottom: 0.5rem;
}

.calendar-day {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.calendar-day.prev-month, .calendar-day.next-month {
    color: #ccc;
    cursor: default;
}

.calendar-day.past-day {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.future-day:hover {
    background-color: #f0e6d2;
}

.calendar-day.today {
    border: 2px solid var(--primary-gold);
}

.calendar-day.selected {
    background-color: var(--primary-gold);
    color: var(--primary-navy);
    font-weight: bold;
}

/* 時間選択 */
.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.time-slot {
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 500;
}

.time-slot.selected {
    color: white !important; /* Bootstrapの上書き */
}

.time-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.info-item {
    margin: 0.5rem 0;
}

/* フォーム */
.reservation-summary {
    background-color: #f8fafc;
    border-left: 4px solid var(--primary-gold);
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.form-label.required::after {
    content: ' *';
    color: #dc3545;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2rem;
}

/* ローディングスピナー */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* レスポンシブ */
@media (max-width: 768px) {
    .reservation-main {
        padding: 6rem 0 3rem;
    }
    .step-label {
        display: none;
    }
    .step-card {
        padding: 1.5rem;
    }
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .form-actions .btn {
        width: 100%;
    }
}
/* 予約完了モーダルスタイル */
.booking-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.booking-success-modal.show {
    opacity: 1;
    visibility: visible;
}

.booking-success-modal.hiding {
    opacity: 0;
    transform: scale(0.95);
}

.booking-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.booking-success-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.booking-success-modal.show .booking-success-content {
    transform: translateY(0);
}

.booking-success-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
    color: white;
    border-radius: 20px 20px 0 0;
}

.success-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    animation: successPulse 2s infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.success-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.booking-details-card {
    padding: 2rem;
}

.booking-detail-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.booking-detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.detail-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.booking-id-section {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
}

.booking-id-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-right: 0.5rem;
}

.booking-id-value {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary-navy);
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.next-steps-section {
    padding: 0 2rem;
}

.next-steps-section h3 {
    color: var(--primary-navy);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.next-steps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.next-steps-list li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.next-steps-list i {
    color: #10b981;
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.booking-success-actions {
    padding: 0 2rem 2rem;
    display: flex;
    gap: 1rem;
}

.booking-success-actions button {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--primary-navy);
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.3);
}

.booking-success-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.booking-success-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .booking-success-overlay {
        padding: 1rem;
    }
    
    .booking-success-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .success-title {
        font-size: 1.5rem;
    }
    
    .booking-details-card {
        padding: 1.5rem;
    }
    
    .booking-success-actions {
        flex-direction: column;
        padding: 0 1.5rem 2rem;
    }
}