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

body {
    font-family: 'Plus Jakarta Sans', sans-serif; 
        overflow: auto;
    color: #1e293b;
}

.booking-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}
div#qrCode {
    width: 200px;
    margin: 0 auto;
}
.booking-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #fc5a8d;
    color: white;
   border: 2px solid #fc5a8d;
    padding: 14px 32px;
    font-size: 1.1rem;
        border-radius: 30px;
    cursor: pointer;
    
    -webkit-transition: all 400ms ease-in-out;
    -moz-transition: all 400ms ease-in-out;
    -o-transition: all 400ms ease-in-out;
    -ms-transition: all 400ms ease-in-out;
    transition: all 400ms ease-in-out;
        font-size: 1rem;
    line-height: 1;
    font-weight: 600;
        padding: 0.9rem 1.8rem;
}

.btn-primary:hover {
    background: white; color:#494949;
        
border: 2px solid grey;
    background-color: transparent;

    -webkit-transition: all 400ms ease-in-out;
    -moz-transition: all 400ms ease-in-out;
    -o-transition: all 400ms ease-in-out;
    -ms-transition: all 400ms ease-in-out;
    transition: all 400ms ease-in-out;
}

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

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #475569;
}

.modal h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
    color: #1e293b;
}

.modal-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: #334155;
}

.hidden {
    display: none !important;
}

.month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.month-nav-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    min-width: 160px;
    text-align: center;
}

.month-nav-btn {
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    color: #fc5a8d;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.month-nav-btn:hover:not(:disabled) {
    background: #fc5a8d;
    color: white;
    border-color: #fc5a8d;
}

.month-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.calendar-btn {
    padding: 12px 8px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.calendar-btn:hover {
    border-color: #fc5a8d;
    background: #eff6ff;
}

.calendar-btn .day-name {
    display: block;
    font-weight: 600;
    color: #fc5a8d;
    margin-bottom: 2px;
}

.calendar-btn .day-date {
    display: block;
    color: #475569;
}

.timeslots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.timeslot-btn {
    padding: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.timeslot-btn:hover:not(.booked) {
    border-color: #fc5a8d;
    background: #eff6ff;
}

.timeslot-btn.selected {
    border-color: #fc5a8d;
    background: #fc5a8d;
    color: white;
}

.timeslot-btn.booked {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
    cursor: not-allowed;
    text-decoration: line-through;
}

.btn-back {
    background: none;
    border: none;
    color: #fc5a8d;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding: 4px 0;
}

.btn-back:hover {
    text-decoration: underline;
}

.selected-info {
    background: #eff6ff;
    padding: 12px 16px;
    border-radius: 8px;
    color: #fc5a8d;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.pricing-info {
    background: #f0fdf4;
    padding: 12px 16px;
    border-radius: 8px;
    color: #166534;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.pricing-hint {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.selected-slots-info {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.selected-slots-info p {
    margin-bottom: 8px;
}

.total-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fc5a8d;
}

.checkbox-group {
    margin: 8px 0 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
   
    cursor: pointer;
}

.radio-group {
    margin: 8px 0 16px;
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400 !important;
    padding: 8px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.radio-label:has(input:checked) { 
    border-color: #fc5a8d;
    background: #ffeff6;
}

.radio-label input[type="radio"] {
    width: 18px;
   
    cursor: pointer;
    accent-color: #fc5a8d;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fc5a8d;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 8px;
}

.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.success-message h3 {
    color: #059669;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.success-message p {
    color: #64748b;
    margin-bottom: 24px;
}

.payment-section {
    text-align: left;
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 2px solid #e2e8f0;
}

.payment-section h4 {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 16px;
    text-align: center;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.payment-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.payment-table td:first-child {
    color: #64748b;
    width: 40%;
}

.qr-section {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.qr-section p {
    color: #475569;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.qr-section canvas {
    border-radius: 8px;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.questionnaire-intro {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

.q-section {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fafbfc;
}

.q-section legend {
    font-weight: 600;
    font-size: 1rem;
    color: #fc5a8d;
    padding: 0 8px;
}

.q-section .form-group {
    margin-bottom: 12px;
}

.q-section .form-group:last-child {
    margin-bottom: 0;
}

.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
    appearance: auto;
}

.form-group select:focus {
    outline: none;
    border-color: #fc5a8d;
}

@media (max-width: 480px) {
    .modal {
        padding: 20px;
        border-radius: 12px;
    }

    .calendar-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .main-page h1 {
        font-size: 1.8rem;
    }
}


fieldset.q-section {
    padding: 10px; 
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    margin-bottom: 20px;
}
}
.questionnaire-intro {
    margin-bottom: 30px;
}

.q-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 20px 0 4px;
}
.q-progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s;
}
.q-progress-step.active {
    background: #2563eb;
    color: white;
}
.q-progress-step.completed {
    background: #16a34a;
    color: white;
}
.q-progress-bar {
    width: 60px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}
.q-progress-fill {
    height: 100%;
    background: #16a34a;
    width: 0;
    transition: width 0.3s;
}
.q-progress-labels {
    display: flex;
    justify-content: space-between;
    margin: 0 0 20px;
    padding: 0 4px;
}
.q-progress-labels span {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    flex: 1;
}
.q-page.hidden {
    display: none;
}
.q-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 12px;
}
.q-nav .btn-back {
    margin: 0;
}
