/**
 * Loop Forms - Book Now Modal Styles
 * 
 * Structural styling for calendar and booking functionality
 */


/* New status message component classes */
.book-now .status-icon       /* Icon container */
.book-now .status-pre-text   /* Only in success messages */
.book-now .status-notice     /* Main notice/headline */
.book-now .status-content    /* Content areas */

/* Status type specific colors (kept for future use, but overridden below) */
.book-now .status-message.status-success .status-icon { color: #259F46; }
.book-now .status-message.status-warning .status-icon { color: #F59E0B; }
.book-now .status-message.status-info .status-icon    { color: #3B82F6; }
.book-now .status-message.status-error .status-icon   { color: #EE2B2B; }


 .book-now .text-large {
    font-size: 1.5rem;
 }

.book-now .text-red {
    color: #EE2B2B;
}

/* Essential visibility styles */
#loop-forms-modal .lf-container.book-now {
    background: white;
    color: #282828;
}

#loop-forms-modal .lf-container.book-now .lf-title,
#loop-forms-modal .lf-container.book-now .lf-intro,
#loop-forms-modal .lf-container.book-now .note {
    color: #282828;
}

/* Hide intro text on screen 2 and success screen */
#loop-forms-modal .lf-container.book-now[data-current-screen="2"] .lf-intro,
#loop-forms-modal .lf-container.book-now[data-current-screen="success"] .lf-intro,
#loop-forms-modal .lf-container.book-now .screen-2 .lf-intro,
#loop-forms-modal .lf-container.book-now .screen-success .lf-intro {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Additional fallback to hide intro text more broadly when not on screen 1 */
#loop-forms-modal .lf-container.book-now:not([data-current-screen="1"]) .lf-intro {
    display: none !important;
}

#loop-forms-modal .lf-container.book-now a {
    color: #282828;
    text-decoration: underline;
}

/* Status Message Structure */
#loop-forms-modal .lf-container.book-now .status-message {
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 90%;
    margin: auto;
    padding: 2rem 1rem 1rem 1rem;
}

#loop-forms-modal .lf-container.book-now .status-message .status-icon {
    margin-bottom: 15px;
    color: #EE2B2B;
}

#loop-forms-modal .lf-container.book-now .status-message .status-icon svg {
    display: block;
    margin: 0 auto;
}

#loop-forms-modal .lf-container.book-now .status-message .status-pre-text {
    margin-bottom: 10px;
}

#loop-forms-modal .lf-container.book-now .status-message .status-notice {
    margin-bottom: 15px;
}

#loop-forms-modal .lf-container.book-now .status-message .status-content {
    margin-bottom: 10px;
}

#loop-forms-modal .lf-container.book-now .status-message .status-content:last-of-type {
    margin-bottom: 0;
}

#loop-forms-modal .lf-container.book-now .status-message p.space-top {
    margin-top: 20px;
}

/* Status Type Specific Styling */
#loop-forms-modal .lf-container.book-now .status-message.status-success .status-icon {
    color: #282828;
}

#loop-forms-modal .lf-container.book-now .status-message.status-warning .status-icon,
#loop-forms-modal .lf-container.book-now .status-message.status-info .status-icon,
#loop-forms-modal .lf-container.book-now .status-message.status-error .status-icon {
    color: #EE2B2B;
}

/* Status notice styling - red text for success message */
#loop-forms-modal .lf-container.book-now .status-message.status-success .status-notice {
    color: #EE2B2B;
}

#loop-forms-modal .lf-container.book-now .status-message.status-success .status-notice p {
    font-size: 1.5rem;
}

/* Hide labels for form fields but keep for radio buttons */
#loop-forms-modal .lf-container.book-now label.hidden-label {
    font-size: 0 !important;
    color: transparent !important;
    height: 0 !important;
    margin-bottom: 5px !important;
    overflow: hidden !important;
}

/* Name fields on same row */
#loop-forms-modal .lf-container.book-now .name-row {
    display: flex;
    gap: 15px;
}

#loop-forms-modal .lf-container.book-now .name-row label {
    flex: 1;
    margin-bottom: 0 !important;
}

/* Full width fields */
#loop-forms-modal .lf-container.book-now .full-width {
    width: 100%;
}

/* Questions section structure */
#loop-forms-modal .lf-container.book-now .question-wrapper {
    margin-bottom: 10px;
}

#loop-forms-modal .lf-container.book-now .question-text {
    margin: 0 0 8px 0;
}

#loop-forms-modal .lf-container.book-now .boolean-question {
    display: block;
    gap: 20px;
}

#loop-forms-modal .lf-container.book-now .radio-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0 !important;
    margin-right: 20px;
}

#loop-forms-modal .lf-container.book-now .radio-option input[type="radio"] {
    margin: 0 !important;
}

/* Remove asterisks from radio option labels */
#loop-forms-modal .lf-container.book-now .radio-option::after {
    content: none !important;
}

/* Modal header structure */
#loop-forms-modal .lf-container.book-now .lf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#loop-forms-modal .lf-container.book-now .lf-close {
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 8px;
}

#loop-forms-modal .lf-container.book-now .lf-close svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Week navigation structure */
#loop-forms-modal .lf-container.book-now .week-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 8px;
}
#loop-forms-modal .lf-container.book-now .nav-arrow {
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 4px 8px;
}
#loop-forms-modal .lf-container.book-now .nav-arrow:disabled {
    cursor: not-allowed;
}
#loop-forms-modal .lf-container.book-now #week-range-display { 
    flex-grow: 1; 
    text-align: center; 
}
#loop-forms-modal .lf-container.book-now #this-week-btn {
    background: none;
    border: 1px solid #282828;
    color: #282828;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}
#loop-forms-modal .lf-container.book-now #this-week-btn:hover:not(:disabled) {
    background: #282828;
    color: white;
}
#loop-forms-modal .lf-container.book-now #this-week-btn:disabled {
    background: none;
    border-color: #A3A3A3;
    color: #A3A3A3;
    cursor: not-allowed;
}
/* Calendar grid structure */
#loop-forms-modal .lf-container.book-now .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px; 
    text-align: center;
}
#loop-forms-modal .lf-container.book-now .day-button {
    padding: 8px 2px; 
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}
#loop-forms-modal .lf-container.book-now .day-button:disabled,
#loop-forms-modal .lf-container.book-now .day-button.unavailable {
    background: #F4F4F4;
    color: #A3A3A3;
    border-color: #A3A3A3;
    cursor: not-allowed;
}
#loop-forms-modal .lf-container.book-now .day-button:disabled *,
#loop-forms-modal .lf-container.book-now .day-button.unavailable * {
    color: #A3A3A3 !important;
}
#loop-forms-modal .lf-container.book-now .day-button:disabled strong,
#loop-forms-modal .lf-container.book-now .day-button.unavailable strong {
    color: #A3A3A3 !important;
}
#loop-forms-modal .lf-container.book-now .day-button.available {
    border-color: #259F46;
    color: #259F46;
}
#loop-forms-modal .lf-container.book-now .day-button.available:hover {
    background: #259F46;
    color: white;
}
#loop-forms-modal .lf-container.book-now .day-button.selected {
    border-color: #7375E7;
    background: #7375E7;
    color: white;
}
#loop-forms-modal .lf-container.book-now .day-button.selected * {
    color: white;
}
/* Time slots structure */
#loop-forms-modal .lf-container.book-now .times-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
#loop-forms-modal .lf-container.book-now .time-slot {
    padding: 10px 15px;
    border: 2px solid #259F46;
    border-radius: 4px;
    background: white;
    color: #259F46;
    cursor: pointer;
}
#loop-forms-modal .lf-container.book-now .time-slot.unavailable {
    border-color: #A3A3A3;
    color: #A3A3A3;
    background: #F4F4F4;
    cursor: not-allowed;
}
#loop-forms-modal .lf-container.book-now .time-slot:not(.unavailable):hover {
    background: #259F46;
    color: white;
}
#loop-forms-modal .lf-container.book-now .time-slot.selected {
    border-color: #7375E7;
    background: #7375E7;
    color: white;
}
/* Legend structure */
#loop-forms-modal .lf-container.book-now .availability-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 10px;
}
#loop-forms-modal .lf-container.book-now .legend-item { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}
#loop-forms-modal .lf-container.book-now .legend-dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    border: 1px solid;
}
#loop-forms-modal .lf-container.book-now .legend-dot.available { 
    background: #259F46; 
    border-color: #259F46; 
}
#loop-forms-modal .lf-container.book-now .legend-dot.unavailable { 
    background: #F4F4F4; 
    border-color: #A3A3A3; 
}
#loop-forms-modal .lf-container.book-now .legend-dot.selected { 
    background: #7375E7; 
    border-color: #7375E7; 
}

/* Button structure */
#loop-forms-modal .lf-container.book-now .next-step-button,
#loop-forms-modal .lf-container.book-now .submit-button {
    width: 100% !important;
}
#loop-forms-modal .lf-container.book-now .next-step-button:disabled,
#loop-forms-modal .lf-container.book-now .submit-button:disabled {
    cursor: not-allowed !important;
}

/* Hide back button */
#loop-forms-modal .lf-container.book-now #prev-step-btn {
    display: none !important;
}

/* Form navigation controls */
#loop-forms-modal .lf-container.book-now .form-navigation-controls {
    display: flex;
    justify-content: flex-end !important;
}

/* Loading Spinner Structure */
#loop-forms-modal .lf-container.book-now .loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

#loop-forms-modal .lf-container.book-now .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #282828;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Screen Structure */
#loop-forms-modal .lf-container.book-now .contact-section {
    text-align: center;
}

#loop-forms-modal .lf-container.book-now .contact-phone {
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
}

#loop-forms-modal .lf-container.book-now .company-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 8px;
}

#loop-forms-modal .lf-container.book-now .company-icon {
    flex-shrink: 0;
}

#loop-forms-modal .lf-container.book-now .placeholder-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loop-forms-modal .lf-container.book-now .company-address {
    flex: 1;
    text-align: left;
}

/* Responsive Structure */
@media (max-width: 768px) {
    #loop-forms-modal .lf-container.book-now .times-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    #loop-forms-modal .lf-container.book-now .name-row {
        flex-direction: column;
        gap: 0;
    }
    
    #loop-forms-modal .lf-container.book-now .name-row label {
        margin-bottom: 15px !important;
    }
    
    #loop-forms-modal .lf-container.book-now .company-info {
        flex-direction: column;
        text-align: center;
    }
    
    #loop-forms-modal .lf-container.book-now .company-address {
        text-align: center;
    }
}

/* Form Grid Layout Structure */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field {
    position: relative;
    width: 100%;
}

/* Ensure first two fields (firstName, lastName) stay on same row */
.form-field:nth-child(1),
.form-field:nth-child(2) {
    grid-column: auto; /* Let them occupy their natural grid positions */
}

/* Input Structure */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus {
    border-color: #7375E7;
    outline: none;
}

/* Custom placeholder structure (JavaScript asterisks) */
.book-now .placeholder-wrapper {
    position: relative !important;
    width: 100%;
}

.book-now .placeholder-wrapper input {
    width: 100%;
}

.book-now .custom-placeholder {
    position: absolute;
    left: 20px;
    top: 55%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.2s ease;
    line-height: 1;
    user-select: none;
}

/* Ensure no native placeholder interference */
.book-now .placeholder-wrapper input::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

.book-now .placeholder-wrapper input:focus::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

/* Make sure input has proper padding to accommodate custom placeholder */
.book-now .placeholder-wrapper input[type="text"],
.book-now .placeholder-wrapper input[type="email"],
.book-now .placeholder-wrapper input[type="tel"] {
    padding: 16px 20px;
    box-sizing: border-box;
}

/* Questions Section Structure */
.book-now .questions-section .question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.book-now .questions-section .question-text {
    flex: 1;
    margin-right: 20px;
}

#loop-forms-modal .lf-container.book-now .questions-section .radio-group {
    display: block;
    align-items: center;
    gap: 24px;
}

#loop-forms-modal .lf-container.book-now .form-content .questions-section .radio-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
}

.book-now .questions-section input[type="radio"] {
    margin: 0;
}

#loop-forms-modal .lf-container.book-now .questions-section .radio-label {
    cursor: pointer;
    user-select: none;
    color: #282828 !important;
    font-size: 16px !important;
    margin-bottom: 0 !important;
}

/* Checkbox Field Structure */
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-field input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-field .checkbox-label {
    flex: 1;
    cursor: pointer;
}

#loop-forms-modal .lf-container.book-now .form-content .boolean-question {
    display: block;
    flex-direction: column;
    gap: 12px;
}

#loop-forms-modal .lf-container.book-now .form-content .boolean-question .radio-options {
    display: block;
    line-height: 1.5;
}

#loop-forms-modal .lf-container.book-now .form-content .boolean-question .radio-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    margin-right: 20px;
}

/* Mobile Responsive Structure */
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .questions-section .question-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .questions-section .question-text {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .questions-section .radio-group {
        align-self: flex-start;
    }
    
    .boolean-question .radio-options {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

/* Phone Button Structure */
#loop-forms-modal .lf-container.book-now .contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #282828;
    border-radius: 4px;
    background: white;
    color: #282828;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

#loop-forms-modal .lf-container.book-now .contact-phone:hover {
    background: #282828;
    color: white;
}

#loop-forms-modal .lf-container.book-now .contact-phone svg {
    flex-shrink: 0;
}

#loop-forms-modal .lf-container.book-now .contact-phone:hover svg {
    stroke: white;
}