/* PDS Booking System — Frontend Styles */
/* Matches live site: Red #d62222, Dark #19181f, Raleway headings, Roboto body */

#pds-booking-wrap {
    font-family: 'Roboto', Arial, sans-serif;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 60px;
    color: #19181f;
}

/* Steps indicator */
.pds-steps {
    display: flex;
    margin: 30px 0;
    gap: 0;
    border: 1.5px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}
.pds-step {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
    background: #f7f7f7;
    border-right: 1px solid #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pds-step:last-child { border-right: none; }
.pds-step span {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    font-size: 11px;
    line-height: 22px;
    margin-right: 4px;
    font-weight: 700;
}
.pds-step.active { background: #d62222; color: #fff; }
.pds-step.active span { background: rgba(255,255,255,0.3); }
.pds-step.completed { background: #19181f; color: #fff; }
.pds-step.completed span { background: rgba(255,255,255,0.2); }

/* Panel */
.pds-panel { padding: 30px 0; }
.pds-panel h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #19181f;
    margin-bottom: 6px;
}
.pds-sub { color: #888; font-size: 14px; margin-bottom: 24px; }
.pds-hidden { display: none !important; }

/* Field groups */
.pds-field-group { margin-bottom: 20px; }
.pds-field-group label, .pds-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #19181f;
    margin-bottom: 8px;
}
.pds-req { color: #d62222; }
.pds-field { margin-bottom: 14px; }
.pds-form-row { display: flex; gap: 14px; }
.pds-two-col .pds-field { flex: 1; }

input[type="text"].pds-input, input[type="tel"].pds-input, input[type="email"].pds-input,
#pds-booking-wrap input[type="text"],
#pds-booking-wrap input[type="tel"],
#pds-booking-wrap input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #19181f;
    transition: border-color 0.15s;
}
#pds-booking-wrap input:focus {
    outline: none;
    border-color: #d62222;
}
.pds-input-error { border-color: #d62222 !important; }
.pds-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #19181f;
    background: #fff;
}

/* Pills */
.pds-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pds-pill {
    padding: 10px 20px;
    border: 1.5px solid #ddd;
    border-radius: 24px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #555;
    background: #fff;
    position: relative;
    transition: all 0.15s;
}
.pds-pill:hover { border-color: #d62222; color: #d62222; }
.pds-pill-active { background: #d62222 !important; border-color: #d62222 !important; color: #fff !important; }
.pds-price { display: block; font-size: 12px; color: #888; margin-top: 2px; }
.pds-pill-active .pds-price { color: rgba(255,255,255,0.8); }
.pds-popular-badge {
    position: absolute;
    top: -10px;
    right: 0;
    background: #19181f;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.pds-btn {
    display: inline-block;
    background: #d62222;
    color: #fff;
    padding: 14px 28px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.15s;
}
.pds-btn:hover { background: #b91c1c; }
.pds-btn:disabled { background: #ccc; cursor: not-allowed; }
.pds-btn-grey {
    background: #f7f7f7;
    color: #555;
    border: 1px solid #ddd;
    padding: 13px 22px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
}
.pds-btn-outline {
    display: inline-block;
    border: 1.5px solid #d62222;
    color: #d62222;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.pds-btn-pay { width: 100%; padding: 16px; font-size: 16px; }
.pds-nav-btns { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.pds-btn-next { margin-top: 24px; }

/* Other lessons notice */
.pds-other-lessons {
    background: #f7f7f7;
    border: 1.5px solid #e0e0e0;
    border-left: 4px solid #d62222;
    border-radius: 5px;
    padding: 16px 20px;
    margin: 24px 0;
}
.pds-other-lessons p { font-size: 13px; margin-bottom: 8px; color: #555; }
.pds-other-lessons p:last-of-type { margin-bottom: 12px; }

/* Loading */
.pds-loading { text-align: center; padding: 40px; }
.pds-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #f0f0f0;
    border-top-color: #d62222;
    border-radius: 50%;
    animation: pds-spin 0.7s linear infinite;
    margin: 0 auto 12px;
}
@keyframes pds-spin { to { transform: rotate(360deg); } }

/* Calendar */
.pds-calendar { margin-top: 10px; }
.pds-cal-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.pds-cal-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    background: #fff;
    min-width: 60px;
    transition: all 0.15s;
}
.pds-cal-date:hover { border-color: #d62222; }
.pds-cal-date.active { background: #d62222; border-color: #d62222; color: #fff; }
.pds-cal-day { font-size: 10px; text-transform: uppercase; color: #888; }
.pds-cal-date.active .pds-cal-day { color: rgba(255,255,255,0.8); }
.pds-cal-num { font-size: 22px; font-weight: 800; font-family: 'Raleway', sans-serif; line-height: 1; }
.pds-cal-month { font-size: 11px; color: #888; }
.pds-cal-date.active .pds-cal-month { color: rgba(255,255,255,0.8); }
.pds-cal-count {
    font-size: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 1px 6px;
    margin-top: 3px;
    color: #555;
}
.pds-cal-date.active .pds-cal-count { background: rgba(255,255,255,0.25); color: #fff; }

/* Slots */
.pds-slots-date-label { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.pds-slots-note { font-size: 12px; color: #888; margin-bottom: 14px; }
.pds-slots-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pds-slot {
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    background: #fff;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    min-width: 100px;
    transition: all 0.15s;
}
.pds-slot:hover { border-color: #d62222; color: #d62222; }
.pds-slot.active { background: #d62222; border-color: #d62222; color: #fff; }
.pds-slot-start { display: block; font-size: 15px; font-weight: 700; }
.pds-slot-end { display: block; font-size: 11px; color: #888; }
.pds-slot.active .pds-slot-end { color: rgba(255,255,255,0.8); }

/* Summary */
.pds-summary {
    background: #f7f7f7;
    border: 1.5px solid #e0e0e0;
    border-radius: 5px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.pds-summary h3 { font-family: 'Raleway', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.pds-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.pds-summary-row:last-child { border-bottom: none; }
.pds-summary-row span:first-child { color: #888; }
.pds-summary-row span:last-child { font-weight: 500; }
.pds-summary-total {
    font-size: 16px;
    font-weight: 700;
    color: #d62222;
    border-top: 2px solid #d62222;
    margin-top: 6px;
    padding-top: 10px;
}
.pds-summary-divider { border-top: 1px solid #e0e0e0; margin: 8px 0; }

/* Warnings and notices */
.pds-warn {
    background: #fff8e1;
    border: 1.5px solid #f0c040;
    border-radius: 5px;
    padding: 12px 16px;
    font-size: 13px;
    color: #7a5c00;
    margin-bottom: 16px;
}
.pds-notice {
    background: #f7f7f7;
    border: 1.5px solid #e0e0e0;
    border-left: 4px solid #d62222;
    border-radius: 5px;
    padding: 14px 18px;
    font-size: 14px;
}
.pds-error { color: #d62222; font-size: 13px; margin-top: 6px; }

/* Payment */
.pds-payment-section { margin-bottom: 20px; }
.pds-payment-section h3 { font-family: 'Raleway', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 12px; }
#pds-card-element {
    padding: 13px 14px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

/* T&C */
.pds-tc-wrap { margin: 16px 0; }
.pds-tc-label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #555; cursor: pointer; }
.pds-tc-label input { margin-top: 2px; flex-shrink: 0; }
.pds-tc-label a { color: #d62222; }

/* Stripe note */
.pds-stripe-note { text-align: center; font-size: 12px; color: #aaa; margin-top: 10px; }

/* Confirmation */
.pds-confirmed { text-align: center; padding: 40px 20px; }
.pds-confirmed-icon {
    width: 70px;
    height: 70px;
    background: #d62222;
    color: #fff;
    font-size: 36px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-weight: 700;
}
.pds-confirmed h2 { font-family: 'Raleway', sans-serif; font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.pds-confirmed-summary { max-width: 400px; margin: 20px auto 0; text-align: left; }

/* Responsive */
@media (max-width: 600px) {
    .pds-form-row { flex-direction: column; gap: 0; }
    .pds-steps { font-size: 10px; }
    .pds-step span { display: none; }
    .pds-slots-grid { gap: 6px; }
    .pds-slot { min-width: 80px; }
}
