/* Student program registration — modern checkout UI (matches site wizard) */
.sp-reg-form {
    --sp-accent: var(--theme-color, #f41e1e);
    --sp-accent-soft: rgba(244, 30, 30, 0.08);
    --sp-accent-border: rgba(244, 30, 30, 0.35);
    --sp-surface: #f8fafc;
    --sp-border: rgba(0, 0, 0, 0.08);
    --sp-muted: #6b7280;
}

.sp-reg-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

.sp-reg-form .form-control,
.sp-reg-form .form-select {
    border-radius: 10px;
    border-color: #e5e7eb;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
}

.sp-reg-form .form-control:focus,
.sp-reg-form .form-select:focus {
    border-color: var(--sp-accent-border);
    box-shadow: 0 0 0 3px var(--sp-accent-soft);
}

.sp-reg-form .checkout-step-error:not([hidden]) {
    display: block;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-weight: 500;
}
.sp-reg-program-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--sp-accent-soft);
    color: var(--sp-accent);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.sp-reg-program-chip i {
    font-size: 0.85rem;
}

/* Section blocks */
.sp-form-section {
    margin-bottom: 1.75rem;
}

.sp-form-section__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.sp-form-section__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--sp-accent-soft);
    color: var(--sp-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.sp-form-section__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #111;
}

.sp-form-section__hint {
    font-size: 0.82rem;
    color: var(--sp-muted);
    margin: 0.15rem 0 0;
}

/* Child card */
.sp-child-block {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    padding: 1.35rem 1.35rem 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sp-child-block:not(:first-child) {
    border-color: rgba(244, 30, 30, 0.15);
}

.sp-child-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--sp-border);
}

.sp-child-block__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: #111;
}

.sp-child-block__badge-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--sp-accent);
    color: #fff;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sp-child-block .btn-remove-sibling {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
}

/* Choice cards (pricing, transport, discount) */
.sp-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.sp-choice-grid--wide {
    grid-template-columns: 1fr;
}

.sp-choice-card {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    margin: 0;
    height: 100%;
}

.sp-choice-card:hover {
    border-color: var(--sp-accent-border);
    background: rgba(244, 30, 30, 0.02);
}

.sp-choice-card:has(input:checked) {
    border-color: var(--sp-accent-border);
    box-shadow: 0 0 0 3px var(--sp-accent-soft);
    background: rgba(244, 30, 30, 0.03);
}

.sp-choice-card:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.sp-choice-card input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--sp-accent);
}

.sp-choice-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.sp-choice-card__title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #111;
    line-height: 1.35;
}

.sp-choice-card__meta {
    font-size: 0.8rem;
    color: var(--sp-muted);
    line-height: 1.4;
}

.sp-choice-card__price {
    font-weight: 700;
    color: var(--sp-accent);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

/* Schedule blocks */
.sp-schedule-block {
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
    background: var(--sp-surface);
}

.sp-schedule-block:has(.sp-child-schedule:checked) {
    border-color: var(--sp-accent-border);
    background: rgba(244, 30, 30, 0.02);
}

.sp-schedule-block__main {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    margin: 0;
}

.sp-schedule-block__main input {
    margin-top: 0.25rem;
    accent-color: var(--sp-accent);
}

.sp-period-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--sp-border);
}

.sp-period-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s;
    margin: 0;
}

.sp-period-chip:has(input:checked) {
    border-color: var(--sp-accent);
    background: var(--sp-accent-soft);
    color: var(--sp-accent);
    font-weight: 600;
}

.sp-period-chip input {
    display: none;
}

/* Transport toggle */
.sp-segmented {
    display: inline-flex;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 12px;
    gap: 4px;
    margin-bottom: 1rem;
}

.sp-segmented__item {
    margin: 0;
    cursor: pointer;
}

.sp-segmented__item input {
    display: none;
}

.sp-segmented__item span {
    display: inline-block;
    padding: 0.5rem 1.15rem;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sp-muted);
    transition: all 0.2s;
}

.sp-segmented__item:has(input:checked) span {
    background: #fff;
    color: var(--sp-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Add sibling bar */
.sp-add-sibling-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.15rem;
    border: 2px dashed #e5e7eb;
    border-radius: 14px;
    background: var(--sp-surface);
    margin-bottom: 1.75rem;
}

.sp-add-sibling-bar__text {
    font-size: 0.85rem;
    color: var(--sp-muted);
    margin: 0;
    max-width: 420px;
}

#btn-add-sibling {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-color: var(--sp-accent);
    color: var(--sp-accent);
}

#btn-add-sibling:hover {
    background: var(--sp-accent);
    color: #fff;
}

#btn-add-sibling:disabled {
    opacity: 0.5;
}

/* Guardian card */
.sp-guardian-card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    padding: 1.35rem;
    margin-bottom: 1.75rem;
}

/* Discount section */
.sp-admin-discount-note {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.15rem;
    margin-top: 1.25rem;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.08);
    border: 1px solid rgba(13, 110, 253, 0.15);
    color: #0b3d6e;
}

.sp-admin-discount-note i {
    margin-top: 0.15rem;
    color: #0d6efd;
}

.sp-child-id-wrap {
    margin-top: 0.5rem;
}

.sp-discount-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 1.35rem;
    margin-bottom: 1rem;
}

.sp-discount-card .sp-choice-grid {
    margin-bottom: 1rem;
}

.sp-discount-warning {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #fcd34d;
    font-size: 0.82rem;
    color: #92400e;
    line-height: 1.55;
}

.sp-discount-warning i {
    color: #d97706;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* Sibling ID upload */
.sp-sibling-id-wrap {
    margin-bottom: 1rem;
}

.sp-sibling-id-wrap .form-control {
    border-style: dashed;
    background: #fafafa;
}

/* Step footer note */
.sp-reg-footer-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--sp-muted);
    padding: 1rem;
    background: var(--sp-surface);
    border-radius: 12px;
    margin-top: 0.5rem;
}

/* Step 2 — guidelines & medical */
.sp-reg-guidelines {
    font-size: 0.85rem;
    line-height: 1.65;
}

.sp-reg-guidelines__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 991px) {
    .sp-reg-guidelines__cols {
        grid-template-columns: 1fr;
    }
}

.sp-reg-guidelines ol {
    padding-inline-start: 1.1rem;
    margin: 0;
}

.sp-reg-guidelines li {
    margin-bottom: 0.45rem;
}

.sp-reg-guidelines li.highlight {
    color: var(--sp-accent);
    font-weight: 600;
}

.sp-medical-card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.sp-signature-box {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    padding: 1.15rem;
    margin-top: 1.25rem;
}

.sp-signature-box .signature-pad-wrap {
    border-radius: 10px !important;
    overflow: hidden;
}

/* Summary enhancements */
.sp-reg-summary .subscription-summary-list li {
    font-size: 0.9rem;
}

.sp-reg-summary #quote-sibling-row strong,
.sp-reg-summary #quote-card-row strong {
    color: #16a34a;
}

/* Payment step */
.sp-payment-review {
    background: var(--sp-surface);
    border-radius: 14px;
    padding: 1.15rem;
    border: 1px solid var(--sp-border);
}

.sp-payment-steps {
    border-radius: 14px;
    border: none;
    background: #eff6ff;
}

.sp-payment-soon-badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
}

.sp-electronic-pay-card {
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    padding: 1.15rem;
    background: #fff;
    position: relative;
}

.sp-electronic-pay-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.sp-electronic-pay-card__title {
    font-weight: 700;
}

.sp-electronic-pay-card__brands {
    display: flex;
    gap: 0.65rem;
    font-size: 1.65rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.sp-electronic-pay-card__fields {
    opacity: 0.72;
    pointer-events: none;
}

.subscription-payment-option__body {
    position: relative;
    width: 100%;
}

.subscription-payment-options--cards .subscription-payment-option:has(input:checked) {
    border-color: var(--theme-color, #c8102e);
    background: #fff8f8;
}

/* Actions */
.checkout-wizard__actions .btn-primary {
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
}

.checkout-wizard__actions .btn-success {
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
}

.checkout-wizard__actions .btn-outline-secondary {
    border-radius: 10px;
}

@media (max-width: 767px) {
    .sp-choice-grid {
        grid-template-columns: 1fr;
    }

    .sp-add-sibling-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .sp-child-block {
        padding: 1rem;
    }
}

/* ── Program show page (unchanged utilities) ── */
.sp-flyer-hero {
    background: linear-gradient(135deg, #1a6fb5 0%, #0d4a82 55%, #0a3d6e 100%);
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.sp-flyer-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

@media (max-width: 991px) {
    .sp-flyer-hero__inner {
        grid-template-columns: 1fr;
    }
}

.sp-flyer-hero__tagline {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.sp-flyer-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sp-flyer-hero__badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.sp-flyer-hero img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.sp-activity-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #e8f4fc;
    color: #0d4a82;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
}

.sp-schedule-card {
    border-left: 4px solid var(--sp-accent);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.sp-plain-table {
    width: 100%;
    border-collapse: collapse;
}

.sp-plain-table th,
.sp-plain-table td {
    border: 1px solid #ccc;
    padding: 0.5rem 0.75rem;
    text-align: right;
    vertical-align: middle;
}

.sp-plain-table thead th {
    font-weight: 600;
    background: transparent;
}

.sp-timetable-tabs .nav-link {
    font-size: 0.9rem;
    color: #444;
    border-color: #ccc;
}

.sp-timetable-tabs .nav-link.active {
    font-weight: 600;
    background: transparent;
    border-bottom-color: #fff;
}

.sp-timetable-day-pair {
    font-weight: 600;
}

.sp-timetable-grid {
    min-width: 640px;
}

.sp-timetable-grid__group-col {
    min-width: 120px;
    white-space: nowrap;
}

.sp-timetable-grid__slot-col {
    text-align: center;
    min-width: 90px;
    font-size: 0.9rem;
}

.sp-timetable-legend span {
    display: inline-block;
    margin-bottom: 0.25rem;
}

.sp-transport-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid #eee;
}

.sp-transport-item.unavailable {
    opacity: 0.55;
}

.sp-price-card {
    text-align: center;
    padding: 1.25rem;
    border: 2px solid #e8f4fc;
    border-radius: 10px;
    transition: border-color 0.2s;
}

.sp-price-card:hover {
    border-color: #1a6fb5;
}

.sp-price-card strong {
    font-size: 1.5rem;
    color: #0d4a82;
}
