/**
 * Music and Lights Public Styles
 */

/* Booking Form */
.ml-booking-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.ml-booking-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.ml-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.ml-col-half {
    flex: 0 0 calc(50% - 10px);
}

.ml-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.ml-form-group .required {
    color: #d63638;
}

.ml-form-group input[type="text"],
.ml-form-group input[type="email"],
.ml-form-group input[type="tel"],
.ml-form-group input[type="date"],
.ml-form-group input[type="time"],
.ml-form-group select,
.ml-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.ml-form-group input:focus,
.ml-form-group select:focus,
.ml-form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

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

/* Checkbox styling */
.ml-form-group input[type="checkbox"] {
    margin-right: 8px;
}

/* Submit button */
.ml-form-submit {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.ml-submit-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ml-submit-button:hover {
    background: #135e96;
}

.ml-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Form spinner */
.ml-form-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: ml-spin 1s linear infinite;
}

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

/* Form messages */
.ml-form-messages {
    margin-top: 20px;
}

.ml-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.ml-message.success {
    background: #d4f4dd;
    color: #00a32a;
    border: 1px solid #00a32a;
}

.ml-message.error {
    background: #fcf0f1;
    color: #d63638;
    border: 1px solid #d63638;
}

/* Venue Map */
.ml-venue-map {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
}

/* Availability Calendar */
.ml-availability-calendar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ml-calendar-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.ml-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ml-calendar-nav {
    display: flex;
    gap: 10px;
}

.ml-calendar-nav button {
    background: #f0f0f1;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.ml-calendar-nav button:hover {
    background: #e0e0e0;
}

.ml-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #ddd;
    border: 1px solid #ddd;
}

.ml-calendar-day {
    background: #fff;
    padding: 10px;
    min-height: 60px;
    position: relative;
}

.ml-calendar-day.available {
    background: #f0f9ff;
    cursor: pointer;
}

.ml-calendar-day.available:hover {
    background: #e0f2fe;
}

.ml-calendar-day.booked {
    background: #fee;
    color: #999;
}

.ml-calendar-day.past {
    background: #f5f5f5;
    color: #999;
}

.ml-calendar-day-number {
    font-weight: 600;
    margin-bottom: 5px;
}

/* DJ Profiles */
.ml-dj-profiles {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.ml-dj-profiles.ml-style-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ml-dj-profile {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.ml-dj-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.ml-dj-profile-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ml-dj-profile-content {
    padding: 20px;
}

.ml-dj-profile-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ml-dj-profile-specialties {
    color: #666;
    margin-bottom: 15px;
}

.ml-dj-profile-actions {
    display: flex;
    gap: 10px;
}

/* Packages */
.ml-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ml-package {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.ml-package:hover {
    border-color: #2271b1;
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.ml-package.featured {
    border-color: #2271b1;
    position: relative;
}

.ml-package.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2271b1;
    color: #fff;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ml-package-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ml-package-price {
    font-size: 36px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 20px;
}

.ml-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.ml-package-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ml-package-features li:last-child {
    border-bottom: none;
}

.ml-package-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.ml-package-button:hover {
    background: #135e96;
}

/* Testimonials */
.ml-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ml-testimonial {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    position: relative;
}

.ml-testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: #ddd;
    font-family: Georgia, serif;
}

.ml-testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ml-testimonial-author {
    font-weight: 600;
    color: #333;
}

.ml-testimonial-event {
    color: #666;
    font-size: 14px;
}

/* Notices */
.ml-notice {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.ml-notice-warning {
    background: #fcf9e8;
    color: #614700;
    border: 1px solid #dba617;
}

.ml-notice-info {
    background: #f0f6fc;
    color: #1e4078;
    border: 1px solid #2271b1;
}

/* Multi-step form */
.ml-form-step {
    display: none;
}

.ml-form-step.active {
    display: block;
}

.ml-form-step h3 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
}

.ml-form-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ml-col-third {
    flex: 0 0 calc(33.333% - 14px);
}

/* Time inputs */
.ml-time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ml-time-separator {
    font-weight: 500;
    color: #666;
}

.ml-duration-display {
    display: block;
    margin-top: 5px;
    color: #666;
}

/* DJ Selection */
.ml-dj-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ml-dj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ml-dj-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.ml-dj-card:hover {
    border-color: #2271b1;
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.ml-dj-card.selected {
    border-color: #2271b1;
    background: #f0f8ff;
}

.ml-dj-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
}

.ml-dj-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.ml-dj-image-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #999;
}

.ml-dj-info h4 {
    margin: 10px 0;
    font-size: 20px;
}

.ml-featured-badge {
    display: inline-block;
    background: #f0ad4e;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ml-dj-rating {
    margin: 10px 0;
}

.ml-dj-rating .dashicons {
    color: #f0ad4e;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.ml-dj-rate {
    font-size: 18px;
    font-weight: 600;
    color: #2271b1;
    margin: 10px 0;
}

.ml-dj-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
}

.ml-dj-availability {
    margin: 15px 0;
    font-size: 14px;
}

.ml-availability-status.available {
    color: #00a32a;
}

.ml-availability-status.unavailable {
    color: #d63638;
}

.ml-availability-status.checking {
    color: #666;
}

.ml-select-dj {
    width: 100%;
}

.ml-no-preference {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Packages and Add-ons */
.ml-packages-container {
    margin-bottom: 30px;
}

.ml-package-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.ml-package-option:hover {
    border-color: #2271b1;
}

.ml-package-option.selected {
    border-color: #2271b1;
    background: #f0f8ff;
}

.ml-package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ml-package-name {
    font-size: 18px;
    font-weight: 600;
}

.ml-package-price {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
}

.ml-package-description {
    color: #666;
    margin-bottom: 10px;
}

.ml-package-includes {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.ml-package-includes li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.ml-package-includes li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00a32a;
    font-weight: bold;
}

/* Add-ons */
.ml-addons-container h4 {
    margin-bottom: 15px;
}

.ml-addon-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.ml-addon-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s;
}

.ml-addon-item:hover {
    border-color: #2271b1;
}

.ml-addon-item input[type="checkbox"] {
    margin-right: 10px;
}

.ml-addon-label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ml-addon-price {
    font-weight: 600;
    color: #2271b1;
}

/* Pricing Summary */
.ml-pricing-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.ml-pricing-summary h4 {
    margin-bottom: 15px;
}

.ml-pricing-summary table {
    width: 100%;
}

.ml-pricing-summary td {
    padding: 8px 0;
}

.ml-pricing-summary .ml-price {
    text-align: right;
}

.ml-pricing-summary .ml-total-price td {
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-size: 18px;
}

/* Booking Summary */
.ml-booking-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ml-booking-summary h4 {
    margin-bottom: 15px;
}

.ml-summary-content {
    display: grid;
    gap: 10px;
}

.ml-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.ml-summary-label {
    font-weight: 600;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .ml-form-row {
        flex-direction: column;
    }
    
    .ml-col-half,
    .ml-col-third {
        flex: 1;
    }
    
    .ml-booking-form {
        padding: 20px;
    }
    
    .ml-packages {
        grid-template-columns: 1fr;
    }
    
    .ml-dj-grid {
        grid-template-columns: 1fr;
    }
    
    .ml-addon-list {
        grid-template-columns: 1fr;
    }
}

/* Placeholder styling */
.ml-profiles-placeholder,
.ml-packages-placeholder,
.ml-testimonials-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    color: #666;
}