.phone-reservation-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.phone-reservation-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.date-selection,
.time-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

/* 日付選択は6列固定で横並び */
.date-selection {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
}

.date-selection .date-button {
    flex: 0 0 calc((100% - 50px) / 6);
    min-width: 140px;
}

.date-button,
.time-button {
    padding: 15px 10px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.date-button:hover,
.time-button:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.date-button .date-display {
    display: block;
    font-weight: bold;
    font-size: 18px;
}

.date-button .date-weekday {
    display: block;
    font-size: 14px;
    color: #666;
}

.date-button:hover .date-weekday {
    color: #fff;
}

.time-button-disabled {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-button-disabled:hover {
    background: #e9ecef;
    color: inherit;
    border-color: #dee2e6;
}

.time-status {
    font-size: 12px;
    color: #6c757d;
}

.back-button {
    padding: 8px 15px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 14px;
}

.back-button:hover {
    background: #5a6268;
}

.selected-info {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.selected-info p {
    margin: 0;
    font-size: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group .required {
    color: #dc3545;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #218838;
}

.submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.reservation-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 16px;
}

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

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

.loading {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

.error {
    color: #dc3545;
    text-align: center;
    padding: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .phone-reservation-form-container {
        padding: 20px;
    }
    
    .date-selection,
    .time-selection {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .date-button,
    .time-button {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .date-button .date-display {
        font-size: 16px;
    }
    
    .date-button .date-weekday {
        font-size: 12px;
    }
}

/* 完了画面 */
.completion-screen {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.completion-screen h2 {
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

