.purchase-page { background: #f8fafc; color: #1f2937; }
.purchase-brand { display: block; width: 150px; height: 60px; }
.purchase-brand img { width: 150px; height: 60px; object-fit: contain; object-position: left center; }
.purchase-container { padding-top: 58px; padding-bottom: 72px; }
.purchase-heading { max-width: 760px; margin: 0 auto 38px; }
.purchase-heading h1 { color: #222d42; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin: 10px 0 12px; }
.purchase-heading p { color: #64748b; font-size: 1.1rem; margin: 0; }
.purchase-eyebrow, .cart-kicker { color: #2563eb; font-size: .75rem; font-weight: 700; letter-spacing: .14em; }
.purchase-panel, .cart-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 10px 30px rgba(31,41,55,.06); padding: 28px; margin-bottom: 20px; }
.panel-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.panel-heading h2, .cart-panel h2 { color: #222d42; font-size: 1.25rem; font-weight: 600; margin: 0 0 4px; }
.panel-heading p { color: #64748b; margin: 0; font-size: .92rem; }
.step-number { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #2563eb; font-weight: 700; }
.form-label { color: #334155; font-size: .88rem; font-weight: 600; }
.form-control, .form-select { border-color: #cbd5e1; min-height: 46px; }
.form-select { text-overflow: ellipsis; }
.school-combobox { position: relative; }
.school-results { background: #fff; border: 1px solid #93c5fd; border-radius: 10px; box-shadow: 0 12px 28px rgba(15,23,42,.16); left: 0; max-height: 330px; overflow-y: auto; padding: 6px; position: absolute; right: 0; top: calc(100% + 5px); z-index: 20; }
.subject-combobox { position: relative; }
.subject-results { background: #fff; border: 1px solid #93c5fd; border-radius: 10px; box-shadow: 0 12px 28px rgba(15,23,42,.16); left: 0; max-height: 330px; overflow-y: auto; padding: 6px; position: absolute; right: 0; top: calc(100% + 5px); z-index: 20; }
.subject-result { appearance: none; background: #fff; border: 0; border-bottom: 1px solid #eef2f7; color: #1e293b; cursor: pointer; display: block; font-family: inherit; padding: 10px 12px; text-align: left; width: 100%; }
.subject-result:last-child { border-bottom: 0; }
.subject-result:hover, .subject-result:focus { background: #eff6ff; color: #1d4ed8; outline: 0; }
.school-results-hint { color: #64748b; font-size: .84rem; padding: 13px 12px; }
.school-result { appearance: none; background: #fff; border: 0; border-bottom: 1px solid #eef2f7; color: #1e293b; cursor: pointer; display: block; font-family: inherit; padding: 10px 12px; text-align: left; width: 100%; }
.school-result:last-child { border-bottom: 0; }
.school-result:hover, .school-result:focus { background: #eff6ff; outline: 0; }
.school-result strong, .school-result small { display: block; }
.school-result strong { color: #1e293b; font-size: .86rem; font-weight: 600; }
.school-result small { color: #64748b; font-size: .76rem; margin-top: 2px; }
.school-result-other { border-top: 1px solid #cbd5e1; margin-top: 4px; }
.other-field { border-left: 3px solid #2563eb; margin-top: 12px; padding-left: 12px; }
.other-field .form-label { margin-top: 2px; }
.course-row { background: #f8fafc; border: 1px solid #dbe3ef; border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.course-row-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.course-row-title { color: #222d42; font-weight: 600; }
.course-row-title i { color: #2563eb; }
.course-row .form-label { font-size: .8rem; margin-bottom: 5px; }
.subject-options { display: flex; flex-wrap: wrap; gap: 8px; }
.subject-option { position: relative; }
.subject-option input { position: absolute; opacity: 0; pointer-events: none; }
.subject-option label { border: 1px solid #cbd5e1; border-radius: 999px; color: #475569; cursor: pointer; font-size: .79rem; padding: 7px 11px; transition: all .2s ease; }
.subject-option input:checked + label { background: #eaf0ff; border-color: #2563eb; color: #1d4ed8; }
.course-remove { color: #64748b; font-size: .85rem; }
.course-remove:hover { color: #dc2626; }
.purchase-note { display: flex; gap: 14px; background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.purchase-note > i { font-size: 1.2rem; margin-top: 2px; }
.purchase-note strong { font-size: .92rem; }
.purchase-note p { color: #475569; font-size: .84rem; margin: 3px 0 0; }
.purchase-submit { width: 100%; margin-bottom: 20px; }
.cart-panel { top: 105px; }
.cart-panel h2 { font-size: 1.45rem; margin-top: 8px; }
.cart-empty { color: #94a3b8; font-size: .9rem; padding: 18px 0; }
.cart-items { border-top: 1px solid #e5e7eb; margin-top: 12px; }
.cart-item { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eef2f7; font-size: .85rem; }
.cart-item small { color: #64748b; display: block; margin-top: 3px; }
.cart-line, .cart-total { display: flex; justify-content: space-between; gap: 16px; padding-top: 15px; font-size: .88rem; }
.cart-line { color: #64748b; }
.cart-total { border-top: 1px solid #cbd5e1; color: #222d42; font-size: 1rem; margin-top: 16px; padding-top: 18px; }
.cart-total strong { color: #f07800; font-size: 1.35rem; }
.cart-footnote { color: #94a3b8; font-size: .76rem; line-height: 1.5; margin: 16px 0 0; }
.review-modal .modal-header h2 { color: #222d42; font-size: 1.25rem; }
.review-school { background: #f8fafc; border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.review-course { border-bottom: 1px solid #e5e7eb; padding: 10px 0; }
.review-course:last-child { border-bottom: 0; }
.review-course small { color: #64748b; display: block; }
.review-total { display: flex; justify-content: space-between; font-weight: 700; margin-top: 14px; }
.review-pending { background: #fff7ed; border-radius: 8px; color: #9a3412; font-size: .85rem; margin: 16px 0 0; padding: 12px; }
.purchase-footer { margin-top: 0; }
@media (max-width: 991.98px) { .purchase-container { padding-top: 38px; } .cart-panel { position: static !important; } }
