/* Lens Bookings - Frontend Styles */

.lens-booking-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
}

/* Step indicator */
.lens-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 4px;
}
.lens-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.lens-step.active { opacity: 1; }
.lens-step.completed { opacity: 0.8; }
.lens-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}
.lens-step.active .lens-step-num,
.lens-step.completed .lens-step-num {
    background: #4f46e5;
    color: #fff;
}
.lens-step-label { font-size: 13px; font-weight: 500; }
.lens-step-line  { flex: 1; min-width: 24px; max-width: 48px; height: 2px; background: #e5e7eb; }

/* Panel */
.lens-panel-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a1a2e;
}

/* Service cards */
.lens-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.lens-service-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.lens-service-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 16px rgba(79,70,229,0.12);
    transform: translateY(-2px);
}
.lens-service-card.selected {
    border-color: #4f46e5;
    background: #f5f3ff;
}
.lens-service-img img { width: 100%; height: 120px; object-fit: cover; display: block; }
.lens-service-body { padding: 14px; }
.lens-service-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.lens-service-cat  { font-size: 12px; color: #6b7280; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.lens-service-desc { font-size: 13px; color: #6b7280; margin-bottom: 10px; line-height: 1.4; }
.lens-service-meta { display: flex; justify-content: space-between; align-items: center; }
.lens-duration, .lens-price {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
}
.lens-price { font-weight: 600; color: #1a1a2e; }

/* Resource cards */
.lens-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.lens-resource-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.lens-resource-card:hover  { border-color: #4f46e5; transform: translateY(-2px); }
.lens-resource-card.selected { border-color: #4f46e5; background: #f5f3ff; }
.lens-resource-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 10px;
}
.lens-resource-name { font-weight: 600; font-size: 15px; }

/* Calendar */
.lens-datetime-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 600px) {
    .lens-datetime-wrap { grid-template-columns: 1fr; }
}
.lens-calendar-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    min-width: 280px;
}
.lens-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
}
.lens-cal-nav {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.lens-cal-nav:hover { background: #f5f3ff; }
.lens-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.lens-cal-dow {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    padding: 4px 0;
}
#lens-cal-days { display: contents; }
.lens-cal-day {
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    cursor: default;
    font-size: 14px;
    color: #9ca3af;
}
.lens-cal-day.empty { background: none; }
.lens-cal-day.available {
    cursor: pointer;
    color: #1a1a2e;
    font-weight: 500;
}
.lens-cal-day.available:hover { background: #f5f3ff; color: #4f46e5; }
.lens-cal-day.selected { background: #4f46e5; color: #fff; font-weight: 700; }
.lens-cal-day.today { border: 2px solid #4f46e5; }
.lens-cal-day.past { opacity: 0.3; }

/* Slots */
.lens-slots-wrap { padding: 4px 0; }
.lens-slots-prompt { color: #9ca3af; font-style: italic; font-size: 14px; }
.lens-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}
.lens-slot {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.lens-slot:hover    { border-color: #4f46e5; color: #4f46e5; background: #f5f3ff; }
.lens-slot.selected { background: #4f46e5; color: #fff; border-color: #4f46e5; }

/* Customer form */
.lens-booking-summary {
    background: #f5f3ff;
    border-left: 4px solid #4f46e5;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}
.lens-booking-summary strong { color: #4f46e5; }

.lens-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 600px) { .lens-form-grid { grid-template-columns: 1fr; } }
.lens-field--full { grid-column: 1 / -1; }
.lens-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}
.lens-req { color: #ef4444; }
.lens-field input,
.lens-field textarea {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s;
    box-sizing: border-box;
    background: #fff;
}
.lens-field input:focus,
.lens-field textarea:focus {
    outline: none;
    border-color: #4f46e5;
}

/* Payment */
.lens-payment-title { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.lens-payment-desc  { font-size: 14px; color: #6b7280; margin-bottom: 12px; }
.lens-card-element  {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    transition: border-color 0.15s;
}
.lens-card-element--focus { border-color: #4f46e5; }
.lens-card-errors { color: #ef4444; font-size: 13px; min-height: 20px; margin-bottom: 12px; }

/* Buttons */
.lens-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}
.lens-btn-submit {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.lens-btn-submit:hover { background: #4338ca; }
.lens-btn-submit:disabled { background: #a5b4fc; cursor: not-allowed; }
.lens-btn-back {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 0;
    text-decoration: underline;
}
.lens-btn-back:hover { color: #1a1a2e; }
.lens-btn-primary {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Loading */
.lens-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    color: #6b7280;
    font-size: 14px;
}
.lens-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: lens-spin 0.7s linear infinite;
    flex-shrink: 0;
}
.lens-spinner--white { border-color: rgba(255,255,255,0.3); border-top-color: #fff; }
@keyframes lens-spin { to { transform: rotate(360deg); } }

/* Error */
.lens-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-top: 12px;
}
.lens-notice { color: #6b7280; font-style: italic; }

/* Confirmation */
.lens-confirmation { text-align: center; padding: 40px 20px; }
.lens-confirm-icon {
    width: 72px;
    height: 72px;
    background: #4f46e5;
    color: #fff;
    font-size: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.lens-confirm-title   { font-size: 26px; font-weight: 700; margin: 0 0 10px; }
.lens-confirm-message { color: #6b7280; margin-bottom: 16px; }
.lens-confirm-ref     { font-size: 15px; margin-bottom: 28px; }
