/**
 * Styles for Single Page Booking Form
 */

/* Base styles */
body {
    background-color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.booking-container {
    max-width: 800px;
    width: 800px; /* Fixed width */
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.form-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: normal;
}

/* Section styles */
.booking-section {
    width: 100%;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.booking-section.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.booking-section.active {
    border-color: #F9A392;
    box-shadow: 0 0 5px rgba(249, 163, 146, 0.5);
}

.section-title {
    margin-top: 0;
    color: #333;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: normal;
}

.section-title .step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #F9A392;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
}

/* Button styles */
.button, .service-button, .artist-button {
    padding: 12px 20px;
    background-color: #F9A392;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: normal;
    font-size: 1rem;
}

.button:hover, .service-button:hover, .artist-button:hover {
    background-color: #f56649;
}

.button.selected, .service-button.selected, .artist-button.selected {
    background-color: #f56649;
    box-shadow: 0 0 0 2px #f56649, 0 0 0 4px rgba(245, 102, 73, 0.3);
    font-weight: bold;
}

/* Service selection */
.service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
}

.service-button {
    flex: 1 0 calc(33.333% - 10px);
    min-width: 150px;
    box-sizing: border-box;
}

/* Artist selection */
.artist-selection-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
}

.artist-selection-item {
    flex: 1 0 calc(33.333% - 15px);
    min-width: 150px;
    max-width: calc(33.333% - 15px);
    box-sizing: border-box;
}

.artist-button {
    flex: 1 0 calc(33.333% - 10px);
    min-width: 150px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 15px;
    text-align: center;
}

.artist-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-image.artist-placeholder {
    background-color: #e0e0e0;
}

.artist-image.artist-placeholder i {
    font-size: 50px;
    color: #999;
}

.artist-name {
    margin-top: 8px;
    font-weight: 500;
}

/* Date selection */
.date-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
}

.date-btn {
    flex: 1 0 calc(33.333% - 10px);
    min-width: 150px;
    box-sizing: border-box;
    padding: 12px 20px;
    background-color: #F9A392;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: normal;
    font-size: 1rem;
}

.date-btn:hover {
    background-color: #f56649;
}

.date-btn.selected {
    background-color: #f56649;
    box-shadow: 0 0 0 2px #f56649, 0 0 0 4px rgba(245, 102, 73, 0.3);
    font-weight: bold;
}

/* Time selection */
#time-selection {
    margin-top: 20px;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
}

.time-slot {
    flex: 1 0 calc(25% - 10px);
    min-width: 100px;
    box-sizing: border-box;
    padding: 12px 20px;
    background-color: #F9A392;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: normal;
    font-size: 1rem;
}

.time-slot:hover {
    background-color: #f56649;
}

.time-slot.selected {
    background-color: #f56649;
    box-shadow: 0 0 0 2px #f56649, 0 0 0 4px rgba(245, 102, 73, 0.3);
    font-weight: bold;
}

.time-slot.already-booked {
    background-color: #cccccc;
    color: #666666;
    border-color: #bbbbbb;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
}

.time-slot.already-booked::after {
    content: "✓";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    color: #666;
}

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

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

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1.2rem;
}

.form-control:focus {
    outline: none;
    border-color: #888;
}

/* Message styles */
.no-dates, .no-times {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    color: #666;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Summary styles */
.summary-item {
    margin-bottom: 10px;
}

.summary-label {
    font-weight: bold;
    margin-right: 10px;
}

.booking-summary {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.customer-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

/* PayPal button container */
#paypal-button-container {
    margin-top: 20px;
    width: 100%;
}

/* Hidden elements */
.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .booking-container {
        width: 100%;
        padding: 10px;
    }
    
    .service-button, .artist-button, .date-btn {
        flex: 1 0 calc(50% - 10px);
    }
    
    .time-slot {
        flex: 1 0 calc(33.333% - 10px);
    }
}
