/* Event Booking Public Styles */
.eb-booking-form-wrapper {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.eb-booking-header-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 5px;
}

.eb-form-group {
    margin-bottom: 15px;
}

.eb-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.eb-form-group input[type="text"],
.eb-form-group input[type="email"],
.eb-form-group input[type="tel"],
.eb-form-group input[type="number"],
.eb-form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.eb-form-step {
    padding: 15px;
    border-top: 1px dashed #ccc;
    margin-top: 15px;
}

#eb-step-1 {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

#eb-event-details-wrapper .eb-event-image {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.eb-price-options-wrapper {
    margin-top: 20px;
}

.eb-price-option {
    margin-bottom: 10px;
}

.eb-price-option label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.eb-price-option input[type="radio"] {
    margin-right: 15px;
}

.eb-price-option input[type="radio"]:checked + label {
    border-color: #0073aa;
    background-color: #f0f8ff;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}

.eb-price-option .eb-option-name {
    font-weight: bold;
    flex-grow: 1;
}

.eb-price-option .eb-option-price {
    font-weight: bold;
    color: #0073aa;
    margin-left: 10px;
}

.eb-price-option .eb-option-description {
    flex-basis: 100%;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    padding-left: 30px; /* Align with text */
}

.eb-button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.eb-button:hover {
    background-color: #005a87;
}

.eb-loader {
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.eb-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.eb-message.eb-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.eb-message.eb-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.eb-message.eb-notice {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Old styles below are no longer used by the new form structure */
/* Layout Variations */
.eb-booking-form-container.eb-layout-centered {
    max-width: 600px;
    text-align: center;
}

.eb-booking-form-container.eb-layout-sidebar {
    max-width: 1200px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.eb-booking-form-container.eb-layout-sidebar .eb-booking-header {
    flex: 0 0 300px;
    text-align: left;
}

.eb-booking-form-container.eb-layout-sidebar .eb-booking-content {
    flex: 1;
}

.eb-booking-form-container.eb-layout-full-width {
    max-width: 100%;
    margin: 0;
}

/* Form Style Variations */
.eb-booking-form-container.eb-style-classic {
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 0;
    box-shadow: none;
}

.eb-booking-form-container.eb-style-minimal {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px;
}

.eb-booking-form-container.eb-style-bordered {
    border: 3px solid #007cba;
    box-shadow: 0 0 20px rgba(0,124,186,0.1);
}

.eb-booking-form-container.eb-style-bordered .eb-form-section {
    border: 1px solid #ddd;
    background: #fff;
}

.eb-booking-image {
    text-align: center;
    margin-bottom: 20px;
}

.eb-booking-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.eb-booking-header {
    text-align: center;
    margin-bottom: 30px;
}

.eb-booking-title {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.eb-booking-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.eb-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.eb-form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.eb-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.eb-form-group {
    flex: 1;
}

.eb-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.eb-form-group input,
.eb-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

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

.required {
    color: #ff0000;
}

.eb-instructions {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.eb-time-slots-container {
    margin-top: 20px;
}

.eb-time-slots-container label {
    font-weight: bold;
    color: #333;
}

.eb-slot-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.eb-time-slots {
    margin-top: 10px;
}

.eb-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.eb-slot-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.eb-slot-time {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.eb-slot-availability {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.eb-slot-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.eb-slot-controls label {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 0;
}

.eb-slot-quantity {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.eb-time-slot {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.eb-time-slot input[type="checkbox"] {
    display: none;
}

.eb-slot-time {
    display: inline-block;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 80px;
}

.eb-time-slot:hover .eb-slot-time {
    border-color: #007cba;
    background: #f0f8ff;
}

.eb-time-slot input[type="checkbox"]:checked + .eb-slot-time {
    border-color: #007cba;
    background: #007cba;
    color: #fff;
}

.eb-booking-summary {
    background: #e8f4f8;
    border: 1px solid #b8d4dc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.eb-booking-summary h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

.eb-summary-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eb-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.eb-summary-total {
    border-top: 2px solid #007cba;
    padding-top: 10px;
    font-weight: bold;
    font-size: 16px;
}

.eb-summary-label {
    color: #333;
}

.eb-summary-value {
    color: #007cba;
    font-weight: bold;
}

.eb-form-actions {
    text-align: center;
    margin-top: 30px;
}

.eb-submit-btn {
    background: #007cba;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.eb-submit-btn:hover:not(:disabled) {
    background: #005a8b;
}

.eb-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.eb-form-messages {
    margin-top: 20px;
}

.eb-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.eb-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.eb-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Responsive styles */
@media (max-width: 768px) {
    .eb-booking-form-container {
        padding: 15px;
    }
    
    .eb-booking-form-container.eb-layout-sidebar {
        flex-direction: column;
        gap: 20px;
    }
    
    .eb-booking-form-container.eb-layout-sidebar .eb-booking-header {
        flex: none;
        text-align: center;
    }
    
    .eb-form-row {
        flex-direction: column;
    }
    
    .eb-booking-title {
        font-size: 24px;
    }
    
    .eb-slots-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .eb-slot-item {
        padding: 10px;
    }
    
    .eb-slot-controls {
        flex-direction: column;
        gap: 5px;
    }
    
    .eb-slot-quantity {
        width: 80px;
    }
    
    .eb-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .eb-submit-btn {
        width: 100%;
        padding: 12px;
    }
}