/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* General Styles */
.easybooking-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.easybooking-container * {
    box-sizing: border-box;
}

.easybooking-container h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.easybooking-container p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Progress Bar */
.easybooking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.easybooking-progress::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.easybooking-progress-step {
    position: relative;
    text-align: center;
    z-index: 2;
}

.easybooking-progress-step-number {
    background-color: #e0e0e0;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    height: 30px;
    margin: 0 auto 10px;
    width: 30px;
    position: relative;
    z-index: 2;
}

.easybooking-progress-step.active .easybooking-progress-step-number {
    background: linear-gradient(144deg, rgb(175, 64, 255) 4%, rgb(91, 66, 243) 52%, rgb(0, 221, 235) 99%);
}

.easybooking-progress-step.completed .easybooking-progress-step-number {
    background: rgb(91, 66, 243);
}

.easybooking-progress-step-label {
    color: #666;
    font-size: 14px;
}

.easybooking-progress-step.active .easybooking-progress-step-label {
    color: #333;
    font-weight: bold;
}

/* Form Steps */
.easybooking-step {
    display: none;
}

.easybooking-step.active {
    display: block;
}

/* Form Elements */
.easybooking-form-row {
    margin-bottom: 20px;
}

.easybooking-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.easybooking-form-row input[type="text"],
.easybooking-form-row input[type="email"],
.easybooking-form-row input[type="tel"],
.easybooking-form-row input[type="date"],
.easybooking-form-row select,
.easybooking-form-row textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    padding: 10px;
    width: 100%;
}

.easybooking-form-row input[type="text"]:focus,
.easybooking-form-row input[type="email"]:focus,
.easybooking-form-row input[type="tel"]:focus,
.easybooking-form-row input[type="date"]:focus,
.easybooking-form-row select:focus,
.easybooking-form-row textarea:focus {
    border-color: rgb(91, 66, 243);
    outline: none;
}

.easybooking-form-row .required {
    color: #e53935;
}

.easybooking-form-row .description {
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin-top: 5px;
}

/* Service Selection */
.easybooking-services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.easybooking-service {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    min-width: 200px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.easybooking-service:hover {
    border-color: rgb(91, 66, 243);
    box-shadow: 0 2px 8px rgba(91, 66, 243, 0.2);
}

.easybooking-service.selected {
    border-color: rgb(91, 66, 243);
    box-shadow: 0 2px 8px rgba(91, 66, 243, 0.2);
}

.easybooking-service h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 10px;
}

.easybooking-service-details {
    color: #666;
    font-size: 14px;
}

.easybooking-service-price {
    color: rgb(91, 66, 243);
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

/* Date and Time Selection */
.easybooking-date-picker {
    margin-bottom: 20px;
}

.easybooking-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.easybooking-time-slot {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.easybooking-time-slot:hover {
    background: #e0e0e0;
}

.easybooking-time-slot.selected {
    background: linear-gradient(144deg, rgb(175, 64, 255) 4%, rgb(91, 66, 243) 52%, rgb(0, 221, 235) 99%);
    border-color: rgb(91, 66, 243);
    color: #fff;
}

.easybooking-time-slot.disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Summary */
.easybooking-summary {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
}

.easybooking-summary h3 {
    border-bottom: 1px solid #ddd;
    color: #333;
    font-size: 18px;
    margin: 0 0 15px;
    padding-bottom: 10px;
}

.easybooking-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.easybooking-summary-label {
    color: #666;
    font-weight: 600;
}

.easybooking-summary-value {
    color: #333;
    text-align: right;
}

/* Buttons */
.easybooking-button {
    background: linear-gradient(144deg, rgb(175, 64, 255) 4%, rgb(91, 66, 243) 52%, rgb(0, 221, 235) 99%);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.easybooking-button:hover,
.easybooking-button:focus {
    box-shadow: 0 0 15px rgba(91, 66, 243, 0.5);
    opacity: 0.9;
}

.easybooking-button.button-secondary {
    background: #f7f7f7;
    border: 1px solid #ddd;
    color: #333;
}

.easybooking-button.button-secondary:hover,
.easybooking-button.button-secondary:focus {
    background: #f0f0f0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.easybooking-buttons {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 20px;
}

/* Messages */
.easybooking-message {
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 15px;
}

.easybooking-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.easybooking-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.easybooking-message.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Loading */
.easybooking-loading {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.easybooking-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: rgb(91, 66, 243);
    border-radius: 50%;
    height: 30px;
    margin-right: 10px;
    width: 30px;
    animation: easybooking-spin 1s linear infinite;
}

@keyframes easybooking-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Confirmation */
.easybooking-confirmation {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 20px;
    padding: 20px;
    text-align: center;
}

.easybooking-confirmation h3 {
    color: #155724;
    font-size: 20px;
    margin-bottom: 15px;
}

.easybooking-confirmation p {
    color: #333;
    margin-bottom: 15px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .easybooking-services {
        flex-direction: column;
    }
    
    .easybooking-time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .easybooking-progress-step-label {
        font-size: 12px;
    }
}
