/* WPAmelia Exact Replica - Version 3.0 */
/* Based on actual WPAmelia interface screenshots */

/* Root Variables */
:root {
    --amelia-primary: #8B6F47;
    --amelia-primary-dark: #6B5537;
    --amelia-white: #FFFFFF;
    --amelia-gray-light: #F5F5F5;
    --amelia-gray-medium: #E0E0E0;
    --amelia-gray-dark: #666666;
    --amelia-text: #333333;
    --amelia-green: #4CAF50;
    --amelia-pink: #ffcccc;
    --amelia-pink-dark: #ffb3b3;
    --amelia-disabled: #FFC0C0;
    --amelia-border-radius: 8px;
    --amelia-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Main Container */
.ximeow-amelia-wrapper {
    max-width: 900px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative; /* Contained positioning */
    z-index: 1; /* Low z-index to not overlay other elements */
}

/* Ensure all elements use border-box */
.ximeow-amelia-wrapper *,
.ximeow-amelia-wrapper *:before,
.ximeow-amelia-wrapper *:after {
    box-sizing: border-box;
}

.ximeow-amelia-container {
    background: var(--amelia-white);
    border-radius: var(--amelia-border-radius);
    box-shadow: var(--amelia-shadow);
    width: 100%; /* Take full width of wrapper */
}

/* Desktop only container properties */
@media (min-width: 769px) {
    .ximeow-amelia-container {
        overflow: hidden;
        min-height: 500px;
        height: 600px;
        display: flex;
        position: relative;
    }
}

/* Left Sidebar */
.ximeow-sidebar {
    flex: 0 0 25%; /* Takes 25% width, doesn't grow or shrink */
    background: var(--amelia-primary);
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.ximeow-sidebar-steps {
    padding: 30px 0;
    padding-bottom: 80px; /* Space for collapse menu */
}

.ximeow-sidebar-step {
    padding: 20px 25px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ximeow-sidebar-step:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.ximeow-sidebar-step.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.ximeow-sidebar-step.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
}

.ximeow-sidebar-step.completed .step-icon {
    background: var(--amelia-green);
}

.step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.step-text {
    flex: 1;
}

.step-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 2px;
}

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

/* Collapse Menu */
.ximeow-sidebar-footer {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 20px 25px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: var(--amelia-primary) !important;
    display: block !important;
}

.collapse-menu {
    color: white !important;
    font-size: 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    opacity: 0.9 !important;
    transition: opacity 0.3s ease;
}

.collapse-menu:hover {
    opacity: 1;
}

.collapse-icon {
    transition: transform 0.3s ease;
}

/* Collapsed State */
.ximeow-amelia-container.collapsed .ximeow-sidebar {
    width: 60px;
    transition: width 0.3s ease;
}

.ximeow-amelia-container.collapsed .step-text,
.ximeow-amelia-container.collapsed .collapse-menu span:first-child {
    display: none;
}

.ximeow-amelia-container.collapsed .ximeow-sidebar-step {
    padding: 20px 18px;
}

.ximeow-amelia-container.collapsed .collapse-icon {
    transform: rotate(180deg);
}

/* Main Content Area */
.ximeow-main-content {
    background: var(--amelia-white);
}

/* Desktop only main content properties */
@media (min-width: 769px) {
    .ximeow-main-content {
        flex: 1; /* Take all remaining space */
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden; /* Prevent horizontal overflow */
        min-width: 0; /* Allow flex item to shrink below content size */
    }
}

.ximeow-content-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid var(--amelia-gray-medium);
    flex-shrink: 0;
}

.ximeow-content-title {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #333333 !important; /* Black color for title */
    margin: 0 !important;
}

.ximeow-content-body {
    padding: 20px 30px;
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Include padding in width */
}

/* Desktop only content body properties */
@media (min-width: 769px) {
    .ximeow-content-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(100% - 140px); /* Account for header and footer */
    }
}

/* Calendar Styles */
.calendar-controls {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping - keep everything on one line */
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: space-between;
}

/* Remove month-year-group as we're using flat structure */

.calendar-select {
    padding: 8px 12px;
    border: 1px solid var(--amelia-gray-medium);
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    min-width: 100px;
}

#month-selector {
    min-width: 100px;
}

#year-selector {
    min-width: 70px;
    margin-right: auto; /* Push nav buttons to right */
}

/* Remove calendar-nav as we're using flat structure */


.nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--amelia-gray-medium);
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333333;
    font-size: 20px;
    font-weight: bold;
}

.nav-btn:hover {
    background: var(--amelia-gray-light);
}

/* Timezone Display */
.timezone-display {
    text-align: center !important;
    color: #4CAF50 !important;
    font-size: 12px !important;
    margin-bottom: 12px !important;
    background: #E8F5E9 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    display: inline-block !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Calendar Grid */
.calendar-wrapper {
    background: white;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
    width: 100%; /* Ensure full width */
    overflow-x: auto; /* Allow horizontal scroll if needed */
}

/* Mobile - minimal calendar spacing */
@media (max-width: 768px) {
    .calendar-wrapper {
        margin-bottom: 0 !important; /* No space below calendar */
        padding: 5px !important;
    }
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr)); /* Use minmax for flexible sizing */
    margin-bottom: 6px;
    width: 100%;
}

.calendar-header-day {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #333333 !important;
    padding: 5px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr)); /* Use minmax for flexible sizing */
    gap: 2px;
    width: 100%;
}

.calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
    height: 36px;
    min-width: 30px; /* Allow more shrinking */
    width: 100%; /* Take full width of grid cell */
    background: white;
    color: #333333 !important;
    box-sizing: border-box;
    padding: 4px; /* Reduce padding for more space */
}

.calendar-day.other-month {
    color: #ccc;
    cursor: default;
}

.calendar-day.disabled {
    background: var(--amelia-pink);
    color: #999;
    cursor: not-allowed;
}

.calendar-day.available {
    background: #E8F5E9;
    color: var(--amelia-text);
}

/* Hover only on desktop - prevents interference on mobile */
@media (hover: hover) and (pointer: fine) {
    .calendar-day.available:hover {
        background: #C8E6C9;
        transform: scale(1.05);
    }
}

/* Active state for mobile taps */
.calendar-day.available:active {
    background: #C8E6C9;
    transform: scale(0.98);
}

.calendar-day.selected {
    background: var(--amelia-green) !important;
    color: white;
    font-weight: 600;
}

/* Time Slots */
.time-slots-section {
    margin-top: 30px;
}

/* Mobile time slots - minimal spacing */
@media (max-width: 768px) {
    .time-slots-section {
        margin-top: 10px !important;
        padding-top: 0 !important;
    }
}

.time-slots-header {
    font-size: 14px;
    color: #333333;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Mobile - reduce header spacing */
@media (max-width: 768px) {
    .time-slots-header {
        margin-bottom: 8px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Mobile - compact time slots grid */
@media (max-width: 768px) {
    .time-slots-grid {
        gap: 8px !important;
        margin-bottom: 0 !important;
    }
}

.time-slot {
    padding: 12px 20px;
    border: 1px solid var(--amelia-gray-medium);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    background: white;
    color: #333333;
}

.time-slot.available {
    background: #E8F5E9;
    border-color: #C8E6C9;
}

/* Hover only on desktop */
@media (hover: hover) and (pointer: fine) {
    .time-slot.available:hover {
        background: #C8E6C9;
        border-color: var(--amelia-green);
    }
}

/* Active state for mobile taps */
.time-slot.available:active {
    background: #C8E6C9;
    border-color: var(--amelia-green);
}

.time-slot.selected {
    background: var(--amelia-green);
    border-color: var(--amelia-green);
    color: white;
}

.time-slot.disabled {
    background: var(--amelia-pink);
    border-color: var(--amelia-pink-dark);
    color: #999;
    cursor: not-allowed;
}

/* Form Styles */
.form-section {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

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

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

.form-label {
    font-size: 14px;
    color: #333333 !important;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    padding: 10px 12px;
    border: 1px solid var(--amelia-gray-medium);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: #333333 !important;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--amelia-primary);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form-input::placeholder {
    color: #999999;
}

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

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

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

.radio-item label,
.checkbox-item label {
    font-size: 14px;
    color: #333333 !important;
    cursor: pointer;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 10px;
}

.country-code-display {
    padding: 10px 12px;
    background: #f5f5f5;
    border: 1px solid var(--amelia-gray-medium);
    border-radius: 4px;
    font-size: 14px;
    color: #333333;
    display: flex;
    align-items: center;
    min-width: 80px;
}

.country-code-select {
    width: 100px;
}

/* Footer Actions */
.ximeow-content-footer {
    padding: 20px 25px !important;
    border-top: 1px solid var(--amelia-gray-medium);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    background: var(--amelia-gray-light);
    min-height: auto !important;
}


/* Desktop only footer properties */
@media (min-width: 769px) {
    .ximeow-content-footer {
        flex-shrink: 0;
        position: relative; /* Changed from sticky to relative */
        /* Removed bottom: 0 and z-index */
    }
}

.btn-continue,
.btn-back,
.btn-finish {
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-continue:hover:not(:disabled) {
    background: var(--amelia-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
}

.btn-continue:disabled {
    background: var(--amelia-gray-medium);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-back {
    background: white;
    color: #333333;
    border: 1px solid var(--amelia-gray-medium);
}

.btn-back:hover {
    background: var(--amelia-gray-light);
}

/* Confirmation Page */
.confirmation-wrapper {
    text-align: center;
    padding: 40px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--amelia-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.confirmation-title {
    font-size: 24px;
    color: #333333 !important;
    margin-bottom: 10px;
    font-weight: 600;
}

.confirmation-subtitle {
    font-size: 16px;
    color: #333333 !important;
    margin-bottom: 30px;
}

.confirmation-details {
    background: var(--amelia-gray-light);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--amelia-gray-medium);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    color: #666666;
}

.detail-value {
    font-size: 14px;
    color: #333333;
    font-weight: 500;
}

/* Calendar Buttons */
.calendar-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.calendar-btn {
    padding: 10px 20px;
    border: 1px solid var(--amelia-gray-medium);
    border-radius: 4px;
    background: white;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-btn:hover {
    background: var(--amelia-gray-light);
    border-color: var(--amelia-primary);
}

/* Step Content */
.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--amelia-gray-medium);
    border-top-color: var(--amelia-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Dynamic font sizing based on container width */
@media (min-width: 769px) {
    .ximeow-amelia-container {
        font-size: calc(14px + 0.2vw); /* Base font scales with viewport */
    }
    
    .ximeow-sidebar-step {
        padding: calc(15px + 0.5vw) calc(20px + 0.5vw);
    }
    
    .step-title {
        font-size: calc(12px + 0.2vw);
    }
    
    .step-subtitle {
        font-size: calc(10px + 0.15vw);
    }
    
    .ximeow-content-header {
        padding: calc(20px + 1vw) calc(30px + 1vw) calc(15px + 0.5vw);
    }
    
    .ximeow-content-body {
        padding: calc(15px + 0.5vw) calc(20px + 1vw);
    }
    
    .calendar-day {
        height: calc(30px + 0.5vw);
        min-width: calc(28px + 0.5vw);
        font-size: calc(11px + 0.2vw);
    }
    
    .time-slot {
        padding: calc(10px + 0.3vw) calc(15px + 0.5vw);
        font-size: calc(12px + 0.2vw);
    }
}

/* Stack layout for tablets and smaller */
@media (max-width: 768px) {
    /* Stack layout - sidebar on top */
    .ximeow-amelia-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }
    
    .ximeow-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--amelia-gray-medium);
        height: auto !important;
        min-height: auto !important;
    }
    
    .ximeow-sidebar-steps {
        flex-direction: row !important;
        padding: 15px !important;
        justify-content: space-around;
        align-items: center;
    }
    
    .ximeow-sidebar-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 5px;
        margin: 0;
    }
    
    .step-icon {
        margin-right: 0 !important;
        margin-bottom: 5px;
        width: 40px;
        height: 40px;
    }
    
    .step-text {
        display: none; /* Hide text on very narrow screens */
    }
    
    .ximeow-sidebar-footer {
        display: none;
    }
    
    .ximeow-main-content {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Show step text on slightly wider screens */
@media (min-width: 600px) and (max-width: 768px) {
    .step-text {
        display: block !important;
    }
    
    .step-title {
        font-size: 12px;
    }
    
    .step-subtitle {
        font-size: 10px;
    }
}


/* Mobile Responsive - Merged with stack layout above */
/* Commented out to avoid conflicts
@media (max-width: 768px) {
    .ximeow-amelia-container {
        flex-direction: column;
    }
    
    .ximeow-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .ximeow-sidebar-steps {
        display: flex;
        padding: 15px;
    }
    
    .ximeow-sidebar-step {
        min-width: 150px;
        padding: 15px;
    }
    
    .ximeow-sidebar-footer {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .time-slots-grid {
        grid-template-columns: 1fr;
    }
    
    .ximeow-content-header,
    .ximeow-content-body,
    .ximeow-content-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Error States */
.error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #d32f2f;
}

/* Success Message */
.success-message {
    background: #E8F5E9;
    color: var(--amelia-green);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* Scrollbar Styling - Desktop only */
@media (min-width: 769px) {
    .ximeow-content-body::-webkit-scrollbar {
        width: 8px;
    }
    
    .ximeow-content-body::-webkit-scrollbar-track {
        background: var(--amelia-gray-light);
    }
    
    .ximeow-content-body::-webkit-scrollbar-thumb {
        background: var(--amelia-gray-medium);
        border-radius: 4px;
    }
    
    .ximeow-content-body::-webkit-scrollbar-thumb:hover {
        background: var(--amelia-gray-dark);
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .ximeow-amelia-wrapper {
        max-width: 100%;
        padding: 15px;
    }
    
    .ximeow-sidebar {
        width: 200px;
    }
    
    .ximeow-sidebar-step {
        font-size: 14px;
        padding: 15px 20px;
    }
}

/* ============================================
   MOBILE RESPONSIVE - NATURAL SCROLLING
   ============================================ */
@media (max-width: 768px) {
    /* No special touch handling - let page behave normally */
    /* REMOVED all touch-action and overflow manipulation */
    
    /* Don't interfere with page scrolling */
    /* Let WordPress/theme handle body scroll */
    
    /* Main wrapper - flows naturally with page */
    .ximeow-amelia-wrapper {
        padding: 0; /* Let container handle padding */
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Container - simple flex column */
    .ximeow-amelia-container {
        flex-direction: column;
        height: auto;
        box-shadow: none;
        /* No overflow or position rules */
    }
    
    /* Sidebar - horizontal on mobile */
    .ximeow-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .ximeow-sidebar-steps {
        display: flex;
        flex-direction: row;
        padding: 10px;
        justify-content: space-around;
    }
    
    .ximeow-sidebar-step {
        padding: 5px;
        text-align: center;
        min-width: auto;
    }
    
    .step-text {
        display: none; /* Icons only on mobile */
    }
    
    .ximeow-sidebar-footer {
        display: none;
    }
    
    /* Main content - normal block */
    .ximeow-main-content {
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }
    
    .ximeow-content-body {
        padding: 15px;
        height: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Calendar Controls - FORCE single row layout */
    .calendar-controls {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 3px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    /* Force all direct children to stay in row */
    .calendar-controls > * {
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    
    /* Month selector */
    #month-selector {
        width: 85px !important;
        min-width: 85px !important;
        max-width: 85px !important;
        padding: 6px 4px !important;
        font-size: 12px !important;
    }
    
    /* Year selector */
    #year-selector {
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        padding: 6px 4px !important;
        font-size: 12px !important;
        flex-grow: 1 !important; /* Takes remaining space */
        margin-right: auto !important; /* Pushes buttons to right */
    }
    
    /* Navigation buttons */
    .nav-btn,
    .nav-prev,
    .nav-next {
        width: 28px !important;
        min-width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        font-size: 16px !important;
        line-height: 28px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Calendar */
    .calendar-day {
        font-size: 12px;
        min-height: 35px;
    }
    
    /* Time slots */
    #time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-slot {
        font-size: 12px;
        padding: 10px;
    }
    
    /* Forms */
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    input, textarea, select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Calendar responsive */
    .calendar-wrapper {
        width: 100%;
        box-sizing: border-box;
    }
    
    .calendar-grid, .calendar-header {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Footer - simple flex container */
    .ximeow-content-footer {
        padding: 15px;
        background: white;
        border-top: 1px solid var(--amelia-gray-medium);
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-top: 20px;
        position: relative !important; /* Not fixed or sticky */
        z-index: 1 !important; /* Low z-index, not overlaying */
    }
    
    /* Button positioning */
    .ximeow-content-footer .btn-back {
        order: 1; /* Left side */
    }
    
    .ximeow-content-footer .btn-continue,
    .ximeow-content-footer .btn-finish {
        order: 2; /* Right side */
        margin-left: auto; /* Push to right */
    }
    
    /* Calendar buttons */
    .calendar-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}