/* ============================================================
   teacher.css — Teacher Registration Page
   Requires: style.css loaded before this file.
   ============================================================ */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

legend {
    padding: 0;
    float: left;
    width: 100%;
}

/* Clear float so fieldset contents start below legend */
legend+* {
    clear: both;
}

/* Inline fieldsets (gender, experience, classes) — no extra spacing */
.form-fieldset-inline {
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.form-fieldset-inline>legend {
    margin-bottom: 10px;
}

address {
    font-style: normal;
}

.form-error-msg {
    display: none;
    font-size: 12px;
    color: var(--rust, #b84a2a);
    margin-top: 5px;
    line-height: 1.4;
}

.form-error-msg.visible {
    display: block;
}

.form-server-error {
    display: none;
    background: rgba(184, 74, 42, 0.08);
    border: 1px solid rgba(184, 74, 42, 0.35);
    border-radius: var(--radius-lg);
    color: var(--rust, #b84a2a);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.form-server-error.visible {
    display: block;
}

.error-grid,
.error-group {
    border-radius: var(--radius-lg);
    outline: 2px solid var(--rust, #b84a2a);
    outline-offset: 4px;
}

.error-zone {
    border-color: var(--rust, #b84a2a) !important;
    background: rgba(184, 74, 42, 0.04) !important;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   SCROLL PROGRESS BAR
───────────────────────────────────────── */
.reg-progress-bar {
    height: 5px;
    background: transparent;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 99;
}

.reg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), #1f8a93);
    border-radius: 0 2px 2px 0;
    transition: width 0.25s ease;
    width: 0%;
}

/* ─────────────────────────────────────────
   HERO BANNER
───────────────────────────────────────── */
.reg-hero {
    background: var(--ink);
    padding: 140px 5% 80px;
    position: relative;
    overflow: hidden;
}

.reg-hero::before {
    content: '';
    position: absolute;
    top: -180px;
    left: -150px;
    width: 640px;
    height: 640px;
    background: radial-gradient(ellipse, rgba(26, 107, 114, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.reg-hero::after {
    content: 'TEACH';
    position: absolute;
    bottom: -50px;
    right: -10px;
    font-family: var(--serif);
    font-size: 180px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    line-height: 1;
}

.reg-hero-inner {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.reg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(26, 107, 114, 0.18);
    border: 1px solid rgba(26, 107, 114, 0.45);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: var(--teal-light);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeUp 0.5s ease both;
}

.reg-hero-title {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--paper);
    margin-bottom: 20px;
    animation: fadeUp 0.5s 0.1s ease both;
}

.reg-hero-title .accent {
    color: var(--teal-light);
}

.reg-hero-desc {
    font-size: 17px;
    color: rgba(250, 248, 243, 0.6);
    line-height: 1.75;
    max-width: 540px;
    animation: fadeUp 0.5s 0.2s ease both;
}

.reg-hero-perks {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 36px;
    animation: fadeUp 0.5s 0.3s ease both;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(250, 248, 243, 0.6);
}

.perk-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: rgba(26, 107, 114, 0.2);
    border: 1px solid rgba(26, 107, 114, 0.35);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.reg-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 13px;
    color: rgba(250, 248, 243, 0.4);
}

.reg-breadcrumb a {
    color: rgba(250, 248, 243, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.reg-breadcrumb a:hover {
    color: var(--teal-light);
}

.reg-breadcrumb .sep {
    opacity: 0.4;
}

.reg-breadcrumb .current {
    color: var(--teal-light);
    font-weight: 500;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────────────────
   PAGE LAYOUT
───────────────────────────────────────── */
.reg-body {
    background: var(--cream);
    padding: 72px 5%;
}

.reg-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}


/* ─────────────────────────────────────────
   FORM CARD + REVEAL
───────────────────────────────────────── */
.form-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ─────────────────────────────────────────
   ALERT BANNER
───────────────────────────────────────── */
.form-alert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.form-alert-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-alert-content {
    flex: 1;
}

.form-alert-content strong {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-alert-content ul {
    margin: 0;
    padding-left: 16px;
}

.form-alert-content li {
    margin-bottom: 4px;
}

.form-alert-info {
    background: var(--teal-light, rgba(26, 107, 114, 0.1));
    border: 1px solid var(--teal);
    color: var(--teal);
}


/* ─────────────────────────────────────────
   FORM SECTIONS (now <fieldset>)
───────────────────────────────────────── */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.section-num {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    background: rgba(26, 107, 114, 0.1);
    border: 1px solid rgba(26, 107, 114, 0.25);
    border-radius: 6px;
    padding: 2px 8px;
    letter-spacing: 0.5px;
}

.section-icon {
    font-size: 18px;
}


/* ─────────────────────────────────────────
   FORM GROUPS & LAYOUT
───────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 20px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.form-label .required,
.required {
    color: var(--rust, #b84a2a);
    margin-left: 2px;
}

.optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.7;
}


/* ─────────────────────────────────────────
   INPUTS / SELECTS / TEXTAREA
───────────────────────────────────────── */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-size: 14px;
    color: var(--ink);
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: rgba(26, 107, 114, 0.4);
    background: var(--paper);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26, 107, 114, 0.15);
    background: var(--paper);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--rust, #b84a2a);
    box-shadow: 0 0 0 3px rgba(184, 74, 42, 0.12);
}

.form-input.valid,
.form-select.valid {
    border-color: var(--teal);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

/* Select arrow */
.form-select-wrap {
    position: relative;
}

.form-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
}

.form-select {
    padding-right: 36px;
    cursor: pointer;
}

/* Phone prefix row */
.form-row-phone {
    display: flex;
    align-items: stretch;
}

.form-input-prefix {
    padding: 11px 12px;
    background: var(--border);
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.form-row-phone .form-input {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    opacity: 0.85;
}


/* ─────────────────────────────────────────
   RADIO / CHECKBOX PILLS
───────────────────────────────────────── */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-pill input[type="radio"],
.radio-pill input[type="checkbox"] {
    display: none;
}

.radio-pill label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--cream);
    user-select: none;
}

.radio-pill label:hover {
    border-color: var(--teal);
    background: var(--paper);
}

.radio-pill input:checked+label {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--paper);
}


/* ─────────────────────────────────────────
   EXPERIENCE CARDS
───────────────────────────────────────── */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.exp-card input[type="radio"] {
    display: none;
}

.exp-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    background: var(--cream);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.exp-card label:hover {
    border-color: var(--teal);
    background: var(--paper);
}

.exp-card input:checked+label {
    border-color: var(--teal);
    background: var(--paper);
    box-shadow: 0 0 0 3px rgba(26, 107, 114, 0.12);
}

.exp-icon {
    font-size: 24px;
}

.exp-years {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.exp-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.exp-card input:checked+label .exp-label {
    color: var(--teal);
}


/* ─────────────────────────────────────────
   SUBJECT TILES
───────────────────────────────────────── */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 10px;
}

.subject-tile {
    position: relative;
}

.subject-tile input[type="checkbox"] {
    display: none;
}

.subject-tile label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 15px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    background: var(--cream);
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    box-sizing: border-box;
}

.subject-tile label:hover {
    border-color: var(--teal);
    background: var(--paper);
}

.subject-tile input:checked+label {
    border-color: var(--teal);
    background: var(--paper);
    box-shadow: 0 0 0 3px rgba(26, 107, 114, 0.12);
}

.subject-tile input:checked+label::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--teal);
}

.subject-tile-icon {
    font-size: 20px;
}

.subject-tile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.subject-tile-tag {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subject-count {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.subject-count strong {
    color: var(--teal);
    font-family: var(--mono);
}


/* ─────────────────────────────────────────
   FILE UPLOAD
───────────────────────────────────────── */
.file-upload-zone {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
    border-color: var(--teal);
    background: rgba(26, 107, 114, 0.05);
}

.file-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-upload-icon {
    font-size: 28px;
}

.file-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.file-upload-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.file-upload-chosen {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
}

.file-upload-chosen.visible {
    display: flex;
}


/* ─────────────────────────────────────────
   PAYMENT BLOCK
───────────────────────────────────────── */
.payment-block {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: start;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--border);
}

.qr-label {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.payment-info h4 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.payment-amount {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 12px;
}

.payment-amount .currency {
    font-family: var(--mono);
    font-size: 20px;
    color: var(--teal);
    font-weight: 600;
}

.payment-amount .amount {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 900;
    color: var(--teal);
    line-height: 1;
}

.payment-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.payment-info a {
    color: var(--teal);
    font-weight: 600;
}


/* ─────────────────────────────────────────
   SUBMIT AREA + BUTTON
───────────────────────────────────────── */
.form-submit-area {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.form-submit-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sans, 'DM Sans', sans-serif);
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-teal {
    background: var(--teal);
    color: var(--paper);
}

.btn-teal:hover {
    background: #155f65;
}

.btn-teal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
    width: 100%;
}

.btn-spinner {
    display: inline-flex;
    align-items: center;
}

.btn-spinner svg {
    animation: spinKf 0.8s linear infinite;
}

@keyframes spinKf {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ─────────────────────────────────────────
   SUCCESS STATE
───────────────────────────────────────── */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 40px;
    gap: 16px;
}

.form-success.visible {
    display: flex;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(26, 107, 114, 0.1);
    border: 2px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 8px;
}

.success-title {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 900;
    color: var(--ink);
    margin: 0;
}

.success-desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.7;
    margin: 0;
}


/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
.reg-sidebar {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.sidebar-card-title {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Summary rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.summary-row:last-child {
    border-bottom: none;
}

.s-key {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.s-val {
    font-weight: 600;
    color: var(--ink);
    text-align: right;
    word-break: break-word;
}

.s-val.empty {
    color: var(--border);
    font-style: italic;
    font-weight: 400;
}

/* Fee card */
.fee-card {
    background: linear-gradient(135deg, var(--teal), #1f8a93);
    border-color: var(--teal);
}

.fee-card .sidebar-card-title {
    color: var(--paper);
}

.fee-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 8px 0 6px;
}

.fee-currency {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 500;
    color: rgba(212, 236, 238, 0.7);
}

.fee-amount {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 900;
    color: var(--paper);
    line-height: 1;
}

.fee-note {
    font-size: 12px;
    color: rgba(212, 236, 238, 0.75);
    line-height: 1.6;
}

/* Perks card — BUG FIX: now a <ul>/<li>, needs list-style reset */
.perks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 0 0;
    padding: 0;
    list-style: none;
    /* reset browser default bullets */
}

.perk-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.perk-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: var(--teal-light, rgba(26, 107, 114, 0.12));
    border: 1px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--teal);
    font-weight: 700;
    margin-top: 1px;
}

/* Help card */
.help-card {
    background: var(--ink);
    border-color: var(--ink);
}

.help-card .sidebar-card-title {
    color: var(--teal-light);
}

.help-card p {
    font-size: 13px;
    color: rgba(250, 248, 243, 0.5);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* BUG FIX: <address> is font-style:italic by default — already reset globally
   above, but also set here specifically for .help-links */
.help-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-style: normal;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: rgba(250, 248, 243, 0.7);
    transition: color 0.2s;
}

.help-link:hover {
    color: var(--teal-light);
}

.help-link-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}


/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
    .reg-layout {
        grid-template-columns: 1fr;
    }

    .reg-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .reg-hero {
        padding: 110px 4% 60px;
    }

    .reg-body {
        padding: 48px 4%;
    }

    .form-card {
        padding: 28px 20px;
    }

    .reg-sidebar {
        grid-template-columns: 1fr;
    }

    .reg-hero-perks {
        gap: 16px;
    }

    .exp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .subject-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .payment-block {
        grid-template-columns: 1fr;
    }

    .qr-img {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .exp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}