/* PSCC Public Styles - inherits the active theme fonts (no remote fonts). */

.pscc-sessions-list,
.pscc-admission-form-wrapper,
.pscc-payment-page,
.pscc-application-status,
.pscc-dashboard,
.pscc-auth-page {
    font-family: 'Bai Jamjuree', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Enrollment Fee payment plan (v1.54.0) */
.pscc-fee-plan {
    margin: 16px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--pscc-input-border);
    border-radius: 6px;
    background: #f9fafb;
}

.pscc-fee-plan h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--pscc-navy);
}

.pscc-plan-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 14px;
    cursor: pointer;
}

.pscc-plan-option input[type="radio"] {
    width: auto;
    margin: 3px 0 0;
    flex: 0 0 auto;
}

.pscc-fee-balance,
.pscc-fee-settled {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.pscc-fee-balance {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.pscc-fee-settled {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Pre-Registration read-only copies (v1.54.0) */
.pscc-field-locked .pscc-locked-input {
    background: #f4f6f9;
    border-style: dashed;
    color: #334155;
    cursor: default;
}

.pscc-field-locked .pscc-locked-input:focus {
    border-color: var(--pscc-input-border);
    box-shadow: none;
    outline: none;
}

.pscc-field-locked .pscc-locked-note {
    margin: 4px 0 0;
    font-size: 12px;
    font-style: italic;
    color: #6b7280;
}

/* Modern Field Styling */
.pscc-field input[type="text"],
.pscc-field input[type="number"],
.pscc-field input[type="email"],
.pscc-field input[type="tel"],
.pscc-field input[type="date"],
.pscc-field input[type="password"],
.pscc-field select,
.pscc-field textarea,
.pscc-auth-form input[type="text"],
.pscc-auth-form input[type="email"],
.pscc-auth-form input[type="password"],
.pscc-auth-form input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pscc-input-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.pscc-field input:focus,
.pscc-field select:focus,
.pscc-field textarea:focus,
.pscc-auth-form input:focus {
    border-color: var(--pscc-navy);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
    outline: none;
}

.pscc-field input::placeholder,
.pscc-field textarea::placeholder {
    color: var(--pscc-faint);
    opacity: 1;
}

.pscc-sessions-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pscc-sessions-list h3 {
    color: var(--pscc-navy);
    margin-bottom: 20px;
    font-family: inherit;
}

.pscc-sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.pscc-session-card {
    background: #fff;
    border: 1px solid var(--pscc-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pscc-session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pscc-session-card h4 {
    color: var(--pscc-navy);
    margin: 0 0 16px 0;
    font-size: 18px;
    font-family: inherit;
}

.pscc-session-card p {
    margin: 8px 0;
    color: var(--pscc-slate);
    font-size: 14px;
}

.pscc-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.pscc-btn-primary {
    background: var(--pscc-navy);
    color: #fff;
}

.pscc-btn-primary:hover {
    background: var(--pscc-navy-hover);
    color: #fff;
}

.pscc-btn-outline {
    background: #fff;
    color: var(--pscc-navy);
    border: 2px solid var(--pscc-navy);
}

.pscc-btn-outline:hover {
    background: var(--pscc-navy);
    color: #fff;
}

/* Admission Form - Fixed overlapping fields */
.pscc-admission-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.pscc-application-form {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pscc-form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--pscc-border);
}

.pscc-form-section:last-child {
    border-bottom: none;
}

.pscc-section-note {
    background: var(--pscc-info-bg);
    border-left: 4px solid var(--pscc-info-text);
    padding: 10px 14px;
    margin: 0 0 16px;
    font-size: 14px;
}
.pscc-kit-tagline {
    margin: 0 0 12px;
    font-size: 14px;
}
.pscc-section-title {
    color: var(--pscc-navy);
    margin: 0 0 20px 0;
    font-size: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pscc-amber);
    font-family: inherit;
}

.pscc-form-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pscc-field {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.pscc-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--pscc-ink);
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
}

.pscc-field .required {
    color: var(--pscc-danger);
}

.pscc-field input[type="text"],
.pscc-field input[type="number"],
.pscc-field input[type="email"],
.pscc-field input[type="tel"],
.pscc-field input[type="date"],
.pscc-field select,
.pscc-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pscc-border-dark);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.pscc-field input::placeholder,
.pscc-field textarea::placeholder {
    color: var(--pscc-faint);
    opacity: 1;
}

.pscc-field input:focus,
.pscc-field select:focus,
.pscc-field textarea:focus {
    border-color: var(--pscc-navy);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
    outline: none;
}

.pscc-field input[type="file"] {
    padding: 8px;
    border: 1px dashed var(--pscc-border-dark);
    border-radius: 6px;
    width: 100%;
    background: var(--pscc-bg-soft);
    cursor: pointer;
    font-family: inherit;
}

.pscc-field-full {
    grid-column: 1 / -1;
}

.pscc-field-half {
    grid-column: span 1;
}

.pscc-radio-group,
.pscc-checkbox-label {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.pscc-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-family: inherit;
}

.pscc-eligibility-warning {
    background: var(--pscc-warn-bg);
    border: 1px solid var(--pscc-amber);
    color: var(--pscc-warn-text);
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 13px;
    font-family: inherit;
}

.pscc-form-submit {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--pscc-border);
}

.pscc-form-submit .pscc-btn {
    padding: 14px 40px;
    font-size: 16px;
}

/* Wizard Styles */
.pscc-wizard {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.pscc-wizard-progress {
    margin-bottom: 32px;
}

.pscc-progress-bar {
    height: 6px;
    background: var(--pscc-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.pscc-progress-fill {
    height: 100%;
    background: var(--pscc-navy);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.pscc-progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.pscc-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.pscc-progress-step.active {
    opacity: 1;
}

.pscc-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--pscc-border);
    color: var(--pscc-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.pscc-progress-step.active .pscc-step-number {
    background: var(--pscc-navy);
    color: white;
}

.pscc-step-label {
    font-size: 12px;
    color: var(--pscc-muted);
    text-align: center;
}

.pscc-progress-step.active .pscc-step-label {
    color: var(--pscc-navy);
    font-weight: 500;
}

.pscc-form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.pscc-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pscc-wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--pscc-border);
}

.pscc-review-content {
    background: var(--pscc-bg-soft);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Rounded Buttons */
.pscc-btn,
.button,
.button-primary,
.button-secondary {
    border-radius: 6px;
}

/* Messages */
.pscc-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.pscc-message-warning {
    background: var(--pscc-warn-bg);
    border: 1px solid var(--pscc-amber);
    color: var(--pscc-warn-text);
}
.pscc-message-success {
    background: var(--pscc-success-bg);
    border: 1px solid var(--pscc-green);
    color: var(--pscc-success-text);
}

/* Mobile Responsive - Optimized for 90% mobile users */
@media (max-width: 768px) {
    .pscc-form-fields {
        grid-template-columns: 1fr;
    }

    .pscc-session-card {
        padding: 16px;
    }

    .pscc-application-form {
        padding: 16px;
    }

    .pscc-progress-steps {
        flex-wrap: wrap;
        gap: 4px;
    }

    .pscc-step-label {
        font-size: 9px;
    }

    .pscc-step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .pscc-wizard-nav {
        flex-direction: column;
        gap: 8px;
    }

    .pscc-wizard-nav .pscc-btn {
        width: 100%;
        text-align: center;
    }

    .pscc-sessions-grid {
        grid-template-columns: 1fr;
    }

    .pscc-auth-card {
        padding: 20px;
        margin: 20px;
    }

    .pscc-payment-option {
        padding: 16px;
    }

    .pscc-field input,
    .pscc-field select,
    .pscc-field textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Review summary */
.pscc-review-section {
    color: var(--pscc-navy);
    margin: 20px 0 8px;
    font-size: 15px;
}
.pscc-review-section:first-child {
    margin-top: 0;
}
.pscc-review-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--pscc-border);
    border-radius: 6px;
    overflow: hidden;
}
.pscc-review-table th,
.pscc-review-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--pscc-border);
    font-size: 14px;
    vertical-align: top;
}
.pscc-review-table tr:last-child th,
.pscc-review-table tr:last-child td {
    border-bottom: none;
}
.pscc-review-table th {
    width: 35%;
    color: var(--pscc-slate);
    font-weight: 600;
    background: var(--pscc-bg-soft);
}
.pscc-review-empty {
    color: var(--pscc-faint);
}

/* Frontend notices */
.pscc-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.pscc-message-error {
    background: var(--pscc-danger-bg);
    color: var(--pscc-danger-text);
}
.pscc-message-success {
    background: var(--pscc-success-bg);
    color: var(--pscc-success-text);
}
.pscc-message-warning {
    background: var(--pscc-warn-bg);
    color: var(--pscc-warn-text);
}
.pscc-error-list {
    margin: 8px 0 0;
    padding-left: 20px;
}
.pscc-error-list li {
    margin-bottom: 4px;
}

/* Clickable progress steps */
.pscc-progress-step {
    cursor: default;
}
.pscc-progress-step.active {
    cursor: pointer;
}
.pscc-progress-step.current .pscc-step-number {
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.25);
}

/* Timeline states */
.pscc-timeline-item.completed::before {
    background: #48bb78;
}
.pscc-timeline-item.current::before {
    background: var(--pscc-blue);
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.2);
}
.pscc-timeline-item.rejected::before {
    background: var(--pscc-danger);
}
.pscc-timeline-item.rejected .label {
    color: #c53030;
}
.pscc-timeline-item.waiting::before {
    background: #d69e2e;
}
.pscc-timeline-item.waiting .label {
    color: #975a16;
}
.pscc-muted {
    color: var(--pscc-muted);
}
.pscc-mode-form label {
    display: inline-block;
    margin: 0 18px 10px 0;
    font-weight: 600;
}
.pscc-mode-form .pscc-btn {
    margin-top: 4px;
}
.pscc-field-notice {
    margin-top: 4px;
    font-size: 12px;
    color: #975a16;
    background: #fef3c7;
    border-left: 3px solid #d69e2e;
    padding: 4px 8px;
    border-radius: 0 4px 4px 0;
}

/* Payment page */
.pscc-payment-steps {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--pscc-ink);
}
.pscc-payment-steps li {
    margin-bottom: 6px;
}
.pscc-challan-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ebf8ff;
    border: 1px dashed var(--pscc-blue);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pscc-challan-label {
    font-size: 13px;
    font-weight: 600;
    color: #2b6cb0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pscc-challan-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--pscc-navy);
    letter-spacing: 1px;
}
.pscc-bank-note {
    color: #744210;
    font-style: italic;
}

/* ============================================================
   PSCC Frontend Design System - auth, dashboard, status, payment
   (consolidated from inline shortcode styles; single source)
   ============================================================ */

/* Generic card */
.pscc-card {
    background: #fff;
    border: 1px solid var(--pscc-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.pscc-card > h2:first-child,
.pscc-card > h3:first-child {
    margin-top: 0;
    color: var(--pscc-navy);
}

/* Auth pages */
.pscc-auth-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.pscc-auth-card h2 {
    color: var(--pscc-navy);
    margin-top: 0;
    text-align: center;
}
.pscc-auth-footer {
    text-align: center;
    margin-top: 16px;
    color: var(--pscc-slate);
    font-size: 14px;
}
.pscc-auth-footer a {
    color: var(--pscc-navy);
    text-decoration: none;
    font-weight: 500;
}
.pscc-auth-footer a:hover {
    text-decoration: underline;
}

/* Applicant dashboard */
.pscc-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.pscc-dashboard-header h2 {
    color: var(--pscc-navy);
    margin: 0;
}

/* Frontend data tables (dashboard + status + payment) */
.pscc-applications-table,
.pscc-payments-table {
    width: 100%;
    border-collapse: collapse;
}
.pscc-payments-table {
    margin-top: 12px;
}
.pscc-applications-table th,
.pscc-applications-table td,
.pscc-payments-table th,
.pscc-payments-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--pscc-border);
    font-size: 14px;
}
.pscc-applications-table th,
.pscc-payments-table th {
    background: var(--pscc-bg-soft);
    color: var(--pscc-ink);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.pscc-applications-table code,
.pscc-payments-table code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* Status pills (same language as admin) */
.pscc-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.pscc-status-submitted { background: var(--pscc-info-bg); color: var(--pscc-info-text); }
.pscc-status-payment_pending_verification,
.pscc-status-interview_pending,
.pscc-status-pending { background: var(--pscc-warn-bg); color: var(--pscc-warn-text); }
.pscc-status-registration_completed,
.pscc-status-paid,
.pscc-status-selected,
.pscc-status-admission_confirmed { background: var(--pscc-success-bg); color: var(--pscc-success-text); }
.pscc-status-tested,
.pscc-status-scheduled,
.pscc-status-interviewed { background: var(--pscc-info-bg); color: var(--pscc-info-text); }
.pscc-status-rejected,
.pscc-status-payment_rejected,
.pscc-status-did_not_report,
.pscc-status-failed { background: var(--pscc-danger-bg); color: var(--pscc-danger-text); }

/* Detail grids */
.pscc-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.pscc-detail-grid > div {
    background: var(--pscc-bg-soft);
    padding: 12px;
    border-radius: 6px;
}
.pscc-detail-grid label {
    display: block;
    font-size: 12px;
    color: var(--pscc-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Timeline */
.pscc-timeline {
    position: relative;
    padding-left: 24px;
    margin-top: 16px;
}
.pscc-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--pscc-border);
}
.pscc-timeline-item {
    position: relative;
    padding-bottom: 12px;
}
.pscc-timeline-item:last-child {
    padding-bottom: 0;
}
.pscc-timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pscc-success-bg);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--pscc-border);
}
.pscc-timeline-item.pending::before {
    background: var(--pscc-border);
}
.pscc-timeline-item .time {
    font-size: 12px;
    color: var(--pscc-muted);
}
.pscc-timeline-item .label {
    font-weight: 500;
    margin-top: 2px;
}

/* Payment page */
.pscc-application-info p {
    margin: 8px 0;
}
.pscc-eligibility-warnings {
    background: var(--pscc-warn-bg);
    padding: 16px;
    border-radius: 6px;
    margin: 16px 0;
}
.pscc-eligibility-warnings h3 {
    margin-top: 0;
}
.pscc-fee-amount {
    text-align: center;
    padding: 24px;
    background: var(--pscc-bg-soft);
    border-radius: 8px;
    margin: 20px 0;
}
.pscc-fee-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--pscc-navy);
}
.pscc-fee-label {
    color: var(--pscc-muted);
    font-size: 14px;
    margin-top: 8px;
}
.pscc-fee-note {
    color: var(--pscc-muted);
    font-size: 13px;
    margin: 6px 0 0;
    font-style: italic;
}
.pscc-payment-option {
    background: #fff;
    border: 1px solid var(--pscc-border);
    padding: 20px;
    margin: 16px 0;
    border-radius: 8px;
}
.pscc-payment-option > h3:first-child {
    margin-top: 0;
    color: var(--pscc-navy);
}
.pscc-bank-details {
    background: var(--pscc-bg-soft);
    padding: 12px 16px;
    border-radius: 6px;
    margin: 12px 0;
}
.pscc-bank-details p {
    margin: 4px 0;
    font-size: 13px;
}
.pscc-receipt-form {
    width: 100%;
    margin: 16px 0;
}
.pscc-receipt-form td {
    padding: 6px;
    vertical-align: middle;
}
.pscc-payment-paid {
    background: var(--pscc-success-bg);
    color: var(--pscc-success-text);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}
.pscc-payment-pending {
    background: var(--pscc-warn-bg);
    color: var(--pscc-warn-text);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

/* Small button variant */
.pscc-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .pscc-auth-card {
        padding: 24px 20px;
    }
    .pscc-fee-number {
        font-size: 28px;
    }
    .pscc-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Info badge */
.pscc-badge-info {
    background: var(--pscc-info-bg);
    color: var(--pscc-info-text);
}

/* Matched-payment status pill */
.pscc-status-matched {
    background: #e9d8fd;
    color: #553c9a;
}

/* Large inline code (IDs, order numbers) */
.pscc-code-lg {
    font-size: 16px;
    padding: 4px 8px;
    background: #f0f0f1;
    border-radius: 4px;
}

/* Waiting-list + enrollment-fee-pending status pills */
.pscc-status-waiting,
.pscc-status-admission_payment_pending {
    background: var(--pscc-warn-bg);
    color: var(--pscc-warn-text);
}

/* Spacing utilities */
.pscc-mt-20 {
    margin-top: 20px;
}
.pscc-mt-24 {
    margin-top: 24px;
}

/* Muted inline hint */
.pscc-hint {
    color: var(--pscc-muted);
}

.pscc-mb-16 {
    margin-bottom: 16px;
}

/* Centered gateway-redirect panel (standalone page) */
.pscc-redirect-box {
    max-width: 520px;
    margin: 60px auto;
    text-align: center;
}

/* Login-first gate on the admission form. */
.pscc-login-required {
    max-width: 420px;
    margin: 24px auto;
    padding: 24px;
    border: 1px solid var(--pscc-border);
    border-radius: 8px;
    background: #fff;
}
.pscc-login-required .login-username label,
.pscc-login-required .login-password label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.pscc-login-required .login-username input,
.pscc-login-required .login-password input {
    width: 100%;
    max-width: 100%;
}

/* Modern file picker: styled like the plugin's buttons. */
.pscc-wizard input[type="file"],
.pscc-payment-page input[type="file"] {
	font-size: 14px;
	color: #475569;
	max-width: 100%;
}
.pscc-wizard input[type="file"]::file-selector-button,
.pscc-wizard input[type="file"]::-webkit-file-upload-button,
.pscc-payment-page input[type="file"]::file-selector-button,
.pscc-payment-page input[type="file"]::-webkit-file-upload-button {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--pscc-navy);
	background: #eef2f7;
	border: 1px solid var(--pscc-border-soft);
	border-radius: 6px;
	padding: 8px 16px;
	margin-right: 10px;
	cursor: pointer;
}
.pscc-wizard input[type="file"]:hover::file-selector-button,
.pscc-wizard input[type="file"]:hover::-webkit-file-upload-button,
.pscc-payment-page input[type="file"]:hover::file-selector-button,
.pscc-payment-page input[type="file"]:hover::-webkit-file-upload-button {
	background: var(--pscc-border);
	border-color: var(--pscc-slate-light);
}
.pscc-wizard input[type="file"]:focus-visible,
.pscc-payment-page input[type="file"]:focus-visible {
	outline: 2px solid var(--pscc-navy);
	outline-offset: 2px;
	border-radius: 6px;
}

/* v1.29: conditional sections/fields + applicant status meaning. */
.pscc-cond-hidden {
	display: none !important;
}
.pscc-status-meaning {
	background: #ebf4ff;
	border-left: 4px solid var(--pscc-blue);
	border-radius: 4px;
	padding: 12px 16px;
	margin: 16px 0;
}
.pscc-status-meaning p {
	margin: 6px 0;
}
/* v1.35.0: meaning labels are plain bold; the next-step callout keeps its green bar. */
.pscc-meaning-tag {
	font-weight: 700;
	margin-right: 4px;
}
/* v1.35.0: fill-time guidance — staff help text + live format hints. */
.pscc-help {
	color: var(--pscc-slate);
	font-size: 13px;
	margin: 4px 0 0;
}
.pscc-field-hint {
	color: var(--pscc-warn-text);
	font-size: 12px;
	margin-top: 4px;
}
.pscc-field-invalid {
	border-color: var(--pscc-amber) !important;
}
/* v1.35.0: applicant-facing confirm modal (never window.confirm). */
/* v1.37.0: modal styles moved to assets/css/pscc-design.css (one canonical definition). */
.pscc-next-callout {
	margin-top: 20px;
	background: #f0fff4;
	border: 1px solid #9ae6b4;
	border-left: 4px solid var(--pscc-green);
	border-radius: 4px;
	padding: 10px 12px;
}
/* v1.34.0: every code element in the plugin uses the college font. */
.pscc-sessions-list code,
.pscc-admission-form-wrapper code,
.pscc-payment-page code,
.pscc-application-status code,
.pscc-dashboard code,
.pscc-auth-page code {
	font-family: 'Bai Jamjuree', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Registration now collects the applicant profile as well as account credentials. */
.pscc-registration-page .pscc-auth-card { max-width: 760px; margin: 0 auto; }
.pscc-registration-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.pscc-registration-form .pscc-field { margin: 0; min-width: 0; }
.pscc-registration-form .pscc-auth-footer,
.pscc-registration-form > button { grid-column: 1 / -1; }
.pscc-registration-form [hidden] { display: none !important; }
.pscc-registration-form select:disabled { background: #edf2f7; color: #4a5568; opacity: 1; }
@media (max-width: 600px) { .pscc-registration-form { grid-template-columns: 1fr; } }

/* Registration category and applicant-role options use matching vertical stacks. */
.pscc-registration-form .pscc-radio-group { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pscc-registration-form .pscc-hint { font-size: 12px; line-height: 1.4; color: #64748b; }

.pscc-status-test_passed, .pscc-status-enrollment_payment_verified { background: #dcfce7; color: #166534; }
.pscc-status-test_failed, .pscc-status-enrollment_payment_attention { background: #fee2e2; color: #991b1b; }

/* v1.62: feedback follows the application form's vertical field design. */
.pscc-feedback-form { display:flex; flex-direction:column; align-items:stretch; gap:14px; }
.pscc-feedback-heading { font:600 18px/1.4 'Bai Jamjuree',sans-serif; color:#1a365d; }
.pscc-feedback-form .pscc-feedback-input { display:block; width:100%; box-sizing:border-box; min-height:150px; padding:14px 16px; border:1px solid #cbd5e1; border-radius:10px; background:#f8fafc; color:#243449; font:400 15px/1.7 'Bai Jamjuree',sans-serif; resize:vertical; transition:border-color .15s,box-shadow .15s; }
.pscc-feedback-form .pscc-feedback-input:focus { outline:0; border-color:#416da2; box-shadow:0 0 0 3px #416da21f; background:white; }
.pscc-feedback-form .pscc-btn { align-self:flex-start; }

.pscc-date-display { box-sizing:border-box; width:100%; font:inherit; padding:10px 12px; border:1px solid #cbd5e0; border-radius:6px; }
.pscc-calendar.flatpickr-calendar { z-index:1000001; font-family:inherit; }
.pscc-date-picker { display:inline-flex; align-items:center; justify-content:center; width:28px; min-height:28px; margin-left:3px; padding:0; border:1px solid #cbd5e1; border-radius:4px; background:#f8fafc; color:#1a365d; cursor:pointer; }
.pscc-calendar-done { display:block; margin:8px auto; padding:5px 24px; border:0; border-radius:4px; background:#1a365d; color:white; cursor:pointer; }
.pscc-date-display { width:calc(100% - 34px); }
.pscc-status-test_failed { background:#fee2e2; color:#991b1b; }

/* v1.67: a single control row; isolate the calendar header from theme input styles. */
.pscc-date-control { display:inline-flex; align-items:center; gap:0; width:100%; min-width:0; vertical-align:middle; border:1px solid #cbd5e1; border-radius:7px; background:white; overflow:hidden; box-sizing:border-box; }
.pscc-date-control > input.pscc-date-display,.pscc-date-control > input[data-pscc-dob] { flex:1 1 0!important; width:0!important; min-width:0!important; max-width:none!important; margin:0!important; border:0!important; border-radius:0!important; box-shadow:none!important; padding:8px 10px!important; height:36px!important; min-height:36px!important; box-sizing:border-box!important; }
.pscc-date-control:focus-within { outline:2px solid #94a3b8; outline-offset:1px; }
.pscc-date-control > .pscc-date-picker { flex:0 0 36px; width:36px; height:36px; min-height:36px; margin:0; border:0; border-left:1px solid #e2e8f0; border-radius:0; background:#f1f5f9; font-size:22px; }
.pscc-calendar.flatpickr-calendar { font-family:'Bai Jamjuree',Arial,sans-serif; border:1px solid #cbd5e1; border-radius:10px; box-shadow:0 12px 32px #0f172a26; }
.pscc-calendar .flatpickr-months .flatpickr-month { height:48px; overflow:visible; }
.pscc-calendar .flatpickr-current-month { display:flex; align-items:center; justify-content:center; gap:4px; left:36px; width:calc(100% - 72px); height:48px; padding:4px 0; box-sizing:border-box; }
.pscc-calendar .flatpickr-current-month .flatpickr-monthDropdown-months { width:auto!important; min-width:0!important; max-width:calc(100% - 64px)!important; height:36px!important; min-height:36px!important; line-height:normal!important; padding:0 16px 0 4px!important; font-size:15px!important; border:0!important; box-shadow:none!important; background-color:transparent!important; }
.pscc-calendar .flatpickr-current-month .numInputWrapper { width:64px!important; min-width:64px; }
.pscc-calendar .flatpickr-current-month input.cur-year { width:100%!important; min-width:0!important; height:36px!important; min-height:36px!important; margin:0!important; padding:0 16px 0 4px!important; font-size:15px!important; border:0!important; box-shadow:none!important; }
.pscc-calendar .flatpickr-day.selected { background:#1a365d; border-color:#1a365d; }
.pscc-calendar .flatpickr-time input { min-height:0!important; height:100%!important; padding:0!important; border:0!important; border-radius:0!important; }

.pscc-application-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.pscc-application-cards > div { border:1px solid #e2e8f0; border-radius:8px; background:#f8fafc; padding:16px; overflow-wrap:anywhere; }
@media(max-width:480px){.pscc-application-cards { grid-template-columns:1fr; }}

.pscc-review-portrait { text-align:center; margin:18px; }.pscc-review-portrait img { width:132px; height:170px; object-fit:cover; border:1px solid #cbd5e1; border-radius:4px; }

.pscc-nbp-charges { background:#f7f9fc;border:1px solid #dce4ef;border-radius:10px;padding:18px;margin:18px 0; }.pscc-nbp-charges table{width:100%;border-collapse:collapse;font-size:13px}.pscc-nbp-charges th,.pscc-nbp-charges td{padding:10px 8px;border-bottom:1px solid #dce4ef;text-align:left}.pscc-nbp-charges h4{margin:0 0 10px;color:#1a365d}.pscc-nbp-option{border-top:4px solid #1a365d}.pscc-nbp-charges .description{font-size:12px;line-height:1.6;color:#526174}

.pscc-nbp-charges{overflow-x:auto}.pscc-nbp-charges table{width:100%;border-collapse:collapse}.pscc-nbp-charges th,.pscc-nbp-charges td{padding:10px 6px;text-align:left;border-bottom:1px solid #d6dfeb}

/* Keep history and long references inside the applicant card on every viewport. */
.pscc-applicant-portal,.pscc-applicant-dashboard,.pscc-payment-page{max-width:100%;min-width:0}
.pscc-applicant-portal *,.pscc-applicant-dashboard *,.pscc-payment-page *{box-sizing:border-box}
.pscc-payment-history{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.pscc-payment-history table{width:100%;table-layout:fixed;min-width:520px}
.pscc-payment-history th,.pscc-payment-history td{overflow-wrap:anywhere;white-space:normal}
.pscc-upload-status{font-size:13px;line-height:1.5;color:#36536b;margin:6px 0;overflow-wrap:anywhere}

/* Keep long test/real payment labels inside their own cell, never over the date. */
.pscc-payment-history .pscc-status{white-space:normal;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;line-height:1.4}
.pscc-payment-history td{vertical-align:middle}
.pscc-payment-history code{display:inline-block;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}

/* Phone-first applicant UI. Keep print styles and staff tables untouched. */
.pscc-mobile-step-count,.pscc-mobile-locked-hint { display:none; }
@media screen and (max-width:768px), screen and (pointer:coarse) and (max-width:1024px) {
    :is(.pscc-auth-page,.pscc-wizard,.pscc-dashboard,.pscc-application-status,.pscc-payment-page,.pscc-sessions-list,.pscc-admission-form-wrapper,.pscc-login-required) {
        min-width:0; max-width:100%; box-sizing:border-box; overflow-wrap:anywhere;
    }
    .pscc-sessions-list,.pscc-admission-form-wrapper,.pscc-wizard { padding:8px 0; }
    .pscc-admission-form-wrapper .pscc-wizard { padding:0; }
    .pscc-auth-page .pscc-auth-card,.pscc-application-form { padding:16px; margin:0; box-sizing:border-box; }
    :is(.pscc-dashboard,.pscc-application-status,.pscc-payment-page) .pscc-card,.pscc-session-card { padding:12px; margin-bottom:12px; min-width:0; }
    :is(.pscc-auth-page,.pscc-dashboard,.pscc-application-status,.pscc-payment-page,.pscc-sessions-list) :is(h2,h3,h4) { line-height:1.3; margin-top:0; margin-bottom:10px; }
    :is(.pscc-auth-page,.pscc-dashboard,.pscc-application-status,.pscc-payment-page,.pscc-sessions-list) p { margin:8px 0; }
    .pscc-auth-page h2,.pscc-dashboard-header h2 { font-size:22px; }
    .pscc-auth-form:not(.pscc-registration-form) { display:grid; gap:12px; }
    .pscc-form-fields,.pscc-registration-form { gap:12px; min-width:0; }
    .pscc-field { min-width:0; }
    .pscc-field label { margin-bottom:4px; line-height:1.4; }
    .pscc-form-section { margin-bottom:16px; padding-bottom:12px; }
    .pscc-section-title { font-size:18px; margin-bottom:12px; padding-bottom:6px; }
    .pscc-section-note,.pscc-message,.pscc-status-meaning,.pscc-eligibility-warnings { padding:10px 12px; margin:10px 0; }
    .pscc-section-note p:last-child { margin-bottom:0; }
    :is(.pscc-auth-page,.pscc-wizard,.pscc-payment-page,.pscc-application-status,.pscc-login-required) :is(input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]),select,textarea) {
        box-sizing:border-box; max-width:100%; min-width:0; min-height:44px; font-size:16px; line-height:1.4; padding:9px 10px;
    }
    :is(.pscc-auth-page,.pscc-wizard,.pscc-payment-page,.pscc-application-status) :is(input[type=radio],input[type=checkbox]) {
        width:20px; height:20px; min-width:20px; min-height:20px; margin:0; flex:0 0 20px;
    }
    .pscc-registration-form .pscc-radio-group { gap:0; align-items:stretch; }
    .pscc-registration-form .pscc-radio-group label,.pscc-wizard .pscc-radio-label,.pscc-wizard .pscc-checkbox-label,.pscc-mode-form label,.pscc-plan-option {
        display:flex; align-items:center; gap:8px; min-height:44px; margin:0; padding:4px 0; box-sizing:border-box; flex-wrap:nowrap;
    }
    .pscc-auth-form input[name=remember] { vertical-align:middle; margin-right:6px; }
    .pscc-auth-form .pscc-field:has(input[name=remember]) label { display:flex; align-items:center; min-height:44px; margin:0; }
    :is(.pscc-auth-page,.pscc-wizard,.pscc-dashboard,.pscc-application-status,.pscc-payment-page,.pscc-sessions-list,.pscc-login-required,.pscc-public-modal,.pscc-feedback-form) .pscc-btn {
        box-sizing:border-box; min-height:44px; max-width:100%; padding:10px 12px; font-size:16px; line-height:1.35; white-space:normal; text-align:center;
    }
    .pscc-auth-footer { margin-top:4px; }
    .pscc-doc-list { padding-left:18px; margin:8px 0; }
    .pscc-auth-footer a,.pscc-doc-list a { display:inline-flex; align-items:center; min-height:44px; max-width:100%; }
    .pscc-wizard-progress { margin-bottom:12px; }
    .pscc-wizard .pscc-form-step { animation:none; }
    .pscc-wizard .pscc-locked-note { display:none; }
    .pscc-mobile-locked-hint { display:block; margin:0 0 10px; color:var(--pscc-slate); font-size:13px; }
    .pscc-progress-bar { margin-bottom:8px; }
    .pscc-mobile-step-count { display:block; margin:0 0 6px; font-size:13px; color:var(--pscc-slate); }
    .pscc-progress-steps { gap:0; }
    .pscc-progress-step:not(.current) { display:none; }
    .pscc-progress-step.current { flex-direction:row; align-items:center; justify-content:flex-start; gap:8px; min-width:0; }
    .pscc-progress-step.current .pscc-step-label { font-size:14px; text-align:left; }
    .pscc-step-number { flex:0 0 26px; width:26px; height:26px; margin:0; }
    .pscc-wizard-nav { flex-direction:row; flex-wrap:wrap; gap:8px; margin-top:16px; padding-top:12px; }
    .pscc-wizard-nav .pscc-btn { flex:1 1 110px; width:auto; min-width:0; }
    .pscc-form-submit { margin-top:16px; padding-top:12px; }
    .pscc-review-content { padding:10px; margin-bottom:12px; }
    .pscc-review-table { table-layout:fixed; }
    .pscc-review-table th,.pscc-review-table td { padding:6px; overflow-wrap:anywhere; }
    .pscc-review-section { margin-top:12px; }
    :is(.pscc-auth-page,.pscc-wizard,.pscc-payment-page,.pscc-application-status) .pscc-date-control > input { height:44px!important; min-height:44px!important; font-size:16px; }
    :is(.pscc-auth-page,.pscc-wizard,.pscc-payment-page,.pscc-application-status) .pscc-date-control > .pscc-date-picker { flex-basis:44px; width:44px; height:44px; min-height:44px; }
    .pscc-calendar.flatpickr-calendar { max-width:calc(100vw - 12px); box-sizing:border-box; }
    .pscc-calendar :is(.flatpickr-days,.dayContainer) { max-width:100%; min-width:0; }
    .pscc-calendar-done { min-height:44px; font-size:16px; }
    .pscc-wizard input[type=file]::file-selector-button { min-height:44px; font-size:16px; padding:8px 10px; }
    .pscc-fee-amount { padding:12px; margin:12px 0; }
    .pscc-fee-number { font-size:28px; }
    .pscc-payment-option,.pscc-nbp-charges,.pscc-fee-plan { padding:12px; margin:12px 0; box-sizing:border-box; min-width:0; }
    .pscc-challan-number { font-size:18px; overflow-wrap:anywhere; min-width:0; }
    .pscc-dashboard-header { flex-direction:row; align-items:center; gap:8px; margin-bottom:12px; }
    .pscc-dashboard-header h2 { flex:1 1 160px; min-width:0; }
    .pscc-application-cards,.pscc-detail-grid { gap:8px; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .pscc-application-cards > div,.pscc-detail-grid > div { padding:10px; min-width:0; }
    .pscc-detail-grid label { font-size:11px; line-height:1.4; margin-bottom:3px; }
    :is(.pscc-application-status,.pscc-dashboard) .pscc-status { white-space:normal; max-width:100%; box-sizing:border-box; overflow-wrap:anywhere; }
    .pscc-timeline { margin-top:10px; }
    .pscc-timeline-item { padding-bottom:8px; }
    .pscc-feedback-form { gap:10px; }
    .pscc-feedback-form .pscc-feedback-input { min-height:110px; padding:10px; font-size:16px; line-height:1.5; }
    .pscc-login-required { margin:12px auto; padding:16px; }
    .pscc-public-modal-box { box-sizing:border-box; width:calc(100% - 24px); padding:16px; max-height:85vh; max-height:85dvh; overflow-y:auto; }
    .pscc-public-modal-actions { flex-wrap:wrap; }
    .pscc-public-modal-actions .pscc-btn { flex:1 1 110px; }
}
@media screen and (max-width:600px) {
    /* Preserve real table headers/roles for assistive technology; labels need no JS. */
    .pscc-dashboard .pscc-mobile-table,.pscc-payment-history .pscc-mobile-table { display:block; width:100%; min-width:0; margin:0; }
    .pscc-mobile-table thead { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; }
    .pscc-mobile-table tbody { display:block; }
    .pscc-mobile-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; padding:10px; margin:0 0 8px; border:1px solid var(--pscc-border); border-radius:8px; }
    .pscc-mobile-table tbody tr:last-child { margin-bottom:0; }
    .pscc-mobile-table td { display:block; min-width:0; padding:0; border:0; overflow-wrap:anywhere; white-space:normal; }
    .pscc-mobile-table td:first-child { grid-column:1 / -1; }
    .pscc-mobile-table td::before { content:attr(data-label); display:block; color:var(--pscc-slate); font-size:11px; font-weight:600; line-height:1.4; margin-bottom:3px; }
    .pscc-mobile-table .pscc-btn { width:100%; }
    .pscc-dashboard .pscc-mobile-table .pscc-btn { background:#f1f5f9; border:1px solid var(--pscc-border-dark); color:var(--pscc-navy); }
    .pscc-dashboard .pscc-mobile-table td:last-child:nth-child(even) { grid-column:1 / -1; }
    .pscc-payment-history { overflow:visible; }
}
@media screen and (max-width:359px) {
    .pscc-application-cards,.pscc-detail-grid { grid-template-columns:minmax(0,1fr); }
    .pscc-auth-page .pscc-auth-card,.pscc-application-form { padding:12px; }
}
@media (prefers-reduced-motion:reduce) {
    .pscc-wizard .pscc-form-step { animation:none; }
    .pscc-wizard .pscc-progress-fill { transition:none; }
}

/* Payment release / fixed bank charges: readable on narrow applicant screens. */
.pscc-current-psid {display:flex;flex-direction:column;gap:10px;margin:14px 0;padding:14px;background:#eef4fb;border:1px solid #cad8e7;border-radius:8px;min-width:0;}
.pscc-current-psid code {display:block;font-size:clamp(13px,3.9vw,20px);letter-spacing:.02em;overflow-wrap:anywhere;color:#1a365d;}
.pscc-nbp-charges table {width:100%;table-layout:fixed;}
.pscc-nbp-charges th,.pscc-nbp-charges td {white-space:normal;overflow-wrap:anywhere;padding:8px;text-align:left;}
.pscc-nbp-charges th {width:55%;}
@media screen and (max-width:600px) {.pscc-collection-held {padding:12px!important;}.pscc-nbp-charges th,.pscc-nbp-charges td {padding:6px;font-size:14px;}}

/* Applicant detail panel: explicit dark surfaces and white text, independent of host-theme colours. */
.pscc-application-status .pscc-application-details { background:#12263e; color:#fff; }
.pscc-application-status .pscc-application-details h2,
.pscc-application-status .pscc-application-details .pscc-application-cards strong,
.pscc-application-status .pscc-application-details .pscc-application-cards label,
.pscc-application-status .pscc-application-details .pscc-status-meaning p,
.pscc-application-status .pscc-application-details .pscc-meaning-tag { color:#fff; }
.pscc-application-details .pscc-application-cards > div { background:#1b354f; border-color:#49617c; }
.pscc-application-details .pscc-status-meaning { background:#203c5b; }
.pscc-application-details .pscc-next-callout { background:#153f3e; border-color:#71b69b; }
.pscc-application-details .pscc-status { background:#264b72; color:#fff; }

/* Dark website canvas: only text outside light cards is white. Never recolour
 * all headings globally: forms, tables, notices and admin screens stay dark-on-light. */
.pscc-dashboard .pscc-dashboard-header h2,
.pscc-sessions-list > h3,
.pscc-sessions-list > p,
.pscc-public-canvas-message { color:#fff; }
.pscc-wizard .pscc-wizard-progress .pscc-progress-step { opacity:1; }
.pscc-wizard .pscc-wizard-progress .pscc-step-label { color:#fff; }
.pscc-wizard .pscc-wizard-progress .pscc-step-number { background:#41546f; color:#fff; border:1px solid #aebcd0; }
.pscc-wizard .pscc-wizard-progress .active .pscc-step-number { background:#1a365d; color:#fff; }
.pscc-wizard .pscc-wizard-progress .current .pscc-step-number { box-shadow:0 0 0 3px rgba(255,255,255,.3); }
.pscc-wizard .pscc-progress-fill { background:#f4cc78; }
.pscc-public-canvas-message a { color:#fff; text-decoration:underline; }

.pscc-wizard .pscc-wizard-progress .pscc-mobile-step-count { color:#fff; }

.pscc-auth-card .pscc-auth-brand{font-size:14px;line-height:1.35;font-weight:600;color:#263d59;margin:0 0 12px;text-align:center}.pscc-forgot-password{display:inline-block;min-height:36px;line-height:36px;text-decoration:underline}
