/* iWP Booking Frontend CSS */

/* General Styles */
.iwp-booking-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.iwp-booking-form-title {
    text-align: center;
    color: #06080c;
    margin-top: 0;
}

/* Service Header */
.iwp-booking-service-header {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #2fe0cf, #7c9bff);
    border-radius: 8px;
    color: #fff;
}

.iwp-booking-service-header h3 {
    margin: 0;
    color: #fff;
}

.iwp-booking-service-description {
    margin-top: 12px;
    color: rgba(255,255,255,0.9);
}

.iwp-booking-service-description p {
    margin: 0;
}

/* Form Elements */
.iwp-booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.iwp-booking-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iwp-booking-form-group label {
    font-weight: 500;
    color: #06080c;
    font-size: 14px;
}

.iwp-booking-form-group input,
.iwp-booking-form-group select,
.iwp-booking-form-group textarea {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
    color: #06080c;
}

.iwp-booking-form-group input:focus,
.iwp-booking-form-group select:focus,
.iwp-booking-form-group textarea:focus {
    outline: none;
    border-color: #2fe0cf;
    box-shadow: 0 0 0 2px rgba(47, 224, 207, 0.2);
}

.iwp-booking-form-group input::placeholder,
.iwp-booking-form-group textarea::placeholder {
    color: #999;
}

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

.iwp-booking-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.iwp-booking-section {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.iwp-booking-section-title {
    margin-top: 0;
    color: #06080c;
    font-size: 16px;
    font-weight: 600;
}

/* Buttons */
.iwp-booking-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.iwp-booking-submit {
    background: #2fe0cf;
    color: #06080c;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
}

.iwp-booking-submit:hover {
    background: #3ad1c7;
}

/* Messages */
.iwp-booking-form-messages {
    margin-top: 10px;
    min-height: 24px;
}

.iwp-booking-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.iwp-booking-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.iwp-booking-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

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

/* Status Badges */
.iwp-booking-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.iwp-booking-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.iwp-booking-status-badge.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.iwp-booking-status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.iwp-booking-status-badge.status-completed {
    background: #e2e3e5;
    color: #383d41;
}

/* Calendar */
.iwp-booking-calendar-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

.iwp-booking-calendar {
    min-width: 800px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.iwp-booking-calendar-title {
    font-size: 20px;
    font-weight: 600;
    color: #06080c;
}

.iwp-booking-calendar-nav {
    display: flex;
    gap: 8px;
}

.iwp-booking-calendar-nav button {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

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

.iwp-booking-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.iwp-booking-calendar-weekday {
    text-align: center;
    padding: 10px;
    font-weight: 500;
    font-size: 12px;
    color: #666;
}

.iwp-booking-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.iwp-booking-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.iwp-booking-calendar-day:hover:not(.disabled):not(.other-month) {
    background: #f0f0f0;
}

.iwp-booking-calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.iwp-booking-calendar-day.other-month {
    color: #999;
}

.iwp-booking-calendar-day.today {
    font-weight: 600;
}

.iwp-booking-calendar-day.selected {
    background: #2fe0cf;
    color: #fff;
}

.iwp-booking-calendar-day.disabled {
    background: #f8f8f8;
    color: #999;
    cursor: not-allowed;
}

.iwp-booking-calendar-day.has-availability {
    background: #d4edda;
}

.iwp-booking-calendar-day-number {
    font-weight: 600;
    margin-bottom: 4px;
}

.iwp-booking-calendar-day-slots {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: #666;
}

.iwp-booking-calendar-day-slot {
    padding: 2px 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
}

/* Time Slots */
.iwp-booking-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.iwp-booking-time-slot {
    padding: 12px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.iwp-booking-time-slot:hover:not(.disabled) {
    border-color: #2fe0cf;
    background: #e8f8f5;
}

.iwp-booking-time-slot.selected {
    background: #2fe0cf;
    color: #fff;
    border-color: #2fe0cf;
}

.iwp-booking-time-slot.disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* Services List */
.iwp-booking-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.iwp-booking-service {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.iwp-booking-service:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.iwp-booking-service-title {
    margin-top: 0;
    color: #06080c;
    font-size: 18px;
}

.iwp-booking-service-content {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.iwp-booking-service-content p {
    margin: 0 0 12px;
}

.iwp-booking-service-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.iwp-booking-service-price {
    font-weight: 600;
    color: #2fe0cf;
    font-size: 18px;
}

.iwp-booking-service-duration {
    color: #666;
}

.iwp-booking-service-actions {
    display: flex;
    justify-content: flex-end;
}

.iwp-booking-service-book {
    background: #2fe0cf;
    color: #fff;
}

/* Staff List */
.iwp-booking-staff {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.iwp-booking-staff-member {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.iwp-booking-staff-member:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.iwp-booking-staff-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
}

.iwp-booking-staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iwp-booking-staff-name {
    margin: 0 0 8px;
    color: #06080c;
    font-size: 16px;
}

.iwp-booking-staff-position {
    margin: 0 0 12px;
    color: #666;
    font-size: 14px;
}

.iwp-booking-staff-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.iwp-booking-staff-contact a {
    color: #2fe0cf;
    text-decoration: none;
}

.iwp-booking-staff-contact a:hover {
    text-decoration: underline;
}

/* My Bookings */
.iwp-booking-my-bookings {
    max-width: 800px;
    margin: 0 auto;
}

.iwp-booking-my-bookings h2 {
    margin-top: 0;
    color: #06080c;
}

.iwp-booking-my-booking {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.iwp-booking-my-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.iwp-booking-my-booking-header h3 {
    margin: 0;
    color: #06080c;
    font-size: 16px;
}

.iwp-booking-my-booking-details {
    color: #666;
    font-size: 14px;
}

.iwp-booking-my-booking-details p {
    margin: 8px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .iwp-booking-form-wrapper {
        padding: 20px;
    }
    
    .iwp-booking-form-row {
        grid-template-columns: 1fr;
    }
    
    .iwp-booking-calendar {
        min-width: auto;
    }
    
    .iwp-booking-services,
    .iwp-booking-staff {
        grid-template-columns: 1fr;
    }
    
    .iwp-booking-time-slots {
        grid-template-columns: 1fr;
    }
}
