/* Tutor discovery and honest booking/inquiry states. */
#booking-app, #tutor-directory, #tutor-profile { scroll-margin-top: 120px; }
.directory-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.filter-panel { padding: 26px; }
.filter-heading, .results-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filter-heading { margin-bottom: 24px; }
.filter-heading h2 { font-size: 20px; margin: 0; }
.filter-panel .field { margin-bottom: 21px; }
.text-button { padding: 6px 0; background: none; border: 0; color: #2563eb; font: inherit; font-size: 13px; cursor: pointer; }
.more-filters { border-top: 1px solid #e2e8f0; padding-top: 18px; }
.more-filters summary { display: flex; justify-content: space-between; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; margin-bottom: 18px; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters[open] summary span { transform: rotate(45deg); }
.filter-help { margin: 25px -26px -26px; padding: 24px 26px; background: #f1f6fb; border-radius: 0 0 16px 16px; font-size: 13px; }
.filter-help p { margin: 6px 0 10px; color: #64748b; }
.filter-help a { color: #2563eb; font-weight: 600; }
.results-heading { min-height: 46px; margin-bottom: 18px; font-size: 13px; }
.results-heading p { color: #64748b; margin: 0; }
.sort-control { display: flex; align-items: center; gap: 8px; color: #64748b; white-space: nowrap; }
.sort-control select { min-height: 42px; border: 1px solid #e2e8f0; background: white; padding: 8px; border-radius: 7px; color: #142d4e; max-width: 180px; }
.directory-empty { padding: 55px 40px 32px; text-align: center; background: #fff; }
.empty-symbol { display: grid; place-items: center; width: 85px; height: 85px; color: #0d9488; background: #edf7f5; border-radius: 50%; margin: 0 auto 26px; }
.directory-empty h2 { font-size: clamp(25px, 3vw, 34px); margin: 14px 0; }
.directory-empty > p { max-width: 530px; margin: 0 auto 26px; color: #64748b; line-height: 1.8; }
.directory-empty .form-actions { justify-content: center; }
.empty-benefits { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid #e2e8f0; font-size: 12px; color: #527268; }
.directory-note { font-size: 12px; color: #64748b; text-align: center; margin-top: 22px; }
.tutor-grid { display: grid; gap: 22px; }
.tutor-card { padding: 28px; }
.tutor-card-top { display: flex; gap: 20px; align-items: center; }
.tutor-card h3 { font-size: 23px; margin: 5px 0; }
.tutor-card-top p { margin: 0; }
.tutor-card h3 a { color: inherit; }
.tutor-photo { width: 88px; height: 88px; flex-shrink: 0; border-radius: 15px; object-fit: cover; }
.tutor-initials { display: grid; place-items: center; font-size: 26px; font-weight: 700; background: #e9eff7; color: #142d4e; }
.tutor-bio { color: #64748b; font-size: 14px; line-height: 1.8; margin-top: 20px; }
.tutor-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.tutor-tags .chip { font-size: 11px; }
.tutor-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; }
.tutor-facts dt, .detail-list dt, .review-list dt { color: #64748b; font-size: 12px; }
.tutor-facts dd, .detail-list dd, .review-list dd { margin: 4px 0 0; color: #142d4e; }
.tutor-card-bottom { display: flex; flex-direction: column; gap: 3px; margin: 20px 0; padding-top: 18px; border-top: 1px solid #e2e8f0; font-size: 14px; }
.tutor-card-bottom span { font-size: 12px; }
.tutor-actions { display: flex; gap: 12px; }
.booking-heading { text-align: center; margin-bottom: 24px; }
.booking-heading p { color: #64748b; font-size: 14px; }
.booking-steps { display: flex; justify-content: center; gap: 45px; padding: 0; margin: 25px 0 40px; list-style: none; }
.booking-steps .step { display: flex; gap: 10px; align-items: center; color: #64748b; font-size: 13px; }
.booking-steps .step > span { display: grid; place-items: center; height: 30px; width: 30px; border: 1px solid #dbe3ed; border-radius: 50%; font-size: 12px; font-weight: 700; background: white; }
.booking-steps .is-current { color: #142d4e; font-weight: 700; }
.booking-steps .is-current > span { color: white; background: #2563eb; border-color: #2563eb; }
.booking-steps .is-complete > span { color: #0d9488; background: #e7f5f1; border-color: #e7f5f1; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr); gap: 30px; align-items: start; max-width: 1080px; margin: auto; }
.booking-panel { padding: 38px; }
.booking-panel h2 { font-size: clamp(24px, 3vw, 31px); line-height: 1.3; margin: 13px 0; }
.booking-panel h2:focus, .booking-success h2:focus { outline: none; }
.booking-panel form > .muted { margin-bottom: 28px; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: #142d4e; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 48px; padding: 12px 13px; border: 1px solid #dce3ec; border-radius: 8px; background: white; color: #1e293b; font: inherit; font-size: 13px; }
.field select { padding-right: 25px; }
.field textarea { resize: vertical; }
.field small { color: #64748b; font-size: 11px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #738297; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #2563eb; outline-offset: 2px; }
.notice { background: #eef5fb; border-radius: 9px; padding: 15px 17px; color: #46617c; line-height: 1.7; font-size: 12px; margin: 24px 0; }
.notice a, .consent-row a, .form-footnote a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
.summary-card { padding: 32px; background: #f0f5fa; border-color: #e5edf5; }
.summary-card h3 { font-size: 24px; line-height: 1.5; margin: 13px 0 23px; }
.detail-list { margin: 0; }
.detail-list > div { padding: 13px 0; border-bottom: 1px solid #dce6ef; }
.detail-list dd { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.summary-help { margin-top: 24px; display: flex; gap: 11px; align-items: center; font-size: 11px; }
.summary-help a { display: block; color: #2563eb; font-size: 13px; margin-top: 4px; }
.summary-help-icon { display: grid; place-items: center; border: 1px solid #c8d8e9; border-radius: 50%; width: 32px; height: 32px; font-weight: 700; flex-shrink: 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-top: 26px; }
.form-actions .text-link { font-size: 12px; }
.form-actions .button { font-size: 13px; }
.form-footnote { font-size: 11px; color: #64748b; line-height: 1.8; margin-top: 18px; }
.consent-row { display: flex; align-items: start; gap: 11px; margin-top: 22px; font-size: 12px; color: #64748b; line-height: 1.8; cursor: pointer; }
.consent-row input { margin: 4px 0 0; width: 17px; height: 17px; flex-shrink: 0; accent-color: #2563eb; }
.review-list { margin: 25px 0; }
.review-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 17px 0; border-bottom: 1px solid #e2e8f0; }
.review-list dd { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; margin: 0; }
.preserve-lines { white-space: pre-line; }
.status { margin: 20px 0 0; padding: 14px 16px; border-radius: 8px; font-size: 13px; line-height: 1.7; background: #eef5fb; color: #334e68; }
.status[hidden] { display: none; }
.status-error { color: #9f312a; background: #fff2ee; }
.button:disabled { opacity: .6; cursor: wait; }
.available-times { margin-top: 23px; }
.available-times fieldset { border: 0; padding: 0; margin: 0; }
.available-times legend { font-size: 13px; font-weight: 600; margin-bottom: 13px; }
.available-times legend small { display: block; font-weight: 400; color: #64748b; margin-top: 5px; }
.time-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.time-slot { cursor: pointer; position: relative; }
.time-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.time-slot span { display: block; border: 1px solid #dce3ec; padding: 12px 10px; text-align: center; font-size: 12px; border-radius: 8px; }
.time-slot input:checked + span { background: #edf3ff; color: #1d4ed8; border-color: #2563eb; }
.time-slot input:focus-visible + span { outline: 2px solid #2563eb; outline-offset: 3px; }
.booking-success { max-width: 700px; margin: 30px auto; padding: 45px; text-align: center; }
.success-mark { display: grid; place-items: center; margin: 0 auto 25px; width: 65px; height: 65px; background: #e5f5ef; color: #0d9488; border-radius: 50%; font-size: 28px; }
.booking-success h2 { font-size: 32px; }
.booking-success .form-actions { justify-content: center; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; align-items: start; }
.profile-main { display: grid; gap: 22px; }
.back-link { display: inline-block; margin-bottom: 25px; }
.profile-heading { display: flex; gap: 28px; align-items: center; padding: 32px; }
.profile-heading h1 { font-size: 32px; margin: 12px 0; }
.profile-heading p { color: #64748b; }
.profile-photo { width: 135px; height: 150px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.profile-section { padding: 32px; }
.profile-section h2 { font-size: 23px; margin: 0 0 20px; }
.profile-section p { font-size: 14px; color: #64748b; line-height: 1.9; }
.profile-booking { padding: 30px; position: sticky; top: 120px; }
.profile-booking h2 { font-size: 25px; line-height: 1.4; margin-top: 12px; }
.profile-booking > .button { display: flex; margin-top: 24px; justify-content: center; }
.profile-booking > .text-link { display: block; margin-top: 20px; text-align: center; font-size: 12px; }
.profile-price { font-size: 19px; font-weight: 700; }
.profile-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.profile-slots .chip { font-size: 12px; }
.loading::before { content: ''; display: inline-block; width: 12px; height: 12px; border: 2px solid #cad8eb; border-top-color: #2563eb; border-radius: 50%; margin-right: 8px; vertical-align: -2px; animation: booking-spin .7s linear infinite; }
@keyframes booking-spin { to { transform: rotate(360deg); } }
@media (max-width: 1024px) { .directory-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; } .directory-empty { padding: 35px 25px 25px; } .booking-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; } .booking-panel { padding: 28px; } .profile-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; } .profile-heading { flex-direction: column; align-items: start; } }
@media (max-width: 767px) { .directory-layout, .booking-layout, .profile-layout { grid-template-columns: 1fr; } .filter-panel { padding: 22px; } #tutor-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; } .filter-heading, .more-filters { grid-column: 1 / -1; } .filter-heading { margin-bottom: 18px; } .filter-panel .field { margin-bottom: 15px; } .filter-help { display: none; } .more-filters { padding-top: 13px; } .more-filters summary { margin-bottom: 0; min-height: 32px; align-items: center; } .more-filters[open] summary { margin-bottom: 16px; } .directory-empty { padding: 35px 22px 24px; } .empty-benefits { gap: 12px; flex-direction: column; } .booking-steps { gap: 22px; margin-bottom: 26px; } .booking-steps .step { font-size: 12px; gap: 7px; } .booking-steps .step > span { width: 25px; height: 25px; } .booking-panel { padding: 25px; } .summary-card { padding: 25px; } .summary-card h3 { font-size: 22px; } .profile-booking { position: static; } .profile-heading { flex-direction: row; padding: 24px; gap: 20px; } .profile-photo { width: 95px; height: 115px; } .profile-heading h1 { font-size: 25px; } .profile-section { padding: 25px; } .profile-heading .tutor-tags { display: none; } }
@media (max-width: 420px) { .form-grid { grid-template-columns: 1fr; gap: 18px; } .booking-panel { padding: 22px 18px; } .booking-steps { gap: 14px; } .booking-steps .step { font-size: 10px; gap: 5px; } .booking-steps .step > span { width: 23px; height: 23px; font-size: 10px; } .form-actions { align-items: stretch; flex-direction: column; text-align: center; gap: 12px; } .form-actions .button { justify-content: center; } .form-actions .text-link { padding: 10px 0; } .review-list > div { grid-template-columns: 1fr; gap: 7px; } .results-heading { flex-wrap: wrap; gap: 8px; } .tutor-card { padding: 20px; } .tutor-photo { width: 65px; height: 65px; } .tutor-card-top { gap: 14px; } .tutor-card h3 { font-size: 20px; } .tutor-actions { flex-direction: column; } .profile-heading { flex-direction: column; } .time-slots { grid-template-columns: 1fr; } .booking-success { padding: 30px 22px; } .booking-success h2 { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .loading::before { animation: none; } }
@media (max-width: 767px) { .field input, .field select, .field textarea { font-size: 16px; } }
.empty-state { max-width: 600px; margin: 40px auto; padding: 48px 36px; text-align: center; }
.empty-state h1 { font-size: clamp(23px, 3vw, 30px); margin: 14px 0 16px; }
.empty-state p { color: #64748b; font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.empty-state .form-actions { justify-content: center; gap: 14px; }
#whatsapp-inquiry { background: #25d366; border-color: #25d366; box-shadow: 0 4px 14px rgba(37, 211, 102, .3); }
#whatsapp-inquiry:hover { background: #20ba5a; border-color: #20ba5a; box-shadow: 0 6px 18px rgba(37, 211, 102, .45); }
