/* Pilates Booking - Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@600&display=swap');

.pb-booking {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #1a1a1a;
    line-height: 1.6;
}
.pb-booking * { box-sizing: border-box; }
.pb-booking h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.pb-booking h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

/* Loading */
.pb-booking.pb-loading { opacity: 0.6; pointer-events: none; }
.pb-loading-msg { text-align: center; padding: 40px; color: #666; }

/* Error */
.pb-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }

/* Back Button */
.pb-back { background: none; border: none; color: #666; font-size: 0.9rem; cursor: pointer; padding: 8px 0; margin-bottom: 10px; }
.pb-back:hover { color: #1a1a1a; }

/* Buttons */
.pb-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 8px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.2s; border: none; background: #b08d57; color: #fff; }
.pb-btn:hover { background: #9a7a4a; transform: translateY(-1px); }
.pb-btn-primary { background: #b08d57; color: #fff; }
.pb-btn-large { width: 100%; padding: 16px; font-size: 1.1rem; }
.pb-btn-disabled { background: #e5e5e5; color: #999; cursor: not-allowed; }
.pb-btn-disabled:hover { transform: none; }

/* Home */
.pb-home { text-align: center; }
.pb-intro { color: #666; font-size: 1.1rem; margin-bottom: 2rem; }

/* Cards */
.pb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pb-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.pb-card:hover { border-color: #b08d57; transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.pb-card.pb-massage:hover { border-color: #c9a9b0; }
.pb-card.pb-facial:hover { border-color: #a9c9b0; }
.pb-icon { font-size: 3rem; margin-bottom: 15px; }
.pb-card p { color: #666; font-size: 0.95rem; margin: 10px 0; }
.pb-price { margin: 20px 0; }
.pb-price strong { display: block; font-size: 1.25rem; color: #b08d57; }
.pb-price span { display: block; font-size: 0.9rem; color: #888; margin-top: 4px; }
.pb-card.pb-massage .pb-price strong { color: #c9a9b0; }
.pb-card.pb-facial .pb-price strong { color: #6b9b7a; }
.pb-btn-text { color: #b08d57; font-weight: 500; }
.pb-card.pb-massage .pb-btn-text { color: #c9a9b0; }
.pb-card.pb-facial .pb-btn-text { color: #6b9b7a; }

/* Recommended Card */
.pb-recommended { border-color: #b08d57; position: relative; }
.pb-badge-corner { position: absolute; top: -12px; right: 20px; background: #b08d57; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

/* Schedule */
.pb-schedule-list { display: flex; flex-direction: column; gap: 16px; }
.pb-schedule-card { background: #fff; border: 2px solid #e5e5e5; border-radius: 16px; padding: 24px; transition: all 0.2s; }
.pb-schedule-card:hover { border-color: #d4c4a8; }
.pb-schedule-card.pb-full { opacity: 0.7; }
.pb-schedule-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pb-schedule-header span { color: #666; }
.pb-availability { margin-bottom: 12px; }
.pb-badge { display: inline-block; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }
.pb-badge-avail { background: #ecfdf5; color: #059669; }
.pb-badge-low { background: #fffbeb; color: #d97706; }
.pb-badge-full { background: #fef2f2; color: #dc2626; }
.pb-badge-holiday { background: #fef3c7; color: #92400e; }
.pb-next { color: #888; font-size: 0.9rem; margin-bottom: 15px; }
.pb-holiday-notice { background: #fef3c7; color: #92400e; font-size: 0.85rem; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; }

/* Package */
.pb-selected-info { background: #faf8f5; padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; display: flex; justify-content: space-between; }
.pb-selected-info span:first-child { font-weight: 600; }
.pb-selected-info span:last-child { color: #666; }
.pb-price-big { margin: 16px 0; }
.pb-price-big strong { font-size: 2rem; font-weight: 700; }
.pb-price-big span { display: block; color: #888; font-size: 0.9rem; margin-top: 4px; }
.pb-class-list { text-align: left; margin: 16px 0; }
.pb-class-list p { font-size: 0.9rem; color: #666; margin-bottom: 8px; }
.pb-class-list ul { list-style: none; padding: 0; margin: 0; }
.pb-class-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.pb-class-list li:last-child { border-bottom: none; }
.pb-spots { color: #059669; font-size: 0.85rem; }

/* Massage & Facial List */
.pb-massage-list { display: flex; flex-direction: column; gap: 16px; }
.pb-massage-card { background: #fff; border: 2px solid #e5e5e5; border-radius: 16px; padding: 24px; text-align: left; cursor: pointer; transition: all 0.3s; }
.pb-massage-card:hover { border-color: #c9a9b0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.pb-facial-card:hover { border-color: #a9c9b0; }
.pb-massage-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.pb-tag { background: #fce4ec; color: #c2185b; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.pb-massage-meta { display: flex; gap: 20px; color: #666; }
.pb-massage-price { font-weight: 600; color: #c9a9b0; }
.pb-facial-card .pb-massage-price { color: #6b9b7a; }

/* Facials specific */
.pb-facials .pb-massage-card { border-left: 4px solid #a9c9b0; }

/* Form */
.pb-summary { background: #faf8f5; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.pb-summary h4 { margin: 0 0 12px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; color: #888; }
.pb-summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e8e4de; }
.pb-summary-row:last-child { border-bottom: none; }
.pb-summary-row.pb-total { font-weight: 600; font-size: 1.1rem; padding-top: 12px; margin-top: 8px; border-top: 2px solid #d4c4a8; border-bottom: none; }

#pb-booking-form { display: flex; flex-direction: column; gap: 20px; }
.pb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pb-field { display: flex; flex-direction: column; }
.pb-field label { font-weight: 500; margin-bottom: 6px; font-size: 0.95rem; }
.pb-field input, .pb-field textarea { padding: 12px 16px; border: 2px solid #e5e5e5; border-radius: 8px; font-size: 1rem; font-family: inherit; transition: border-color 0.2s; }
.pb-field input:focus, .pb-field textarea:focus { outline: none; border-color: #b08d57; }
.pb-hint { font-size: 0.85rem; color: #888; margin-top: 4px; }

/* Payment */
.pb-payment { text-align: center; }
.pb-payment-amount { background: #faf8f5; border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.pb-payment-amount span { display: block; color: #666; margin-bottom: 8px; }
.pb-payment-amount strong { font-size: 2.5rem; font-weight: 700; }
#pb-payment-form { background: #fff; border: 2px solid #e5e5e5; border-radius: 16px; padding: 24px; margin-bottom: 16px; }
#pb-card-element { margin-bottom: 20px; }
#pb-card-errors { color: #dc2626; font-size: 0.9rem; margin-bottom: 16px; min-height: 20px; }
.pb-secure { color: #888; font-size: 0.9rem; }
.pb-spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: pb-spin 0.8s linear infinite; }
@keyframes pb-spin { to { transform: rotate(360deg); } }

/* Confirmation */
.pb-confirmation { text-align: center; padding: 40px 20px; }
.pb-success-icon { width: 80px; height: 80px; background: #ecfdf5; color: #059669; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 24px; }
.pb-confirmation h2 { color: #059669; margin-bottom: 16px; }
.pb-confirmation p { color: #666; max-width: 400px; margin: 0 auto 16px; }
.pb-confirm-details { background: #faf8f5; border-radius: 12px; padding: 20px; margin: 24px auto; max-width: 400px; text-align: left; }
.pb-confirm-details p { margin: 8px 0; }

/* Welcome Back / Email Lookup */
.pb-welcome-back { background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; }
.pb-readonly { background: #f5f5f5; color: #666; cursor: not-allowed; }
.pb-change-email { display: inline-block; margin-top: 6px; font-size: 0.85rem; color: #b08d57; text-decoration: none; }
.pb-change-email:hover { text-decoration: underline; }

/* Booking Closed Notice */
.pb-closed-notice { background: #fef3c7; color: #92400e; font-size: 0.85rem; padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; }

/* Responsive */
@media (max-width: 600px) {
    .pb-booking { padding: 15px; }
    .pb-booking h2 { font-size: 1.6rem; }
    .pb-form-row { grid-template-columns: 1fr; }
    .pb-cards { grid-template-columns: 1fr; }
    .pb-schedule-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .pb-selected-info { flex-direction: column; gap: 4px; text-align: center; }
}
/* Consent Screen */
.pb-consent { text-align: center; }
.pb-consent p { color: #666; margin-bottom: 20px; }
.pb-consent-links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.pb-consent-link { display: flex; align-items: center; justify-content: center; gap: 10px; background: #faf8f5; border: 2px solid #e8e4de; border-radius: 12px; padding: 16px 20px; text-decoration: none; color: #333; font-weight: 500; transition: all 0.2s; }
.pb-consent-link:hover { border-color: #b08d57; background: #fff; }
#pb-consent-form { margin-top: 20px; }
.pb-consent-checkbox { display: flex; align-items: flex-start; gap: 12px; text-align: left; background: #f8f9fa; border-radius: 8px; padding: 16px; margin-bottom: 20px; cursor: pointer; }
.pb-consent-checkbox input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: #b08d57; }
.pb-consent-checkbox span { font-size: 0.95rem; line-height: 1.5; color: #444; }

/* PAR-Q Form Styles */
.pb-parq-form { text-align: left; }
.pb-parq-form h2 { text-align: center; }
.pb-parq-intro { text-align: center; color: #666; margin-bottom: 24px; }
.pb-parq-section { background: #faf8f5; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.pb-parq-section h3 { margin: 0 0 12px 0; color: #333; font-size: 1.1rem; }
.pb-parq-note { font-size: 0.9rem; color: #666; margin-bottom: 16px; }
.pb-parq-question { padding: 12px 0; border-bottom: 1px solid #e8e4de; }
.pb-parq-question:last-of-type { border-bottom: none; }
.pb-parq-q { display: block; margin-bottom: 10px; color: #333; line-height: 1.5; }
.pb-parq-options { display: flex; gap: 24px; }
.pb-parq-options label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: #444; }
.pb-parq-options input[type="radio"] { accent-color: #b08d57; width: 18px; height: 18px; }
.pb-parq-comments { margin-top: 16px; padding-top: 16px; border-top: 2px solid #b08d57; }
.pb-textarea { width: 100%; padding: 12px; border: 2px solid #e8e4de; border-radius: 8px; font-size: 1rem; resize: vertical; font-family: inherit; margin-bottom: 12px; }
.pb-textarea:focus { outline: none; border-color: #b08d57; }
.pb-checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; background: #fff3cd; padding: 12px; border-radius: 8px; }
.pb-checkbox-label input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: #b08d57; }
.pb-checkbox-label span { font-size: 0.9rem; line-height: 1.4; color: #856404; }
.pb-consent-text { max-height: none; }
.pb-consent-scroll { max-height: 200px; overflow-y: auto; padding: 15px; background: #fff; border: 1px solid #e8e4de; border-radius: 8px; font-size: 0.9rem; line-height: 1.6; color: #555; }
.pb-consent-scroll p { margin: 0 0 12px 0; }
.pb-consent-scroll p:last-child { margin-bottom: 0; }
.pb-signature-note { font-size: 0.85rem; color: #666; margin-top: 8px; font-style: italic; }
.pb-form-label .required { color: #dc3545; }
@media (max-width: 600px) {
    .pb-parq-options { flex-direction: column; gap: 10px; }
    .pb-consent-scroll { max-height: 150px; }
}