* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 600px;
}

.booking-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.header-section {
    text-align: center;
    margin-bottom: 32px;
}

.header-section h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.header-section .icon {
    font-size: 32px;
}

.subtitle {
    color: #666;
    font-size: 16px;
}

.section {
    margin-bottom: 32px;
}

.section h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #1976d2;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.info-box.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.info-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.date-inputs {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
}

.date-input-group {
    flex: 1;
}

.date-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.date-input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafafa;
}

.date-input-group input::placeholder {
    color: #b0b0b0;
}

.date-input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background-color: #ffffff;
}

.date-separator {
    font-size: 20px;
    color: #666;
    padding-bottom: 8px;
}

/* Оформление календаря flatpickr */
.flatpickr-calendar {
    font-family: inherit;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    border: none;
}

.flatpickr-day {
    border-radius: 8px;
}

.flatpickr-day:hover {
    background: #eef0ff;
    border-color: #667eea;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #fff;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #c0c0c0;
    background: #f5f5f5;
    cursor: not-allowed;
}

.selected-period {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #333;
}

.price-calculation {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.calculation-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #e0e0e0;
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="number"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.extra-guest-price {
    background: #fff3cd;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: #856404;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.privacy-section {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 16px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    color: #721c24;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid #dc3545;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .booking-card {
        padding: 24px;
    }

    .date-inputs {
        flex-direction: column;
        gap: 16px;
    }

    .date-separator {
        display: none;
    }

    .header-section h1 {
        font-size: 24px;
    }
}
