/* Marquee Reservations Plugin Styles - Exclusive to this plugin */

.marquee-reservations-h1 {
    color: #FC2669 !important;
    text-align: left;
    margin-bottom: 20px !important;
    font-family: inherit;
}

.marquee-reservations-h2 {
    color: #000000 !important;
    text-align: left;
    margin-bottom: 15px !important;
    font-family: inherit;
}

/* Wizard Container */
.marquee-wizard {
    max-width: 1165px;
    margin: 0 auto;
    padding-bottom: 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Ensure no display or positioning issues */
    display: block !important;
    position: relative !important;
    min-height: 100vh !important; /* Ensure enough height for loading overlay */
}

/* Step Navigation */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.wizard-steps .step {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
}

.wizard-steps .step::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #dee2e6;
    border-radius: 12px;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    z-index: -1;
}

.wizard-steps .step.active {
    background: #007cba;
    color: white;
}

.wizard-steps .step.active::before {
    background: #007cba;
}

.wizard-steps .step.completed {
    background: #28a745;
    color: white;
}

.wizard-steps .step.completed::before {
    background: #28a745;
}

/* Stripe Elements Styles */
#card-element {
    cursor: text;
    border: 2px solid #007cba;
    border-radius: 4px;
    padding: 12px;
    background: white;
    transition: border-color 0.3s ease;
    position: relative;
    min-height: 40px;
}

#card-element-fallback {
    color: #666;
    font-style: italic;
    padding: 8px 0;
    cursor: text;
    user-select: none;
}

.stripe-card-element {
    position: relative;
}

#card-element:hover {
    border-color: #007cba;
}

#card-element.focused {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

#card-element.StripeElement--invalid {
    border-color: #dc3232;
}

#card-element.StripeElement--complete {
    border-color: #46b450;
}

#card-errors {
    color: #dc3232;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

/* Form Styles */
.marquee-form-group {
    margin-bottom: 1.5rem;
}

.marquee-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.marquee-form-group input,
.marquee-form-group select,
.marquee-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.marquee-form-group input:focus,
.marquee-form-group select:focus,
.marquee-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Placeholder styling */
.marquee-form-group input::placeholder,
.marquee-form-group select::placeholder,
.marquee-form-group textarea::placeholder {
    color: #D7DBE0 !important;
}

.marquee-form-group input::-webkit-input-placeholder,
.marquee-form-group select::-webkit-input-placeholder,
.marquee-form-group textarea::-webkit-input-placeholder {
    color: #D7DBE0 !important;
}

.marquee-form-group input::-moz-placeholder,
.marquee-form-group select::-moz-placeholder,
.marquee-form-group textarea::-moz-placeholder {
    color: #D7DBE0 !important;
}

.marquee-form-group input:-ms-input-placeholder,
.marquee-form-group select:-ms-input-placeholder,
.marquee-form-group textarea:-ms-input-placeholder {
    color: #D7DBE0 !important;
}

/* Summary Message Styling */
#summary-message {
    font-size: 18px;
    font-weight: 400;
}

/* Summary Message Link Styling */
#summary-message .message-edit-link {
    color: #FF447C !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}

#summary-message .message-edit-link:hover {
    color: #e03d6b !important;
    text-decoration: underline !important;
}

/* Newsletter Link Styling */
.newsletter-upsell a {
    color: #FF447C !important;
    text-decoration: underline !important;
}

.newsletter-upsell a:hover {
    color: #e63e6f !important;
    text-decoration: underline !important;
}

/* Marquee Hero Link Styling */
.marquee-hero a {
    color: #FF447C !important;
    text-decoration: underline !important;
}

.marquee-hero a:hover {
    color: #e63e6f !important;
    text-decoration: underline !important;
}

/* Marquee Section Paragraph Styling */
#marquee-reservations p {
    font-size: 18px;
}

/* Message Builder */
/* Container now handles the layout that message-builder used to handle */
.marquee-wizard .container {
    display: flex !important;
    flex-direction: row !important;
    gap: 50px !important; /* Increased gap for center spacing */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 1.5rem; /* Reduced from 2rem */
    border-radius: 8px;
    /* Additional debugging styles */
    min-height: 400px;
}

/* Ensure no other rules interfere */
.marquee-wizard .container .input-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    justify-content: center !important;
    flex: 0 0 30% !important; /* Take 30% of space */
    min-width: 0; /* Allow flex item to shrink */
}

.marquee-wizard .container .marquee-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 70% !important; /* Take 70% of space */
    min-width: 0; /* Allow flex item to shrink */
}

.marquee-line-container {
    margin-bottom: 1rem;
}

.marquee-line {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.char-count {
    text-align: right;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.char-count.over-limit {
    color: #dc3545;
}

/* Message Builder Layout */

.input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

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

.input-group label {
    color: #6c757d;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.marquee-input {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.marquee-input:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

/* Enhanced Theater-Style Marquee */
.marquee-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0; /* Removed margin to bring LYNWOOD closer */
}

.theater-title {
    font-family: 'Bebas Neue', 'Anton', 'Oswald', 'Roboto Condensed', 'Arial Black', Arial, sans-serif;
    font-size: 80px;
    font-weight: 400;
    color: #8B5CF6;
    text-align: center;
    margin-bottom: -40px !important;
    margin-top: -20px;
    text-transform: uppercase;
    letter-spacing: 10px;
    text-shadow:
        0 0 8px rgba(139, 92, 246, 0.5),
        0 0 16px rgba(139, 92, 246, 0.3),
        0 0 24px rgba(139, 92, 246, 0.2),
        2px 2px 0px rgba(0, 0, 0, 0.8),
        4px 4px 6px rgba(0, 0, 0, 0.6);
    position: relative;
    background: linear-gradient(45deg, #8B5CF6, #A78BFA, #8B5CF6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
    width: 100%;
    max-width: 500px;
    z-index: 10; /* Ensure it overlays on top of marquee-container */
}

.theater-title::before {
    content: 'LYNWOOD';
    position: absolute;
    top: 0;
    left: 0;
    color: #C4B5FD;
    text-shadow: none;
    z-index: -1;
    transform: translate(1px, 1px);
}

.marquee-container {
    background: linear-gradient(145deg, #34495e, #2c3e50);
    padding: 3px;
    border-radius: 15px;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(52, 152, 219, 0.3);
    border: 3px solid #3498db;
    position: relative;
    width: 100%;
    max-width: 500px;
    z-index: 1; /* Lower than theater-title so it can overlay */
}

.marquee-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3498db, #e74c3c, #f39c12, #3498db);
    border-radius: 17px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.marquee-display {
    background: linear-gradient(to bottom, #ecf0f1, #bdc3c7);
    border-radius: 10px;
    padding: 20px;
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.2),
        0 2px 5px rgba(255, 255, 255, 0.1);
    border: 2px solid #95a5a6;
}

.marquee-row {
    background: linear-gradient(to bottom, #ecf0f1, #d5dbdb);
    margin: 8px 0;
    padding: 15px 20px;
    text-align: center;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #7f8c8d;
    border-radius: 5px;
    box-shadow:
        inset 0 1px 3px rgba(255, 255, 255, 0.8),
        inset 0 -1px 3px rgba(0, 0, 0, 0.2),
        0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* Prevent text wrapping in the row itself */
}

.marquee-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.marquee-row.highlighted {
    border: 3px solid #FFD700;
    box-shadow:
        0 0 15px rgba(255, 215, 0, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.8),
        inset 0 -1px 3px rgba(0, 0, 0, 0.2);
}

.marquee-text {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide any overflow */
    text-overflow: ellipsis; /* Show ellipsis if text is too long */
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .marquee-wizard {
        padding-left: 5px;
        padding-right: 5px;
    }

    .marquee-wizard .container {
        flex-direction: column !important;
        gap: 30px !important;
        padding: 1.5rem !important; /* Match desktop padding */
        background: #f8f9fa;
        border-radius: 8px;
        margin: 2rem 0;
    }

    .wizard-loading {
        padding: 1.5rem !important; /* Slightly smaller padding on mobile */
        font-size: 1.1rem !important; /* Slightly smaller font on mobile */
        min-width: 200px !important; /* Ensure minimum width */
    }

    .marquee-wizard .container .input-section {
        flex: 0 0 100% !important; /* Take full width on mobile */
    }

    .marquee-wizard .container .marquee-section {
        flex: 0 0 100% !important; /* Take full width on mobile */
        margin: 1rem 0;
    }

    .theater-title {
        font-size: 60px;
        letter-spacing: 6px;
        margin-bottom: -30px !important;
        margin-top: -10px;
    }

    .marquee-container {
        padding: 20px;
        max-width: 100%;
    }

    .marquee-row {
        font-size: 20px;
        padding: 12px 15px;
        min-height: 50px;
        white-space: nowrap; /* Maintain no-wrap on mobile too */
    }
}

/* Hide marquee preview on step 3 */
.marquee-preview {
    display: none !important;
}

/* Button Styles */
.marquee-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.marquee-btn-primary {
    background: #007cba;
    color: white;
}

.marquee-btn-primary:hover {
    background: #005a87;
    color: white;
}

.marquee-btn-secondary {
    background: #6c757d;
    color: white;
}

.marquee-btn-secondary:hover {
    background: #545b62;
    color: white;
}

.marquee-btn.disabled,
.marquee-btn:disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Wizard Step Links */
.wizard-step-link {
    color: #007cba;
    text-decoration: underline;
    cursor: pointer;
}

.wizard-step-link:hover {
    color: #005a87;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #007cba;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.form-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Success States */
.form-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

/* Wizard Paragraph Styling */
.marquee-wizard p {
    font-family: 'GlacialIndifference', 'Glacial Indifference', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 22px;
    color: #242429;
}

/* Wizard Link Styling */
.marquee-wizard a {
    color: #FF447C !important;
    text-decoration: underline !important;
}

.marquee-wizard a:hover {
    color: #e63e6f !important;
    text-decoration: underline !important;
}

/* Wizard List Item Styling */
.marquee-wizard li {
    line-height: inherit;
}

ol > li, ul > li {
    font-family: 'GlacialIndifference', 'Glacial Indifference', sans-serif;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .wizard-steps {
        flex-direction: column;
    }

    .wizard-steps .step {
        margin: 0.25rem 0;
        /* Keep chevron shape on mobile for consistent design */
    }

    .marquee-preview .line {
        font-size: 1.2rem;
    }
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 300px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.calendar-title {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.calendar-nav {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}

.calendar-nav:hover {
    background: #005a87;
}

.calendar-nav:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.calendar-grid {
    display: flex;
    gap: 2rem;
}

.month-container {
    flex: 1;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.month-grid .day-header {
    text-align: center;
    padding: 0.5rem;
    font-weight: bold;
    color: #6c757d;
    font-size: 0.875rem;
}

.month-grid .day {
    text-align: center;
    padding: 0.75rem 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.month-grid .day:hover:not(.disabled):not(.reserved) {
    background: #e3f2fd;
    border-color: #007cba;
}

.month-grid .day.available {
    background: white;
}

.month-grid .day.reserved {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    position: relative;
}

.month-grid .day.reserved::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #dc3545;
    font-size: 18px;
    font-weight: bold;
    z-index: 1;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.month-grid .day.selected {
    background: #007cba;
    color: white;
    font-weight: bold;
}

.month-grid .day.disabled {
    color: #dee2e6;
    cursor: not-allowed;
}

.month-grid .day.other-month {
    color: #adb5bd;
    background: #f8f9fa;
}

.selected-date-display {
    margin-top: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    color: #000000;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .calendar-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .calendar-title {
        gap: 1rem;
    }
}

/* Wizard Loading State */
.wizard-loading {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(0, 123, 186, 0.95) !important;
    color: white !important;
    padding: 2rem !important; /* Even padding all around */
    border-radius: 12px !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    text-align: center !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    animation: loadingPulse 2s ease-in-out infinite !important;
}

/* Calendar Loading Modal */
.calendar-loading-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.loading-content {
    text-align: center;
    color: #007cba;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-content p {
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
}

@keyframes loadingPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

/* Payment Element Styles */
#stripe-payment-element {
    margin: 20px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.payment-loading::before {
    content: "⏳ ";
    margin-right: 8px;
}

.error-message {
    background: #ffe6e6;
    color: #d63031;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #d63031;
    margin: 20px 0;
    font-size: 14px;
}

#form-error {
    display: none;
    background: #ffe6e6;
    color: #d63031;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #d63031;
    margin: 15px 0;
    font-size: 14px;
}

#form-error.show {
    display: block;
}
