/* PFCL Appointments - Frontend Booking Widget */

.pfcl-booking-widget {
    max-width: 680px;
    margin: 40px 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.pfcl-booking-heading {
    font-size: 1.5rem;
    margin: 0 0 24px;
    color: #1a202c;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 16px;
}

.pfcl-booking-step h3 {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 16px;
}

/* Calendar */
.pfcl-calendar {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.pfcl-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1c0f05;
    color: #fff;
    padding: 12px 16px;
}

.pfcl-cal-prev, .pfcl-cal-next {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

.pfcl-cal-prev:hover, .pfcl-cal-next:hover {
    color: #faf4ec;
}

.pfcl-cal-month-label {
    font-size: 1rem;
    font-weight: 600;
}

.pfcl-cal-daynames {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f7f0ea;
    text-align: center;
    padding: 8px 0;
}

.pfcl-cal-daynames span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b7355;
    text-transform: uppercase;
}

.pfcl-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 8px;
    background: #faf4ec;
}

.pfcl-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: default;
    transition: all 0.15s;
}

.pfcl-cal-day.empty { visibility: hidden; }

.pfcl-cal-day.today {
    font-weight: 700;
    color: #8b2020;
}

.pfcl-cal-day.available {
    background: #1c0f05;
    color: #faf4ec;
    cursor: pointer;
    font-weight: 600;
}

.pfcl-cal-day.available:hover {
    background: #8b2020;
    transform: scale(1.05);
}

.pfcl-cal-day.selected {
    background: #8b2020 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(139,32,32,0.4);
    transform: scale(1.1);
}

.pfcl-cal-day.unavailable {
    color: #cbd5e0;
}

.pfcl-cal-day.past {
    color: #e2e8f0;
    text-decoration: line-through;
}

/* Time Slots */
.pfcl-selected-date-label {
    font-weight: 600;
    color: #1c0f05;
    margin-bottom: 12px;
    font-size: 1rem;
}

.pfcl-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pfcl-slot {
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s;
    background: #fff;
    color: #1a202c;
}

.pfcl-slot:hover {
    border-color: #1c0f05;
    background: #faf4ec;
}

.pfcl-slot.selected {
    background: #1c0f05;
    border-color: #1c0f05;
    color: #faf4ec;
}

.pfcl-no-slots {
    color: #718096;
    font-style: italic;
}

/* Form */
.pfcl-appt-summary {
    background: #faf4ec;
    border: 1px solid #e8d9c9;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #1c0f05;
    font-weight: 500;
}

.pfcl-field {
    margin-bottom: 16px;
}

.pfcl-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.pfcl-field input,
.pfcl-field textarea,
.pfcl-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.15s;
    box-sizing: border-box;
    font-family: inherit;
}

.pfcl-field input:focus,
.pfcl-field textarea:focus {
    outline: none;
    border-color: #1c0f05;
    box-shadow: 0 0 0 3px rgba(28,15,5,0.1);
}

.pfcl-field .req { color: #8b2020; }

.pfcl-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pfcl-back-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
    transition: all 0.15s;
}

.pfcl-back-btn:hover {
    background: #f7f7f7;
    border-color: #aaa;
}

.pfcl-submit-btn {
    background: #1c0f05;
    color: #faf4ec;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.15s;
}

.pfcl-submit-btn:hover {
    background: #8b2020;
}

.pfcl-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pfcl-form-error {
    background: #fed7d7;
    color: #822727;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 0.9rem;
}

/* Confirmation */
.pfcl-confirm-success {
    text-align: center;
    padding: 20px;
}

.pfcl-confirm-icon {
    width: 64px;
    height: 64px;
    background: #c6f6d5;
    color: #276749;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pfcl-confirm-success h3 {
    color: #276749;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.pfcl-confirm-code {
    display: inline-block;
    background: #faf4ec;
    border: 2px dashed #8b7355;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1c0f05;
    letter-spacing: 3px;
    margin: 12px 0;
}

.pfcl-confirm-note {
    color: #718096;
    font-size: 0.9rem;
}

.pfcl-book-another {
    margin-top: 16px;
    background: #1c0f05;
    color: #faf4ec;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Loading */
.pfcl-loading {
    text-align: center;
    color: #718096;
    padding: 20px;
    font-style: italic;
}

/* Call us fallback */
.pfcl-appt-callus {
    background: #faf4ec;
    border: 1px solid #e8d9c9;
    border-radius: 10px;
    padding: 24px;
    margin: 30px 0;
    text-align: center;
}

.pfcl-appt-callus h3 {
    color: #1c0f05;
    margin-bottom: 8px;
}
