* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 24px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 32px;
}

.header-text h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.header-text p {
    font-size: 14px;
    opacity: 0.9;
}

@media (max-width: 640px) {
    .header {
        padding: 16px;
    }
    
    .header-text h1 {
        font-size: 20px;
    }
    
    .header-text p {
        font-size: 12px;
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    padding: 32px 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: #1f2937;
}

@media (max-width: 640px) {
    .page-title {
        font-size: 22px;
        margin-bottom: 16px;
    }
}

/* ============================================
   PREMIUM BLOCK
   ============================================ */

.premium-block {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.premium-block h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0c4a6e;
}

.premium-block p {
    font-size: 14px;
    color: #0c4a6e;
    margin-bottom: 12px;
}

.premium-list {
    list-style: none;
    margin-left: 0;
}

.premium-list li {
    font-size: 14px;
    color: #0c4a6e;
    margin-bottom: 8px;
    padding-left: 0;
}

@media (max-width: 640px) {
    .premium-block {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .premium-block h3 {
        font-size: 16px;
    }
    
    .premium-block p,
    .premium-list li {
        font-size: 13px;
    }
}

/* ============================================
   FORM
   ============================================ */

.booking-form {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.form-group input,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 640px) {
    .booking-form {
        padding: 16px;
    }
    
    .form-section {
        margin-bottom: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================
   SYSTEMS GRID
   ============================================ */

.systems-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    min-width: min-content;
    padding: 4px;
}

.system-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.system-card:hover {
    border-color: #bfdbfe;
    background: #f0f9ff;
}

.system-card.featured {
    background: #fef3c7;
    border-color: #fcd34d;
    box-shadow: 0 4px 12px rgba(252, 211, 77, 0.2);
}

.system-card.featured:hover {
    background: #fef08a;
    border-color: #fbbf24;
    box-shadow: 0 6px 16px rgba(252, 211, 77, 0.3);
}

.system-card.selected {
    background: #dbeafe;
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.system-card.selected.featured {
    background: #fef3c7;
    border-color: #fcd34d;
}

.system-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0284c7;
    flex-shrink: 0;
}

.system-info {
    flex: 1;
    min-width: 0;
}

.system-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 4px;
}

.system-description {
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 640px) {
    .systems-grid {
        grid-template-columns: 1fr;
    }
    
    .system-card {
        padding: 12px;
    }
}

/* ============================================
   DATES CAROUSEL
   ============================================ */

.dates-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.carousel-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-nav:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #0284c7;
}

.carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.date-button {
    padding: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.date-button:hover {
    border-color: #0284c7;
    background: #f0f9ff;
}

.date-button.selected {
    background: #0284c7;
    border-color: #0284c7;
    color: white;
    font-weight: 600;
}

.date-day {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.date-date {
    font-size: 12px;
    opacity: 0.8;
}

.dates-note {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    font-style: italic;
}

.selected-date-info {
    font-size: 14px;
    color: #0284c7;
    font-weight: 500;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 6px;
    border-left: 3px solid #0284c7;
    display: none;
}

.selected-date-info.show {
    display: block;
}

@media (max-width: 768px) {
    .dates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .dates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .date-button {
        min-height: 70px;
        font-size: 11px;
    }
}

/* ============================================
   INFO BLOCK
   ============================================ */

.info-block {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.6;
}

.info-block p {
    margin: 4px 0;
    color: #374151;
}

.info-block p:first-child {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.info-block p:last-child {
    margin-top: 12px;
    color: #0284c7;
    font-weight: 500;
}

@media (max-width: 640px) {
    .info-block {
        padding: 12px;
        font-size: 12px;
    }
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

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

@media (max-width: 640px) {
    .submit-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: scaleIn 0.5s ease;
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
}

.modal-content p {
    font-size: 14px;
    color: #6b7280;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* ============================================
   CONFETTI
   ============================================ */

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    animation: fall 3s linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 20px 16px;
    font-size: 12px;
    margin-top: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
    .main-content {
        padding: 16px;
    }
}
