:root {
    --ivy-primary: #5e6b4d;      /* Deep Ivy Green */
    --ivy-primary-light: #788d5d; /* Lighter Green */
    --ivy-secondary: #d4af37;    /* Elegant Gold */
    --ivy-bg: #f9fbf9;           /* Very light green-white */
    --ivy-text: #2c3e2c;         /* Dark green/gray text */
    --ivy-text-light: #6a7c6a;
    --ivy-white: #ffffff;
    --ivy-border: #e0e8e0;
    --ivy-shadow: rgba(94, 107, 77, 0.1);
    --ivy-radius: 12px;
    --ivy-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --ivy-font: 'DM Sans', 'Inter', system-ui, sans-serif;
}

.ivy-booking-container {
    max-width: 800px;
    margin: 40px auto;
    font-family: var(--ivy-font);
    background: var(--ivy-bg);
    border-radius: var(--ivy-radius);
    box-shadow: 0 10px 40px var(--ivy-shadow);
    overflow: hidden;
    color: var(--ivy-text);
}

.ivy-booking-header {
    background: var(--ivy-primary);
    color: var(--ivy-white);
    padding: 30px 40px;
    text-align: center;
}

.ivy-booking-header h2 {
    margin: 0 0 20px;
    font-size: 28px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.ivy-booking-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.ivy-booking-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    background: var(--ivy-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--ivy-transition);
}

.progress-step.active {
    color: var(--ivy-white);
    border-color: var(--ivy-secondary);
    background: var(--ivy-secondary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.progress-step.completed {
    color: var(--ivy-primary);
    background: var(--ivy-white);
    border-color: var(--ivy-white);
}

.ivy-booking-body {
    padding: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.ivy-wizard-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.ivy-wizard-step.active {
    display: block;
}

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

.ivy-wizard-step h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--ivy-primary);
    border-bottom: 2px solid var(--ivy-border);
    padding-bottom: 10px;
}

/* Service Cards */
.ivy-category-title {
    font-size: 20px;
    margin: 25px 0 15px;
    color: var(--ivy-secondary);
}

.ivy-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.ivy-service-card {
    background: var(--ivy-white);
    border: 1px solid var(--ivy-border);
    border-radius: var(--ivy-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--ivy-transition);
    position: relative;
    overflow: hidden;
}

.ivy-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--ivy-shadow);
    border-color: var(--ivy-primary-light);
}

.ivy-service-card.selected {
    border-color: var(--ivy-secondary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.ivy-service-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--ivy-secondary);
    font-size: 20px;
    font-weight: bold;
}

.ivy-service-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ivy-primary);
}

.ivy-service-desc {
    font-size: 14px;
    color: var(--ivy-text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

.ivy-service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
    color: var(--ivy-text);
}

/* Date & Time Picker */
.ivy-datetime-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .ivy-datetime-picker {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.ivy-calendar input[type="date"] {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--ivy-border);
    border-radius: var(--ivy-radius);
    font-size: 16px;
    font-family: var(--ivy-font);
    color: var(--ivy-text);
    background: var(--ivy-white);
    transition: var(--ivy-transition);
}

.ivy-calendar input[type="date"]:focus {
    outline: none;
    border-color: var(--ivy-primary);
    box-shadow: 0 0 0 3px rgba(94, 107, 77, 0.1);
}

.ivy-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.ivy-time-slot {
    padding: 10px 8px;
    min-height: 48px;
    text-align: center;
    background: var(--ivy-white);
    border: 1px solid var(--ivy-border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--ivy-transition);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    user-select: none;
}

.ivy-time-slot .slot-time {
    font-size: 14px;
    font-weight: 600;
}

.ivy-time-slot .slot-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    line-height: 1.2;
}

.ivy-time-slot:not(.unavailable):hover {
    background: var(--ivy-primary-light);
    color: var(--ivy-white);
    border-color: var(--ivy-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--ivy-shadow);
}

.ivy-time-slot:not(.unavailable):hover .slot-badge {
    background: rgba(255, 255, 255, 0.25);
    color: var(--ivy-white);
}

.ivy-time-slot.selected {
    background: var(--ivy-primary) !important;
    color: var(--ivy-white) !important;
    border-color: var(--ivy-primary) !important;
    box-shadow: 0 4px 14px rgba(94, 107, 77, 0.35);
}

.ivy-time-slot.selected .slot-badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: var(--ivy-white) !important;
}

.ivy-time-slot.unavailable {
    background: #f1f3f1;
    color: #9aa89a;
    border-color: #e2e8e2;
    cursor: not-allowed;
    opacity: 0.65;
    pointer-events: none;
}

.ivy-time-slot.unavailable .slot-badge {
    background: #e0e5e0;
    color: #889688;
}

.ivy-slot-badge-open {
    background: #e8efe5;
    color: #436338;
}

.ivy-slot-badge-limited {
    background: #fdf5e6;
    color: #b07d10;
}

.ivy-slot-badge-past {
    background: #e9ecef;
    color: #6c757d;
}

/* Form Styles */
.ivy-form-group {
    margin-bottom: 20px;
}

.ivy-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ivy-primary);
}

.ivy-form-group input, .ivy-form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--ivy-border);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--ivy-font);
    background: var(--ivy-white);
    transition: var(--ivy-transition);
}

.ivy-form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e6b4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.ivy-form-group input:focus, .ivy-form-group select:focus {
    outline: none;
    border-color: var(--ivy-secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Buttons */
.ivy-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--ivy-border);
}

.ivy-btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ivy-transition);
    border: none;
    font-family: var(--ivy-font);
}

.ivy-btn-primary {
    background: var(--ivy-primary);
    color: var(--ivy-white);
}

.ivy-btn-primary:hover:not(:disabled) {
    background: var(--ivy-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.ivy-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ivy-btn-outline {
    background: transparent;
    color: var(--ivy-primary);
    border: 2px solid var(--ivy-primary);
}

.ivy-btn-outline:hover {
    background: var(--ivy-primary-light);
    color: var(--ivy-white);
    border-color: var(--ivy-primary-light);
}

/* Utilities */
.ivy-loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--ivy-text-light);
    font-style: italic;
}

.ivy-booking-summary {
    background: var(--ivy-white);
    border: 1px solid var(--ivy-secondary);
    border-radius: var(--ivy-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.05);
}

.ivy-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.ivy-summary-item:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px dashed var(--ivy-border);
    font-weight: bold;
    color: var(--ivy-primary);
}

.ivy-feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.ivy-feedback.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

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

.ivy-checkmark {
    width: 80px;
    height: 80px;
    background: var(--ivy-secondary);
    color: var(--ivy-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Flatpickr Customization */
.flatpickr-calendar.inline {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--ivy-border);
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box;
}
.flatpickr-innerContainer, .flatpickr-rContainer, .flatpickr-days, .dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}
.flatpickr-day {
    max-width: 14.28% !important;
}
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.selected.prevMonthDay, 
.flatpickr-day.startRange.prevMonthDay, 
.flatpickr-day.endRange.prevMonthDay, 
.flatpickr-day.selected.nextMonthDay, 
.flatpickr-day.startRange.nextMonthDay, 
.flatpickr-day.endRange.nextMonthDay {
    background: var(--ivy-primary) !important;
    border-color: var(--ivy-primary) !important;
}
#ivy-booking-date {
    display: none !important;
}
.flatpickr-day:hover {
    background: rgba(33, 53, 40, 0.1);
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper {
    font-weight: bold;
    color: var(--ivy-primary);
}
.flatpickr-weekday {
    color: var(--ivy-primary);
    font-weight: bold;
}

/* Mobile Responsiveness Overrides */
@media (max-width: 600px) {
    .ivy-booking-progress {
        display: block;
    }
    .ivy-booking-progress::before {
        display: none;
    }
    .progress-step {
        display: none;
        width: 100%;
        text-align: center;
        padding: 12px;
        box-sizing: border-box;
    }
    .progress-step.active {
        display: block;
    }
    .progress-step.active::after {
        content: ' →';
        font-weight: bold;
        margin-left: 5px;
    }
    .progress-step.active:nth-child(3)::after {
        content: ''; /* No arrow on the final step */
    }
    .ivy-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 10px;
    }
    .ivy-summary-item:last-child {
        border-bottom: none;
    }
    .ivy-booking-header {
        padding: 15px;
    }
    .ivy-booking-header h2 {
        display: none; /* Hide large heading on mobile to save vertical space */
    }
    .ivy-booking-body {
        padding: 20px;
    }
}

/* Add-ons Styling */
.ivy-addon-card:hover {
    border-color: var(--ivy-primary-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--ivy-shadow);
}

.ivy-addon-card.selected {
    border-color: var(--ivy-secondary) !important;
    background-color: #fcfdfb !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.22) !important;
}

.ivy-addon-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    color: var(--ivy-secondary);
    font-size: 15px;
    font-weight: bold;
}

