/**
 * Appointment Booking System - Public Styles
 * Calendly-style layout with exact colors from screenshot
 */

/* CSS Variables - Colors from screenshot */
:root {
    --abs-primary: #1a3c5a;
    --abs-primary-dark: #0f2840;
    --abs-primary-light: rgba(26, 60, 90, 0.08);
    --abs-accent: #2d5a4a;
    --abs-accent-light: #4a9079;
    --abs-title-color: #0d2137;
    --abs-service-color: #5a6c5a;
    --abs-text-dark: #1a1a1a;
    --abs-text-muted: #6b7280;
    --abs-text-light: #9ca3af;
    --abs-border: #e5e7eb;
    --abs-border-light: #f3f4f6;
    --abs-bg-white: #ffffff;
    --abs-bg-light: #f9fafb;
    --abs-bg-cream: #faf9f7;
    --abs-success: #166534;
    --abs-danger: #dc2626;
    --abs-danger-light: #fef2f2;
    --abs-warning: #f59e0b;
    --abs-day-available-border: #4a9079;
    --abs-day-selected-bg: #2d4a3e;
}

/* Reset */
.abs-widget-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main Widget Container */
.abs-booking-widget {
    display: flex;
    min-height: 580px;
    background: var(--abs-bg-white);
    border: 1px solid var(--abs-border);
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--abs-text-dark);
    overflow: hidden;
}

/* Left Info Panel - 50% default, 33% with slots, back to 50% with form */
.abs-info-panel {
    width: 50%;
    min-width: 280px;
    background: var(--abs-bg-cream);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--abs-border);
    transition: width 0.3s ease;
}

.abs-booking-widget.abs-slots-open .abs-info-panel {
    width: 33.333%;
}

/* When form or confirmation is active, info panel goes back to 50% */
.abs-booking-widget.abs-form-active .abs-info-panel,
.abs-booking-widget.abs-confirmation-active .abs-info-panel {
    width: 50%;
}

.abs-info-content {
    padding: 35px 30px;
    flex: 1;
}

.abs-logo {
    text-align: center;
    margin-bottom: 20px;
}

.abs-logo img {
    max-width: 110px;
    max-height: 110px;
    border-radius: 50%;
    object-fit: contain;
}

.abs-service-name {
    font-size: 12px;
    color: var(--abs-service-color);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    font-weight: 500;
}

.abs-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--abs-primary);
    margin-bottom: 18px;
    line-height: 1.3;
}

.abs-meta-info {
    margin-bottom: 18px;
}

.abs-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--abs-text-dark);
}

.abs-meta-icon {
    width: 16px;
    height: 16px;
    color: var(--abs-text-muted);
    flex-shrink: 0;
}

.abs-meta-icon svg {
    width: 16px;
    height: 16px;
}

.abs-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--abs-text-muted);
}

.abs-info-footer {
    padding: 15px 30px;
    border-top: 1px solid var(--abs-border);
}

.abs-cookie-link {
    font-size: 12px;
    color: var(--abs-text-muted);
    text-decoration: underline;
    cursor: pointer;
}

/* Main Content Area */
.abs-main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Calendar Panel */
.abs-calendar-panel {
    flex: 1;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    min-width: 320px;
    overflow-y: auto;
}

/* HIDE calendar panel when form or confirmation is active */
.abs-booking-widget.abs-form-active .abs-calendar-panel,
.abs-booking-widget.abs-confirmation-active .abs-calendar-panel {
    display: none !important;
}

.abs-calendar-view {
    display: block;
}

.abs-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--abs-title-color);
    margin-bottom: 20px;
}

/* Calendar Navigation */
.abs-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 18px;
}

.abs-nav-btn {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    cursor: pointer;
    padding: 6px;
    color: var(--abs-primary);
    border-radius: 50%;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abs-nav-btn:hover {
    background-color: var(--abs-primary-light) !important;
}

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

.abs-nav-btn svg {
    width: 16px;
    height: 16px;
}

.abs-month-year {
    font-size: 15px;
    font-weight: 600;
    color: var(--abs-text-dark);
}

/* Calendar Grid */
.abs-calendar-grid {
    margin-bottom: 20px;
}

.abs-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    justify-items: center;
}

.abs-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--abs-text-muted);
    text-transform: uppercase;
    padding: 6px 0;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 44px;
}

.abs-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(6, auto); /* Always 6 rows like macOS calendar */
    gap: 4px 4px;
    justify-items: center;
    row-gap: 8px; /* Extra space for status text below */
}

/* Wrapper for day circle + status text below */
.abs-day-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 50px;
}

.abs-day-wrapper.has-status {
    min-height: 68px; /* Extra height when status text is present */
}

/* Empty placeholder days (before first day of month) */
.abs-day.abs-empty {
    width: 38px;
    height: 38px;
    visibility: hidden;
}

.abs-day {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--abs-text-light);
    border-radius: 50%;
    cursor: default;
    position: relative;
    transition: all 0.15s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
    padding: 2px;
    box-sizing: border-box;
}

.abs-day-number {
    line-height: 1;
    z-index: 1;
}

/* Status label BELOW the day circle - only shown for fully booked and scarce */
.abs-day-status {
    display: block;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-top: 2px;
    font-weight: 700;
    text-align: center;
    width: 50px;
    max-width: 50px;
    line-height: 1.15;
    word-wrap: break-word;
    white-space: normal; /* Allow text to wrap */
}

/* Fully booked status - red text */
.abs-day-status.abs-fully-booked-status {
    color: var(--abs-day-booked-bg, #dc2626);
}

/* Not available status - red text (same as fully booked) */
.abs-day-status.abs-not-available-status {
    color: var(--abs-day-booked-bg, #dc2626);
}

/* Scarcity status - orange text */
.abs-day-status.abs-scarce-status {
    color: var(--abs-day-scarce-bg, #f59e0b);
}

.abs-day.abs-selected .abs-day-status.abs-fully-booked-status {
    color: var(--abs-day-booked-bg, #dc2626);
}

/* Available days - solid green background (same as slots/buttons) */
.abs-day.abs-available {
    cursor: pointer;
    color: var(--abs-day-available-text, #fff);
    font-weight: 600;
    border: 2px solid var(--abs-day-available-border, #2d4a3e);
    background: var(--abs-day-available-bg, #2d4a3e);
}

.abs-day.abs-available:hover {
    background: var(--abs-day-available-hover, #1e352b);
    border-color: var(--abs-day-available-hover, #1e352b);
}

/* Selected day - even darker green */
.abs-day.abs-selected {
    background: var(--abs-day-selected-bg, #1e352b) !important;
    color: var(--abs-day-selected-text, #fff) !important;
    border-color: var(--abs-day-selected-border, #1e352b) !important;
}

/* Not available days - same red style as fully booked */
.abs-day.abs-not-available {
    cursor: default;
    color: var(--abs-day-booked-text, #fff);
    font-weight: 600;
    border: 2px solid var(--abs-day-booked-border, #dc2626);
    background: var(--abs-day-booked-bg, #dc2626);
}

.abs-day.abs-not-available .abs-day-status {
    color: var(--abs-day-booked-bg, #dc2626);
}

.abs-day.abs-not-available:hover {
    background: var(--abs-day-booked-hover, #b91c1c);
    border-color: var(--abs-day-booked-hover, #b91c1c);
}

/* Fully booked days - solid red background */
.abs-day.abs-fully-booked {
    cursor: pointer;
    color: var(--abs-day-booked-text, #fff);
    font-weight: 600;
    border: 2px solid var(--abs-day-booked-border, #dc2626);
    background: var(--abs-day-booked-bg, #dc2626);
}

.abs-day.abs-fully-booked .abs-day-status {
    color: var(--abs-day-booked-text, #fff);
}

.abs-day.abs-fully-booked:hover {
    background: var(--abs-day-booked-hover, #b91c1c);
    border-color: var(--abs-day-booked-hover, #b91c1c);
}

.abs-day.abs-fully-booked.abs-selected {
    background: var(--abs-day-booked-hover, #991b1b) !important;
    border-color: var(--abs-day-booked-hover, #991b1b) !important;
    color: var(--abs-day-booked-text, #fff) !important;
}

/* Scarcity indicator - few slots available */
.abs-day.abs-scarce {
    position: relative;
}

/* Days from other months (previous/next) */
.abs-day.abs-other-month {
    color: var(--abs-text-light);
    opacity: 0.4;
}

.abs-day.abs-other-month:not(.abs-available):not(.abs-fully-booked):not(.abs-not-available) {
    background: transparent;
    border-color: transparent;
}

/* Other month days with availability - slightly muted but visible */
.abs-day.abs-other-month.abs-available,
.abs-day.abs-other-month.abs-other-month-available {
    opacity: 0.7;
    cursor: pointer;
}

.abs-day.abs-other-month.abs-available:hover {
    opacity: 1;
}

.abs-day.abs-other-month.abs-fully-booked,
.abs-day.abs-other-month.abs-not-available {
    opacity: 0.5;
    cursor: default;
}

.abs-day.abs-other-month.abs-selected {
    opacity: 1;
}

/* Status text for other month days */
.abs-other-month-wrapper .abs-day-status {
    opacity: 0.6;
}

/* Pulsing dot indicator - positioned on the border of the circle */
.abs-scarce-indicator {
    position: absolute;
    top: -3px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: var(--abs-day-scarce-indicator, #fff);
    border-radius: 50%;
    border: 2px solid var(--abs-day-scarce-border, #f59e0b);
    animation: abs-scarce-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 10;
}

@keyframes abs-scarce-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
}

/* Scarce day - solid orange background */
.abs-day.abs-scarce.abs-available {
    border-color: var(--abs-day-scarce-border, #f59e0b);
    background: var(--abs-day-scarce-bg, #f59e0b);
    color: var(--abs-day-scarce-text, #fff);
}

.abs-day.abs-scarce.abs-available:hover {
    background: var(--abs-day-scarce-hover, #d97706);
    border-color: var(--abs-day-scarce-hover, #d97706);
}

/* Selected scarce day */
.abs-day.abs-scarce.abs-selected {
    background: var(--abs-day-scarce-hover, #b45309) !important;
    border-color: var(--abs-day-scarce-hover, #b45309) !important;
}

.abs-day.abs-scarce.abs-selected .abs-scarce-indicator {
    background: var(--abs-day-scarce-indicator, #fff);
    border-color: var(--abs-day-scarce-hover, #b45309);
    animation: abs-scarce-pulse-white 1.5s ease-in-out infinite;
}

@keyframes abs-scarce-pulse-white {
    0% {
        transform: scale(1);
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Days Wrapper - contains days grid and overlay */
.abs-days-wrapper {
    position: relative;
    min-height: 200px;
}

/* No Appointments Overlay - similar to fully booked overlay in slots */
.abs-no-appointments-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    padding: 20px;
    border-radius: 8px;
}

.abs-no-appointments-overlay.active {
    display: flex;
}

.abs-no-appointments-icon {
    width: 50px;
    height: 50px;
    background: var(--abs-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.abs-no-appointments-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--abs-text-muted);
}

.abs-no-appointments-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--abs-text-muted);
    margin-bottom: 8px;
    text-align: center;
}

.abs-no-appointments-text {
    font-size: 12px;
    color: var(--abs-text-light);
    line-height: 1.5;
    text-align: center;
    max-width: 200px;
}

/* Calendar Grid */
.abs-calendar-grid {
    /* No special positioning needed */
}

/* Timezone */
.abs-timezone {
    margin-top: auto;
    padding-top: 15px;
}

.abs-timezone-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--abs-primary);
    margin-bottom: 6px;
}

.abs-timezone-selector {
    position: relative;
}

/* Fixed timezone display (no dropdown) */
.abs-timezone-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--abs-text-muted);
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--abs-primary-light);
}

.abs-timezone-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--abs-text-muted);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.abs-timezone-value:hover {
    background: var(--abs-primary-light);
}

.abs-timezone-icon {
    width: 16px;
    height: 16px;
}

.abs-timezone-icon svg {
    width: 16px;
    height: 16px;
}

.abs-timezone-arrow {
    font-size: 10px;
    margin-left: 2px;
}

.abs-timezone-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--abs-bg-white);
    border: 1px solid var(--abs-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    min-width: 220px;
    margin-bottom: 5px;
}

.abs-timezone-dropdown.active {
    display: block;
}

.abs-timezone-option {
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.abs-timezone-option:hover {
    background: var(--abs-bg-light);
}

.abs-timezone-option.selected {
    background: var(--abs-primary-light);
    font-weight: 600;
}

/* Time Slots Panel */
.abs-slots-panel {
    width: 0;
    overflow: hidden;
    border-left: 1px solid var(--abs-border);
    background: var(--abs-bg-white);
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
}

.abs-slots-panel.active {
    width: 33.333%;
    min-width: 200px;
}

/* HIDE slots panel when form or confirmation is active */
.abs-booking-widget.abs-form-active .abs-slots-panel,
.abs-booking-widget.abs-confirmation-active .abs-slots-panel {
    display: none !important;
    width: 0 !important;
}

.abs-slots-header {
    padding: 35px 20px 15px;
}

.abs-selected-date-display {
    font-size: 14px;
    font-weight: 600;
    color: var(--abs-text-dark);
}

/* Scarcity Message */
.abs-scarcity-message {
    background: #fef3c7;
    color: #92400e;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    display: none;
}

.abs-scarcity-message.active {
    display: block;
}

.abs-slots-list-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.abs-slots-list {
    padding: 0 20px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.abs-slot-row {
    display: flex;
    gap: 6px;
}

.abs-slot {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--abs-border);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: var(--abs-bg-white);
    color: var(--abs-text-dark);
}

.abs-slot:hover {
    border-color: var(--abs-primary);
    color: var(--abs-primary);
}

.abs-slot.abs-selected {
    background: var(--abs-accent);
    border-color: var(--abs-accent);
    color: #fff;
}

.abs-slot-next-btn {
    padding: 12px 16px;
    background: var(--abs-accent) !important;
    background-color: var(--abs-accent) !important;
    border: none !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #fff !important;
    transition: background-color 0.2s;
    display: none;
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
}

.abs-slot-next-btn.active {
    display: block !important;
}

.abs-slot-next-btn:hover {
    background: var(--abs-primary-dark) !important;
    background-color: var(--abs-primary-dark) !important;
}

/* Booked slot - semi transparent */
.abs-slot.abs-booked {
    background: rgba(248, 248, 248, 0.7);
    border-color: #e0e0e0;
    color: #ccc;
    cursor: not-allowed;
    position: relative;
}

.abs-slot.abs-booked .abs-slot-time {
    text-decoration: line-through;
}

.abs-slot.abs-booked .abs-slot-booked-label {
    display: block;
    font-size: 9px;
    color: var(--abs-danger);
    text-transform: uppercase;
    margin-top: 2px;
}

.abs-slot:not(.abs-booked) .abs-slot-booked-label {
    display: none;
}

/* Slots Loading Spinner */
.abs-slots-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 150px;
}

.abs-slots-loading .abs-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--abs-border);
    border-top-color: var(--abs-primary);
    border-radius: 50%;
    animation: abs-spin 0.7s linear infinite;
}

/* Fully Booked Overlay */
.abs-fully-booked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 20px;
}

.abs-fully-booked-overlay.active {
    display: flex;
}

.abs-fully-booked-icon {
    width: 50px;
    height: 50px;
    background: var(--abs-danger-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.abs-fully-booked-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--abs-danger);
}

.abs-fully-booked-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--abs-danger);
    margin-bottom: 8px;
    text-align: center;
}

.abs-fully-booked-text {
    font-size: 12px;
    color: var(--abs-text-muted);
    line-height: 1.5;
    text-align: center;
    max-width: 180px;
}

/* Booking Form Container - SHOWN when form is active */
.abs-booking-form-container {
    display: none;
    padding: 35px 30px;
    flex: 1;
    overflow-y: auto;
    background: var(--abs-bg-white);
}

.abs-booking-widget.abs-form-active .abs-booking-form-container {
    display: block !important;
}

.abs-form-header {
    margin-bottom: 20px;
}

.abs-back-btn {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    cursor: pointer;
    color: var(--abs-primary) !important;
    font-size: 14px;
    font-weight: 600;
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.abs-back-btn:hover {
    text-decoration: underline;
    background: none !important;
    background-color: transparent !important;
    color: var(--abs-primary-dark) !important;
}

.abs-back-btn:hover span,
.abs-back-btn:hover svg {
    color: var(--abs-primary-dark) !important;
    fill: var(--abs-primary-dark) !important;
}

.abs-back-btn svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

.abs-booking-summary {
    background: var(--abs-bg-light);
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.abs-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--abs-text-dark);
}

.abs-summary-item:last-child {
    margin-bottom: 0;
}

.abs-summary-item svg {
    width: 16px;
    height: 16px;
    color: var(--abs-text-muted);
}

.abs-booking-form {
    max-width: 380px;
}

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

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

.abs-form-group.abs-full-width {
    grid-column: 1 / -1;
    margin-bottom: 12px;
}

.abs-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--abs-text-dark);
    margin-bottom: 5px;
}

.abs-required {
    color: var(--abs-danger);
}

.abs-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--abs-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.abs-form-input:focus {
    outline: none;
    border-color: var(--abs-primary);
}

.abs-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--abs-accent);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.abs-submit-btn:hover {
    background: var(--abs-primary-dark);
}

.abs-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Confirmation - SHOWN when confirmation is active */
.abs-confirmation-container {
    display: none;
    text-align: center;
    padding: 50px 30px;
    flex: 1;
    background: var(--abs-bg-white);
}

.abs-booking-widget.abs-confirmation-active .abs-confirmation-container {
    display: block !important;
}

.abs-confirmation-icon {
    width: 70px;
    height: 70px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.abs-confirmation-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--abs-success);
}

.abs-confirmation-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--abs-success);
    margin-bottom: 12px;
}

.abs-confirmation-message {
    font-size: 14px;
    color: var(--abs-text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.abs-confirmation-details {
    background: var(--abs-bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    max-width: 320px;
    margin: 0 auto;
}

.abs-confirmation-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.abs-confirmation-detail:last-child {
    margin-bottom: 0;
}

.abs-confirmation-detail-label {
    color: var(--abs-text-muted);
}

.abs-confirmation-detail-value {
    font-weight: 600;
    color: var(--abs-text-dark);
}

.abs-confirmation-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 30px;
    background: var(--abs-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.abs-confirmation-btn:hover {
    background: var(--abs-primary-dark);
    color: #fff;
}

/* Loading */
.abs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.abs-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--abs-border);
    border-top-color: var(--abs-primary);
    border-radius: 50%;
    animation: abs-spin 0.8s linear infinite;
}

@keyframes abs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   MOBILE SPECIFIC ELEMENTS (Hidden on Desktop)
   ===================================================== */
.abs-mobile-back-btn,
.abs-mobile-slots-header,
.abs-mobile-slots-timezone,
.abs-mobile-slots-title,
.abs-mobile-slots-duration,
.abs-mobile-form-header,
.abs-mobile-form-info,
.abs-mobile-form-section-title,
.abs-mobile-description-toggle {
    display: none;
}

/* On desktop, mobile-form-content is just a pass-through wrapper */
.abs-mobile-form-content {
    display: block;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .abs-info-panel {
        width: 40%;
    }
    
    .abs-booking-widget.abs-slots-open .abs-info-panel {
        width: 30%;
    }
    
    .abs-slots-panel.active {
        width: 35%;
    }
    
    .abs-booking-widget.abs-form-active .abs-info-panel,
    .abs-booking-widget.abs-confirmation-active .abs-info-panel {
        width: 50%;
    }
}

/* =====================================================
   MOBILE LAYOUT - 3 STEP DESIGN (Like Calendly)
   ===================================================== */
@media (max-width: 768px) {
    /* Prevent horizontal scroll and zoom */
    .abs-widget-container {
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        touch-action: pan-y;
        padding: 0;
        margin: 0;
    }
    
    .abs-booking-widget {
        flex-direction: column;
        min-height: auto;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        border-radius: 8px;
        border: 1px solid var(--abs-border);
    }
    
    /* ==================== STEP 1: CALENDAR ==================== */
    .abs-info-panel,
    .abs-booking-widget.abs-slots-open .abs-info-panel {
        width: 100% !important;
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid var(--abs-border);
    }
    
    .abs-info-content {
        padding: 25px 20px;
        text-align: center;
    }
    
    .abs-logo {
        margin-bottom: 15px;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .abs-logo img {
        max-width: 70px;
        max-height: 70px;
    }
    
    .abs-meta-info {
        justify-content: center;
    }
    
    .abs-meta-item {
        justify-content: center;
    }
    
    .abs-description {
        text-align: center;
    }
    
    .abs-info-footer {
        display: none;
    }
    
    .abs-main-content {
        flex-direction: column;
        width: 100%;
    }
    
    .abs-calendar-panel {
        min-width: auto;
        padding: 25px 20px;
        width: 100%;
    }
    
    .abs-step-title {
        text-align: center;
    }
    
    /* Mobile day circles - ensure perfect circles */
    .abs-day {
        width: 46px;
        height: 46px;
        font-size: 14px;
        padding: 2px;
        box-sizing: border-box;
    }
    
    .abs-day.abs-empty {
        width: 46px;
        height: 46px;
    }
    
    /* Desktop slots panel hidden on mobile step 1 */
    .abs-slots-panel,
    .abs-slots-panel.active {
        display: none !important;
    }
    
    /* ==================== STEP 2: SLOTS (Mobile) ==================== */
    .abs-booking-widget.abs-mobile-slots .abs-info-panel,
    .abs-booking-widget.abs-mobile-slots .abs-calendar-panel {
        display: none !important;
    }
    
    .abs-booking-widget.abs-mobile-slots .abs-slots-panel,
    .abs-booking-widget.abs-mobile-slots .abs-slots-panel.active {
        display: flex !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        border-left: none;
        flex: 1;
        flex-direction: column;
        box-sizing: border-box;
    }
    
    /* Mobile slots header */
    .abs-booking-widget.abs-mobile-slots .abs-mobile-slots-header {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--abs-border);
        position: relative;
        min-height: 70px;
    }
    
    .abs-booking-widget.abs-mobile-slots .abs-mobile-back-btn {
        display: flex !important;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .abs-mobile-back-btn {
        background: none !important;
        background-color: transparent !important;
        background-image: none !important;
        border: 1px solid var(--abs-border) !important;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .abs-mobile-back-btn:hover {
        background: var(--abs-bg-light) !important;
        background-color: var(--abs-bg-light) !important;
    }
    
    .abs-mobile-back-btn svg {
        width: 20px;
        height: 20px;
        stroke: var(--abs-text-dark);
    }
    
    .abs-mobile-slots-day {
        font-size: 20px;
        font-weight: 700;
        color: var(--abs-primary);
        text-align: center;
        margin-bottom: 2px;
    }
    
    .abs-mobile-slots-date {
        font-size: 14px;
        color: var(--abs-text-muted);
        text-align: center;
    }
    
    /* Mobile timezone */
    .abs-booking-widget.abs-mobile-slots .abs-mobile-slots-timezone {
        display: flex;
        font-size: 12px;
        color: var(--abs-text-muted);
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 20px;
        border-bottom: 1px solid var(--abs-border);
    }
    
    .abs-mobile-slots-timezone svg {
        width: 14px;
        height: 14px;
    }
    
    /* Select a Time title */
    .abs-booking-widget.abs-mobile-slots .abs-mobile-slots-title {
        display: block;
        text-align: center;
        padding: 20px 20px 8px;
        font-size: 18px;
        font-weight: 700;
        color: var(--abs-primary);
    }
    
    .abs-booking-widget.abs-mobile-slots .abs-mobile-slots-duration {
        display: block;
        text-align: center;
        font-size: 13px;
        color: var(--abs-text-muted);
        padding-bottom: 10px;
    }
    
    /* Hide desktop slots header on mobile */
    .abs-booking-widget.abs-mobile-slots .abs-slots-header {
        display: none;
    }
    
    /* Scrollable slots list */
    .abs-booking-widget.abs-mobile-slots .abs-slots-list-wrapper {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .abs-booking-widget.abs-mobile-slots .abs-slots-list {
        padding: 15px 20px 30px;
    }
    
    .abs-booking-widget.abs-mobile-slots .abs-slot-row {
        flex-direction: column;
        gap: 0;
    }
    
    .abs-booking-widget.abs-mobile-slots .abs-slot {
        padding: 18px 20px;
        margin-bottom: 12px;
        border-radius: 8px;
        text-align: center;
    }
    
    /* On mobile, show Next button lateral (like desktop) */
    .abs-booking-widget.abs-mobile-slots .abs-slot-row {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .abs-booking-widget.abs-mobile-slots .abs-slot {
        flex: 1;
        padding: 16px 12px;
        margin-bottom: 0;
    }
    
    .abs-booking-widget.abs-mobile-slots .abs-slot-next-btn {
        width: auto;
        min-width: 80px;
        padding: 16px 20px;
        border-radius: 8px;
        margin-bottom: 0;
    }
    
    .abs-booking-widget.abs-mobile-slots .abs-slot-next-btn.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* ==================== STEP 3: FORM (Mobile) ==================== */
    .abs-booking-widget.abs-form-active .abs-info-panel,
    .abs-booking-widget.abs-form-active .abs-calendar-panel,
    .abs-booking-widget.abs-form-active .abs-slots-panel {
        display: none !important;
    }
    
    .abs-booking-widget.abs-form-active .abs-booking-form-container {
        display: flex !important;
        flex-direction: column;
        flex: 1;
        padding: 0;
        overflow-y: auto;
    }
    
    /* Mobile form header */
    .abs-booking-widget.abs-form-active .abs-mobile-form-header {
        display: flex;
        padding: 15px 20px;
        border-bottom: 1px solid var(--abs-border);
        position: relative;
        min-height: 70px;
        align-items: center;
        justify-content: center;
    }
    
    .abs-mobile-form-header .abs-mobile-back-btn {
        display: flex;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .abs-mobile-form-logo {
        text-align: center;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .abs-mobile-form-logo img {
        max-width: 50px;
        max-height: 50px;
        border-radius: 50%;
    }
    
    /* Mobile form info */
    .abs-booking-widget.abs-form-active .abs-mobile-form-info {
        display: block;
        padding: 25px 20px;
        border-bottom: 1px solid var(--abs-border);
        text-align: center;
    }
    
    .abs-mobile-form-title {
        font-size: 22px;
        font-weight: 700;
        color: var(--abs-primary);
        margin-bottom: 18px;
        line-height: 1.25;
    }
    
    .abs-mobile-form-meta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 14px;
        color: var(--abs-text-muted);
    }
    
    .abs-mobile-form-meta-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .abs-mobile-form-meta-item svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    /* Description toggle */
    .abs-booking-widget.abs-form-active .abs-mobile-description-toggle {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--abs-border);
    }
    
    .abs-description-trigger {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: var(--abs-primary);
        cursor: pointer;
        font-weight: 500;
        background: none;
        border: none;
        padding: 0;
    }
    
    .abs-description-trigger svg {
        width: 14px;
        height: 14px;
        transition: transform 0.2s;
    }
    
    .abs-description-trigger.open svg {
        transform: rotate(90deg);
    }
    
    .abs-mobile-description-content {
        display: none;
        padding-top: 12px;
        font-size: 14px;
        color: var(--abs-text-muted);
        line-height: 1.6;
    }
    
    .abs-mobile-description-content.open {
        display: block;
    }
    
    /* Mobile form content */
    .abs-mobile-form-content {
        flex: 1;
        padding: 25px 20px;
        overflow-y: auto;
    }
    
    /* Hide desktop form elements on mobile */
    .abs-booking-widget.abs-form-active .abs-form-header {
        display: none;
    }
    
    .abs-booking-widget.abs-form-active .abs-booking-summary {
        display: none;
    }
    
    /* Enter Details title */
    .abs-booking-widget.abs-form-active .abs-mobile-form-section-title {
        display: block;
        font-size: 18px;
        font-weight: 700;
        color: var(--abs-primary);
        margin-bottom: 20px;
    }
    
    /* ==================== STEP 4: CONFIRMATION (Mobile) ==================== */
    .abs-booking-widget.abs-confirmation-active .abs-info-panel,
    .abs-booking-widget.abs-confirmation-active .abs-calendar-panel,
    .abs-booking-widget.abs-confirmation-active .abs-slots-panel {
        display: none !important;
    }
    
    .abs-booking-widget.abs-confirmation-active .abs-confirmation-container {
        display: block !important;
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .abs-info-content {
        padding: 20px 18px;
    }
    
    .abs-title {
        font-size: 20px;
    }
    
    .abs-calendar-panel {
        padding: 20px 18px;
    }
    
    .abs-form-row {
        grid-template-columns: 1fr;
    }
    
    .abs-booking-form-container {
        padding: 20px 18px;
    }
    
    .abs-confirmation-container {
        padding: 35px 18px;
    }
    
    .abs-day {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
    
    .abs-day-wrapper {
        min-height: 44px;
    }
    
    .abs-day-wrapper.has-status {
        min-height: 58px;
    }
    
    .abs-day-status {
        font-size: 6px;
        max-width: 45px;
        width: 45px;
        margin-top: 2px;
    }
    
    /* Scarcity indicator mobile */
    .abs-scarce-indicator {
        width: 8px;
        height: 8px;
        top: -2px;
        right: -1px;
        border-width: 1.5px;
    }
}

/* Iframe specific */
.abs-iframe-body {
    margin: 0;
    padding: 0;
    background: #fff;
}

.abs-iframe-body .abs-widget-container {
    max-width: 100%;
}

/* ==================== ADD TO CALENDAR BUTTONS ==================== */
.abs-add-to-calendar {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--abs-border);
}

.abs-calendar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--abs-text);
    margin: 0 0 15px 0;
    text-align: center;
}

.abs-calendar-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.abs-cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--abs-border);
    background: #fff;
    color: var(--abs-text);
}

.abs-cal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.abs-cal-btn svg {
    flex-shrink: 0;
}

/* Google Calendar */
.abs-cal-google {
    background: #fff;
    border-color: #4285f4;
    color: #4285f4;
}

.abs-cal-google:hover {
    background: #4285f4;
    color: #fff;
}

/* Apple Calendar */
.abs-cal-apple {
    background: #fff;
    border-color: #333;
    color: #333;
}

.abs-cal-apple:hover {
    background: #333;
    color: #fff;
}

/* Outlook */
.abs-cal-outlook {
    background: #fff;
    border-color: #0078d4;
    color: #0078d4;
}

.abs-cal-outlook:hover {
    background: #0078d4;
    color: #fff;
}

/* ICS Download */
.abs-cal-ics {
    background: #fff;
    border-color: var(--abs-primary);
    color: var(--abs-primary);
}

.abs-cal-ics:hover {
    background: var(--abs-primary);
    color: #fff;
}

@media (max-width: 768px) {
    .abs-calendar-buttons {
        flex-direction: column;
    }
    
    .abs-cal-btn {
        justify-content: center;
    }
}

/* Phone Input with Country Code */
.abs-phone-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.abs-phone-prefix {
    width: 110px;
    min-width: 110px;
    padding: 12px 8px;
    border: 1px solid var(--abs-border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--abs-bg-white);
    color: var(--abs-text-dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.abs-phone-prefix:focus {
    outline: none;
    border-color: var(--abs-primary);
    box-shadow: 0 0 0 3px rgba(26, 60, 90, 0.1);
}

.abs-phone-number {
    flex: 1;
}

/* Prefilled Name Display */
.abs-prefilled-row {
    margin-bottom: 16px;
}

.abs-prefilled-value {
    padding: 14px 16px;
    background: var(--abs-bg-light);
    border: 1px solid var(--abs-border);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--abs-primary);
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .abs-phone-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .abs-phone-prefix {
        width: 100%;
    }
}
