/* KlusHub Calculator - Complete Styles - OPTIMIZED FOR 1500px WITH MORE QUESTIONS */

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

:root {
    --primary: #A4C76D;
    --secondary: #748A50;
    --success: #A4C76D;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-700: #374151;
    --gray-900: #111827;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: transparent;
}

/* Header */
header {
    background: transparent;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Hero */
.hero {
    background:transparent;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.8rem;
    opacity: 0.95;
}

/* Container */
.container {
    max-width: 900px;
    margin: -2rem auto 3rem;
    padding: 0 1rem;
}

/* Steps Indicator */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.8;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--gray-200);
    z-index: -1;
}

.step.completed:not(:last-child)::after {
    background: var(--primary);
}

.step-number {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* Calculator Card - FIXED 1500px HEIGHT */
.calculator-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: visible;
    height:auto;
    display: flex;
    flex-direction: column;
}

.step-content {
    display: none;
    flex-direction: column;
    height: auto;
    padding: 0;
    overflow: visible;
    position: relative;
}

.step-content.active {
    display: flex;
}

/* Fixed bottom section for price and buttons */
.step-fixed-bottom {
    flex-shrink: 0;
    padding: 1rem 2rem 2rem;
    background: white;
    border-top: 2px solid var(--gray-100);
}

/* Service Selection */
.service-selection h2 {
    margin-bottom: 1.2rem;
    color: var(--gray-900);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 1;
}


/* Scrollable content area - NO SCROLL, just padding */
.step-scrollable-content {
    flex: 1;
    overflow-y: visible;
    overflow-x: visible;
    padding: 2rem;
    padding-bottom: 1rem;
    min-height: auto;
    position: relative;
    pointer-events: auto;
}

/* Hide scrollbar */
.step-scrollable-content::-webkit-scrollbar {
    display: none;
}

.work-step {
    text-align: center;
    position: relative;
    padding: 1.2rem 0.8rem;
    background: var(--gray-50);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.work-step:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.work-step-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.work-step-number {
    width: 32px;
    height: 32px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.work-step h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    font-weight: 600;
}

.work-step p {
    font-size: 0.8rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.service-option {
    background: var(--gray-50);
    border: 3px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.service-option:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.service-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    pointer-events: none;
}

.service-option h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    pointer-events: none;
}

.service-option p {
    font-size: 0.9rem;
    opacity: 0.8;
    pointer-events: none;
}

/* Service Options - COMPACT SPACING FOR MORE QUESTIONS */
.service-options {
    width: 100%;
    position: relative;
    z-index: 1;
}

.service-options h2 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}

.question-group {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.question-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.option-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.option-button {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.option-button:hover {
    border-color: var(--primary);
    background: #f8f9ff;
}

.option-button input {
    display: none;
}

.option-button.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.option-button label {
    cursor: pointer;
    display: block;
    font-size: 0.9rem;
}

.option-price {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.checkbox-option {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.checkbox-option:hover {
    border-color: var(--primary);
}

.checkbox-option.selected {
    border-color: var(--primary);
    background: #f8f9ff;
}

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

.checkbox-option label {
    cursor: pointer;
    flex: 1;
    font-size: 0.9rem;
}

/* Price Preview */
.price-preview {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 1rem;
    font-weight: 500;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Booking Form */
.booking-form {
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Fixed height textarea with scrolling */
.form-group textarea {
    resize: none;
    min-height: 80px;
    max-height: 80px;
    overflow-y: auto;
}

/* Custom scrollbar for textarea */
.form-group textarea::-webkit-scrollbar {
    width: 8px;
}

.form-group textarea::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.form-group textarea::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.form-group textarea::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Price Summary Box */
.price-summary-box {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.price-summary-box h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}

#bookingSummary {
    margin-bottom: 1rem;
}

#bookingSummary .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.total-price {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    padding-top: 1rem;
    border-top: 2px solid var(--gray-300);
    color: var(--primary);
}

/* Payment */
.payment-info {
    max-width: 600px;
    margin: 0 auto;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.info-box p {
    margin-bottom: 0.5rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.payment-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.option-button.large {
    padding: 2rem 1rem;
    text-align: center;
}

.payment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.option-button.large h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

#stripePaymentElement {
    margin-top: 2rem;
}

#payment-element {
    margin-bottom: 1.5rem;
}

/* Buttons */
.back-button {
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.back-button:hover {
    background: var(--gray-200);
}

.continue-button,
.pay-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s;
}

.continue-button:hover,
.pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.continue-button:disabled,
.pay-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem 2rem 6rem 2rem;
    min-height: 700px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.success-message h2 {
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.booking-details {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 500px;
    text-align: left;
}

.booking-details .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.booking-details .detail-item:last-child {
    border-bottom: none;
}


.hidden {
    display: none !important;
}

/* ========================================
   VISUAL CALENDAR STYLES - COMPACT
   ======================================== */

.visual-calendar-container {
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1rem;
    align-items: start;
}

.calendar-wrapper {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    height: 420px;
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
    flex-shrink: 0;
}

.calendar-month {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.calendar-nav-btn {
    background: var(--gray-100);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: scale(1.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    flex: 1;
    align-content: start;
}

.calendar-day-name {
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--gray-600);
    padding: 0.3rem;
    margin-bottom: 0.25rem;
}

#calendarDays {
    display: contents;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    position: relative;
    padding: 0.25rem;
    font-size: 0.8rem;
}

.calendar-day.empty {
    border: none;
    background: transparent;
    cursor: default;
}

.calendar-day:not(.empty):not(.past):not(.weekend):hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(71, 150, 255, 0.2);
    z-index: 10;
}

/* Day States */
.calendar-day.past {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--gray-50);
}

.calendar-day.weekend {
    background: linear-gradient(135deg, #f1f1f1 0%, #e4e4e4 100%);
    border-color: #d8d8d8;
    cursor: not-allowed;
}

.calendar-day.available {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.calendar-day.partial {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.calendar-day.full {
    background: linear-gradient(135deg, #ffebeb 0%, #fec7c7 100%);
    border-color: #f25a5a;
    cursor: not-allowed;
    position: relative;
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(71, 150, 255, 0.35);
    z-index: 20;
}

.calendar-day.selected .day-number,
.calendar-day.selected .day-status {
    color: white;
}

.day-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.1rem;
}

.day-status {
    font-size: 0.6rem;
    font-weight: 600;
    opacity: 0.8;
    line-height: 1;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--gray-100);
    flex-shrink: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--gray-700);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 2px solid;
    flex-shrink: 0;
}

.legend-dot.available {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.legend-dot.partial {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.legend-dot.full {
    background: linear-gradient(135deg, #ffebeb 0%, #fec7c7 100%);
    border-color: #fb2424;
}

.legend-dot.weekend {
    background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
    border-color: #fca5a5;
}

/* ========================================
   TIME SLOTS - COMPACT SIDEBAR - FIXED HEIGHT
   ======================================== */

.time-slots-wrapper {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    height: 420px;
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
}

.time-slots-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
    flex-shrink: 0;
}

.time-slots-header h3 {
    font-size: 1rem;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
}

.slots-available {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.time-slots-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.time-slot {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.time-slot:hover:not(.disabled) {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(71, 150, 255, 0.2);
}

.time-slot:hover:not(.disabled)::before {
    opacity: 1;
}

.time-slot.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(71, 150, 255, 0.3);
}

.time-slot.selected::before {
    opacity: 0;
}

.time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-50);
}

.time-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.time-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.time-period {
    font-size: 0.75rem;
    opacity: 0.8;
}

.time-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
}

/* ========================================
   IFRAME EMBEDDING FIXES
   ======================================== */

/* Force mobile layout in narrow iframes */
@media (max-width: 900px) {
    body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: visible !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        margin: 0 !important;
    }
    
    .calculator-card {
        height: auto !important;
        min-height: 100vh;
        border-radius: 0 !important;
    }
    
    .step-content {
        height: auto !important;
        min-height: 100vh;
    }
    
    .step-scrollable-content {
        overflow-y: visible !important;
        height: auto !important;
        padding: 1rem !important;
    }
}

/* Container-query based responsive (works in iframes) */
@container (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr !important;
    }
    
    .option-buttons {
        grid-template-columns: 1fr !important;
    }
    
    .steps-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   MOBILE RESPONSIVE FIXES
   ======================================== */

@media (max-width: 768px) {
    /* Force proper width */
    body {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        min-height: 100vh !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0.5rem !important;
        margin: 0 !important;
        min-height: 100vh !important;
    }
    
    /* Steps indicator - stack vertically */
    .steps-indicator {
        padding: 1rem 0.5rem;
        gap: 0.5rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    /* Card - CRITICAL: Must contain fixed bottom */
    .calculator-card {
        border-radius: 0 !important;
        box-shadow: none;
        min-height: 100vh !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
    }
    
    /* Step content - CRITICAL: Must show fixed bottom */
    .step-content {
        min-height: 100vh !important;
        height: auto !important;
        display: none !important;
        flex-direction: column !important;
        overflow: visible !important;
    }
    
    .step-content.active {
        display: flex !important;
    }
    
    /* Scrollable content - takes remaining space */
    .step-scrollable-content {
        flex: 1 !important;
        padding: 1rem !important;
        overflow-y: visible !important;
        overflow-x: visible !important;
        min-height: auto !important;
    }
    
    /* Fixed bottom - CRITICAL: Always visible at bottom */
    .step-fixed-bottom {
        flex-shrink: 0 !important;
        padding: 1rem !important;
        background: white !important;
        border-top: 2px solid var(--gray-100) !important;
        position: relative !important;
        z-index: 100 !important;
        width: 100% !important;
        display: block !important;
    }
    
    /* Service grid - single column */
    .service-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem;
    }
    
    /* Question groups */
    .question-group {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .question-label {
        font-size: 0.85rem;
    }
    
    /* Option buttons - stack on very small screens */
    .option-buttons {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
    }
    
    /* Calendar - stack vertically */
    .visual-calendar-container {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .calendar-wrapper,
    .time-slots-wrapper {
        height: auto !important;
        max-height: none !important;
    }
    
    .calendar-day {
        font-size: 0.7rem;
        padding: 0.1rem;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
    
    .day-status {
        font-size: 0.55rem;
    }
    
    /* Form fields */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Buttons - Make them more prominent */
    .continue-button,
    .pay-button {
        padding: 1rem 1.5rem !important;
        font-size: 1.05rem !important;
        width: 100% !important;
    }
    
    /* Price preview - Stack vertically on mobile */
    .price-preview {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .price-amount {
        font-size: 1.8rem !important;
    }
    
    .price-label {
        font-size: 0.95rem;
    }
    
    /* Payment options */
    .payment-choice {
        grid-template-columns: 1fr !important;
    }
    
    /* Success page */
    .success-message {
        padding: 2rem 1rem 4rem 1rem;
        min-height: auto;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .booking-details {
        padding: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .step-label {
        display: none; /* Hide labels on tiny screens */
    }
    
    .service-option {
        padding: 1rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .calendar-day-name {
        font-size: 0.65rem;
    }
}