/**
 * WP BookMe Public CSS
 */

/* General Styling */
.wp-bookme-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    box-sizing: border-box;
}

.wp-bookme-container * {
    box-sizing: border-box;
}

.wp-bookme-container h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.wp-bookme-container h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.wp-bookme-container h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.wp-bookme-container p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.wp-bookme-header {
    margin-bottom: 30px;
    text-align: center;
}

/* Form Elements */
.wp-bookme-form-group {
    margin-bottom: 20px;
}

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

.wp-bookme-form-group input[type="text"],
.wp-bookme-form-group input[type="email"],
.wp-bookme-form-group input[type="tel"],
.wp-bookme-form-group select,
.wp-bookme-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
}

.wp-bookme-form-group textarea {
    min-height: 100px;
}

.wp-bookme-form-group input:focus,
.wp-bookme-form-group select:focus,
.wp-bookme-form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.wp-bookme-form-group .required {
    color: #e74c3c;
}

/* Buttons */
.wp-bookme-form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.wp-bookme-next,
.wp-bookme-back,
.wp-bookme-book-appointment,
.wp-bookme-book-another,
.wp-bookme-book-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.wp-bookme-next,
.wp-bookme-book-appointment,
.wp-bookme-book-button {
    background-color: #4a90e2;
    color: white;
}

.wp-bookme-next:hover,
.wp-bookme-book-appointment:hover,
.wp-bookme-book-button:hover {
    background-color: #3a7bc8;
}

.wp-bookme-back {
    background-color: #f1f1f1;
    color: #333;
}

.wp-bookme-back:hover {
    background-color: #e5e5e5;
}

.wp-bookme-book-another {
    background-color: #2ecc71;
    color: white;
    margin: 0 auto;
    display: block;
}

.wp-bookme-book-another:hover {
    background-color: #27ae60;
}

/* Steps */
.wp-bookme-steps {
    margin-bottom: 30px;
    overflow-x: auto;
}

.wp-bookme-steps-wrapper {
    display: flex;
    width: 100%;
    min-width: 600px;
    position: relative;
}

.wp-bookme-steps-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.wp-bookme-step {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.wp-bookme-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ddd;
    color: #555;
    border-radius: 50%;
    margin: 0 auto 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-bookme-step-text {
    display: block;
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.wp-bookme-step.active .wp-bookme-step-number,
.wp-bookme-step.completed .wp-bookme-step-number {
    background-color: #4a90e2;
    color: white;
}

.wp-bookme-step.active .wp-bookme-step-text,
.wp-bookme-step.completed .wp-bookme-step-text {
    color: #4a90e2;
    font-weight: 600;
}

/* Step Content */
.wp-bookme-step-content {
    background-color: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wp-bookme-step-content > div {
    display: none;
}

.wp-bookme-step-content-active {
    display: block !important;
}

/* Staff Selection */
.wp-bookme-staff-selection {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.wp-bookme-staff-card {
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 10px;
    width: calc(50% - 20px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wp-bookme-staff-card:hover,
.wp-bookme-staff-card.selected {
    border-color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.05);
}

.wp-bookme-staff-card.selected {
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.wp-bookme-staff-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.wp-bookme-staff-info {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Time Slots */
.wp-bookme-time-slots {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.wp-bookme-time-slot {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 90px;
}

.wp-bookme-time-slot:hover,
.wp-bookme-time-slot.selected {
    border-color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.05);
}

.wp-bookme-time-slot.selected {
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.wp-bookme-time-slot.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wp-bookme-time-slots .wp-bookme-hint {
    width: 100%;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    color: #666;
    text-align: center;
}

.wp-bookme-loading {
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Payment */
.wp-bookme-appointment-summary {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.wp-bookme-summary-item {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.wp-bookme-summary-label {
    font-weight: 600;
    min-width: 120px;
}

.wp-bookme-payment-methods {
    display: flex;
    flex-direction: column;
}

.wp-bookme-payment-method {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.wp-bookme-payment-method input[type="radio"] {
    margin-right: 10px;
}

/* Confirmation */
.wp-bookme-confirmation {
    text-align: center;
    padding: 30px 0;
}

.wp-bookme-success-icon {
    color: #2ecc71;
    margin-bottom: 20px;
}

.wp-bookme-confirmation-details {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.wp-bookme-confirmation-item {
    margin-bottom: 10px;
    display: flex;
}

.wp-bookme-confirmation-label {
    font-weight: 600;
    min-width: 120px;
}

/* Services List Shortcode */
.wp-bookme-services {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.wp-bookme-services-list .wp-bookme-service {
    width: 100%;
    margin-bottom: 30px;
    padding: 0 15px;
}

.wp-bookme-services-grid .wp-bookme-service {
    width: 33.333%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.wp-bookme-service {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    transition: all 0.3s ease;
}

.wp-bookme-service:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wp-bookme-service-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.wp-bookme-service-description {
    color: #666;
    margin-bottom: 15px;
}

.wp-bookme-service-price {
    font-size: 16px;
    font-weight: 600;
    color: #e67e22;
    margin-bottom: 5px;
}

.wp-bookme-service-duration {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* Staff List Shortcode */
.wp-bookme-staff {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.wp-bookme-staff-list .wp-bookme-staff-member {
    width: 100%;
    margin-bottom: 30px;
    padding: 0 15px;
}

.wp-bookme-staff-grid .wp-bookme-staff-member {
    width: 33.333%;
    padding: 0 15px;
    margin-bottom: 30px;
}

.wp-bookme-staff-member {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    transition: all 0.3s ease;
    text-align: center;
}

.wp-bookme-staff-member:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wp-bookme-staff-photo {
    margin-bottom: 15px;
}

.wp-bookme-staff-photo img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.wp-bookme-staff-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.wp-bookme-staff-services {
    margin-top: 15px;
    text-align: left;
}

.wp-bookme-staff-services h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.wp-bookme-staff-services ul {
    margin: 0;
    padding-left: 20px;
}

.wp-bookme-staff-services li {
    margin-bottom: 5px;
}

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

.wp-bookme-error {
    background-color: #fceae9;
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.wp-bookme-warning {
    background-color: #fdf6e9;
    border: 1px solid #f39c12;
    color: #f39c12;
}

.wp-bookme-success {
    background-color: #e9f7ef;
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .wp-bookme-services-grid .wp-bookme-service,
    .wp-bookme-staff-grid .wp-bookme-staff-member {
        width: 50%;
    }
}

@media screen and (max-width: 768px) {
    .wp-bookme-step-text {
        display: none;
    }
    
    .wp-bookme-staff-card {
        width: 100%;
    }
    
    .wp-bookme-services-grid .wp-bookme-service,
    .wp-bookme-staff-grid .wp-bookme-staff-member {
        width: 100%;
    }
    
    .wp-bookme-form-buttons {
        flex-direction: column;
    }
    
    .wp-bookme-back {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 480px) {
    .wp-bookme-step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .wp-bookme-steps-wrapper::before {
        top: 15px;
    }
    
    .wp-bookme-time-slot {
        min-width: 70px;
        font-size: 14px;
    }
}
