* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #F9F5EC;
    color: #333;
}

.reservation-header {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    padding: 15px 20px 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 500;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
}

.back-arrow {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    position: absolute;
    left: 0;
}

.logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 15px 50px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 3px solid #DDD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #999;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: #8B0000;
    border-color: #8B0000;
    color: white;
    transform: scale(1.1);
}

.step-label {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
}

.step.active .step-label {
    color: #8B0000;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.intro-text {
    text-align: center;
    margin-bottom: 35px;
}

.intro-text h2 {
    color: #8B0000;
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.intro-text p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.spaces-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.space-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.space-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 0, 0, 0.25);
}

.space-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.space-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.space-card:hover .space-image {
    transform: scale(1.1);
}

.space-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(139, 0, 0, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.space-content {
    padding: 25px;
}

.space-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #8B0000;
    margin-bottom: 12px;
}

.space-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.space-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.feature-badge {
    background: #FFF5F5;
    color: #8B0000;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

/* TABLE SELECTION STYLES */
.table-selection-container {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.date-time-selector {
    background: #FFF5F5;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.date-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.input-group input {
    padding: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #8B0000;
}

.legend-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-box {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.legend-box.available {
    background: #E8F5E9;
    border-color: #4CAF50;
}

.legend-box.reserved {
    background: #FFEBEE;
    border-color: #F44336;
}

.legend-box.selected {
    background: #8B0000;
    border-color: #8B0000;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.table-card {
    background: white;
    border: 3px solid #E0E0E0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.table-card.available {
    border-color: #4CAF50;
    background: #E8F5E9;
}

.table-card.available:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.table-card.reserved {
    border-color: #F44336;
    background: #FFEBEE;
    cursor: not-allowed;
    opacity: 0.7;
}

.table-card.selected {
    border-color: #8B0000;
    background: #8B0000;
    color: white;
    transform: scale(1.05);
}

.table-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.table-number {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.table-capacity {
    font-size: 0.85rem;
    opacity: 0.8;
}

.table-status-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #F44336;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.table-status-badge.available {
    background: #4CAF50;
}

.selected-table-info {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    text-align: center;
}

.selected-table-info h3 {
    margin-bottom: 10px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #8B0000;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #A52A2A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.3);
}

.btn-secondary {
    background: #F5F5F5;
    color: #333;
    border: 2px solid #E0E0E0;
}

.btn-secondary:hover {
    background: #E8E8E8;
}

.form-container {
    background: white;
    padding: 30px 25px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-title {
    font-size: 1.6rem;
    color: #8B0000;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.required {
    color: #FF4444;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.1);
}

.reservation-summary {
    background: #FFF5F5;
    border: 2px solid #8B0000;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.summary-row strong {
    color: #8B0000;
}

.deposit-box {
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0;
}

.deposit-label {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 8px;
}

.deposit-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.deposit-note {
    font-size: 0.85rem;
    opacity: 0.85;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
}

.checkbox-input {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.toast.show {
    opacity: 1;
}

@media (min-width: 768px) {
    .spaces-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}
