/* =====================================================
   Pope John Paul II College of Education
   Multi-Step Wizard Application Form
   ===================================================== */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    --primary: #003366;
    --primary-dark: #001f3f;
    --accent: #990000;
    --accent-light: #c0392b;
    --gold: #d4a843;
    --gold-light: #f0d78c;
    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --border-light: #e2e8f0;
    --border-focus: #003366;
    --success: #10b981;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Global Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 24px 16px;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(0, 51, 102, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(153, 0, 0, 0.05) 0%, transparent 60%);
}

/* ---------- Main Card Container ---------- */
.wizard-container {
    max-width: 1140px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

/* ---------- Header ---------- */
.wizard-header {
    text-align: center;
    padding: 32px 40px 0;
}

.wizard-header img {
    max-height: 100px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.wizard-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 40%, var(--accent) 100%);
    color: #ffffff;
    padding: 16px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wizard-title::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.wizard-title h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ================================================
   STEPPER PROGRESS BAR
   ================================================ */
.stepper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 24px 20px;
    gap: 0;
    position: relative;
    background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 180px;
}

/* Connector line between circles */
.stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 3px;
    background: var(--border-light);
    z-index: 0;
    transition: background var(--transition);
}

.stepper-item.completed:not(:last-child)::after {
    background: linear-gradient(90deg, var(--success), var(--primary));
}

.stepper-item.active:not(:last-child)::after {
    background: linear-gradient(90deg, var(--primary), var(--border-light));
}

/* Circle */
.stepper-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border: 3px solid var(--border-light);
    background: #ffffff;
    color: var(--text-muted);
    z-index: 1;
    transition: all var(--transition);
    position: relative;
}

.stepper-item.active .stepper-circle {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.15), 0 4px 12px rgba(0, 51, 102, 0.25);
    transform: scale(1.1);
}

.stepper-item.completed .stepper-circle {
    border-color: var(--success);
    background: var(--success);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.stepper-label {
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.2px;
    transition: color var(--transition);
}

.stepper-item.active .stepper-label {
    color: var(--primary);
}

.stepper-item.completed .stepper-label {
    color: var(--success);
}

/* ================================================
   WIZARD STEPS
   ================================================ */
.wizard-body {
    padding: 10px 40px 30px;
    position: relative;
    min-height: 300px;
}

.wizard-step {
    display: none;
    animation: fadeSlideIn 0.45s ease-out both;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   SECTION CARDS inside steps
   ================================================ */
.form-section {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

.form-section:hover {
    box-shadow: var(--shadow-md);
}

.form-section h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    letter-spacing: 0.3px;
}

/* ================================================
   FORM FIELD ROWS
   ================================================ */
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
}

.field-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.field-grid.single-col {
    grid-template-columns: 1fr;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-group.full-width {
    grid-column: 1 / -1;
}

.field-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.2px;
}

.field-group label .required {
    color: var(--accent);
    margin-left: 2px;
}

/* ---------- Form Controls ---------- */
.form-control {
    border: 1.5px solid var(--border-light) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--text-dark) !important;
    background: #ffffff !important;
    transition: all var(--transition) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 3px rgba(0, 51, 102, 0.12) !important;
    outline: none !important;
}

.form-control:hover:not(:focus):not(:disabled) {
    border-color: #bdc3c7 !important;
}

.form-control:disabled {
    background: #f8f9fa !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
    opacity: 0.75;
}

.form-control::placeholder {
    color: #b0b8c4 !important;
    font-weight: 400;
}

/* Select */
select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
    padding-right: 36px !important;
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

/* Validation */
.form-control.is-invalid,
.form-control.borderred {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* Inline validation messages */
.validation-msg {
    font-size: 0.75rem;
    font-weight: 500;
    color: #e74c3c;
    min-height: 16px;
    margin-top: 2px;
    display: block;
    letter-spacing: 0.2px;
}

/* ---------- Checkbox ---------- */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 4px;
}

/* ================================================
   EDUCATION TABLE
   ================================================ */
.edu-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    font-size: 0.88rem;
}

.edu-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 14px 12px;
    text-align: center;
    letter-spacing: 0.3px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.edu-table th:last-child {
    border-right: none;
}

.edu-table td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.edu-table td:last-child {
    border-right: none;
}

.edu-table tr:last-child td {
    border-bottom: none;
}

.edu-table td.row-label {
    font-weight: 700;
    font-size: 0.82rem;
    background: rgba(0, 51, 102, 0.04);
    white-space: nowrap;
    text-align: center;
    color: var(--primary);
}

.edu-table td .form-control {
    font-size: 0.84rem !important;
    padding: 8px 10px !important;
}

/* Preview education table (read-only) */
.preview-edu-table td:not(.row-label) {
    font-size: 0.88rem;
    color: var(--text-dark);
    font-weight: 500;
    padding: 14px 12px;
}

/* Math checkbox row */
.math-check-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(0, 51, 102, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.math-check-row label.main-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-right: 12px;
}

.math-check-row .check-option {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
}

/* ================================================
   UPLOAD CARDS
   ================================================ */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.upload-card {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: all var(--transition);
    background: #fafbfc;
    position: relative;
}

.upload-card:hover {
    border-color: var(--primary);
    background: rgba(0, 51, 102, 0.02);
    box-shadow: var(--shadow-sm);
}

.upload-card .upload-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.upload-card .upload-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: block;
}

.upload-card .upload-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

.upload-card input[type="file"] {
    font-size: 0.78rem !important;
    width: 100%;
}

input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
    margin-right: 8px;
}

input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 2px 8px rgba(153, 0, 0, 0.25);
}

/* Photo upload special card */
.photo-upload-card {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    background: #fafbfc;
    transition: all var(--transition);
}

.photo-upload-card:hover {
    border-color: var(--gold);
}

.photo-upload-card img {
    width: 160px;
    height: 190px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-light);
    background: #f0f2f5;
    margin-top: 12px;
    transition: border var(--transition);
}

.photo-upload-card img[src]:not([src=""]) {
    border-style: solid;
    border-color: var(--gold);
}

/* ================================================
   SUB-SECTION GROUP TITLES
   ================================================ */
.sub-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 40px 0px 10px 0px;
    padding: 8px 14px;
    background: linear-gradient(90deg, rgba(0, 51, 102, 0.06) 0%, transparent 100%);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sub-section-title:first-of-type {
    margin-top: 0;
}

/* ================================================
   PHOTO SECTION TWO-COLUMN LAYOUT
   ================================================ */
.photo-section-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.photo-requirements {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.04) 0%, rgba(212, 168, 67, 0.06) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    height: 100%;
}

.photo-req-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.photo-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.photo-req-list li {
    position: relative;
    padding: 7px 0 7px 24px;
    font-size: 0.84rem;
    color: var(--text-dark);
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.photo-req-list li:last-child {
    border-bottom: none;
}

.photo-req-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 7px;
    font-weight: 700;
    color: var(--success);
    font-size: 0.9rem;
}

/* ================================================
   PREVIEW SECTION (Step 5)
   ================================================ */
.preview-section {
    margin-bottom: 24px;
}

.preview-section h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
}

.preview-item {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.preview-item.full-width {
    grid-column: 1 / -1;
}

.preview-item .preview-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.preview-item .preview-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    word-break: break-word;
}

.preview-photo {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gold);
}

/* Declaration */
.declaration-box {
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-top: 20px;
}

.declaration-box h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    text-align: center;
    margin: 0 0 18px;
    letter-spacing: 0.5px;
}

.declaration-box ol {
    padding-left: 20px;
}

.declaration-box ol li {
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.7;
    padding-left: 4px;
}

.declaration-box ol li::marker {
    color: var(--accent);
    font-weight: 700;
}

.agree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 16px;
    background: rgba(0, 51, 102, 0.03);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

#agree_error {
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ================================================
   NAVIGATION BUTTONS
   ================================================ */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0;
    margin-top: 10px;
    border-top: 1px solid var(--border-light);
}

.btn-wizard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.3px;
}

.btn-prev {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-muted);
}

.btn-prev:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 51, 102, 0.04);
}

.btn-next {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

.btn-next:active {
    transform: translateY(0);
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent) 0%, #b71c1c 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(153, 0, 0, 0.3);
    text-transform: uppercase;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 0, 0, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-reset {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-muted);
    padding: 10px 20px;
    font-size: 0.82rem;
}

.btn-reset:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(153, 0, 0, 0.04);
}

/* ================================================
   FOOTER
   ================================================ */
.wizard-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 14px 20px;
    text-align: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.wizard-footer p {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0.85;
    margin: 0;
    color: #ffffff;
}

/* ================================================
   LOADER
   ================================================ */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 31, 63, 0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loaders {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .wizard-container {
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }

    .wizard-header {
        padding: 16px 12px 0;
    }

    .wizard-header img {
        max-height: 70px;
    }

    .wizard-body {
        padding: 10px 16px 24px;
    }

    .stepper {
        padding: 20px 12px 16px;
        gap: 0;
    }

    .stepper-label {
        font-size: 0.68rem;
    }

    .stepper-circle {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }

    .stepper-item:not(:last-child)::after {
        top: 16px;
        left: calc(50% + 19px);
        width: calc(100% - 38px);
    }

    .field-grid,
    .field-grid.three-col {
        grid-template-columns: 1fr;
    }

    .upload-grid {
        grid-template-columns: 1fr;
    }

    .photo-section-row {
        grid-template-columns: 1fr;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .wizard-nav {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .btn-wizard {
        width: 100%;
        justify-content: center;
    }

    .wizard-footer {
        border-radius: 0;
    }

    .edu-table {
        font-size: 0.82rem;
    }

    .edu-table th {
        padding: 10px 6px;
        font-size: 0.76rem;
    }

    .edu-table td {
        padding: 8px 6px;
    }

    .form-section {
        padding: 16px;
    }

    /* Mobile text size increases */
    .form-control {
        font-size: 0.95rem !important;
    }

    .field-group label {
        font-size: 0.88rem;
    }

    .form-section h5 {
        font-size: 1.15rem;
    }

    .sub-section-title {
        font-size: 0.88rem;
    }

    .wizard-title h2 {
        font-size: 1.15rem;
    }

    .declaration-box ol li {
        font-size: 0.92rem;
    }

    .btn-wizard {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .stepper-label {
        display: none;
    }

    .stepper-circle {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
        border-width: 2px;
    }

    .stepper-item:not(:last-child)::after {
        top: 14px;
        left: calc(50% + 17px);
        width: calc(100% - 34px);
        height: 2px;
    }

    .wizard-header {
        padding: 12px 10px 0;
    }

    .wizard-header img {
        max-height: 55px;
    }

    .wizard-title h2 {
        font-size: 1rem;
    }
}

/* ---------- Print ---------- */
@media print {
    body {
        background: #fff;
        padding: 0;
    }

    .wizard-container {
        box-shadow: none;
        border: none;
    }

    .stepper,
    .wizard-nav,
    .btn-wizard,
    .btn-reset {
        display: none !important;
    }

    .wizard-step {
        display: block !important;
    }

    input[type="file"] {
        display: none;
    }
}

/* ===== Dashboard Specific Styles ===== */
.dashboard-container {
    max-width: 1140px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.dashboard-header {
    text-align: center;
    padding: 28px 40px 12px;
}

.dashboard-header img {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.dashboard-body {
    padding: 24px 40px 32px;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg,
            var(--primary) 0%,
            var(--primary-dark) 50%,
            var(--accent) 100%);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}

.welcome-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: radial-gradient(ellipse,
            rgba(255, 255, 255, 0.08),
            transparent 70%);
    pointer-events: none;
}

.welcome-banner h2 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 6px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-banner p {
    font-size: 0.88rem;
    opacity: 0.9;
    margin: 0;
}

/* Course Card */
.course-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
    margin-bottom: 24px;
}

.course-card:hover {
    box-shadow: var(--shadow-md);
}

.course-card-header {
    background: linear-gradient(90deg,
            rgba(0, 51, 102, 0.06) 0%,
            transparent 100%);
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-card-header h5 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
    display: inline;
}

.course-card-body {
    padding: 20px 24px;
}

.course-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
}

.course-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.course-info-item .ci-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-info-item .ci-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-badge.paid {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.status-badge.pending {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border: 1px solid #ffcc80;
}

.status-badge.review {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* Quick Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    transition: box-shadow var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.stat-value {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 16px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #fff;
}

.timeline-item.done::before {
    background: var(--success);
    border-color: var(--success);
}

.timeline-item.current::before {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.15);
}

.timeline-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Dashboard Footer */
.dashboard-footer {
    background: linear-gradient(135deg,
            var(--primary-dark) 0%,
            var(--primary) 100%);
    padding: 14px 20px;
    text-align: center;
}

.dashboard-footer p {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0.85;
    margin: 0;
    color: #ffffff;
}

/* No payment banner */
.no-payment-banner {
    text-align: center;
    padding: 48px 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
}

.no-payment-banner .npe {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.no-payment-banner h3 {
    font-family: "Playfair Display", serif;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.no-payment-banner p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-go-pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, #b71c1c 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(153, 0, 0, 0.3);
    transition: all var(--transition);
    margin-top: 16px;
}

.btn-go-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 0, 0, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }

    .dashboard-body {
        padding: 16px 16px 24px;
    }

    .dashboard-header {
        padding: 16px 12px 8px;
    }

    .dashboard-header img {
        max-height: 60px;
    }

    .course-info-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    /* Mobile text size increases */
    .welcome-banner h2 {
        font-size: 1.3rem;
    }

    .welcome-banner p {
        font-size: 0.92rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    .course-card-header h5 {
        font-size: 1.05rem;
    }

    .course-info-item .ci-label {
        font-size: 0.78rem;
    }

    .course-info-item .ci-value {
        font-size: 1rem;
    }

    .timeline-title {
        font-size: 0.92rem;
    }

    .timeline-date {
        font-size: 0.8rem;
    }

    .no-payment-banner p {
        font-size: 0.95rem;
    }

    .btn-go-pay {
        font-size: 1rem;
    }
}

/* ===== Login/Register Page Styles ===== */
body:has(> .auth-container) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0px;
}

.auth-container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.auth-header {
    text-align: center;
    padding: 32px 40px 0;
}

.auth-header img {
    max-height: 90px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* ===== Two-Column Layout ===== */
.auth-body {
    display: flex;
    gap: 0;
    padding: 10px 0 32px;
}

.auth-left {
    flex: 1;
    padding: 10px 30px 10px 40px;
    border-right: 2px solid var(--border-light);
    display: flex;
    align-items: flex-start;
}

.auth-left .welcome-box {
    margin-bottom: 0;
    height: 100%;
}

.auth-right {
    flex: 1;
    padding: 10px 40px 10px 30px;
}

/* Welcome Message */
.welcome-box {
    background: linear-gradient(135deg,
            rgba(0, 51, 102, 0.04) 0%,
            rgba(212, 168, 67, 0.06) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 24px;
    font-size: 0.84rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.welcome-box h4 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin: 0 0 12px;
}

.welcome-box p {
    margin: 0 0 8px;
}

.welcome-box ul {
    padding-left: 18px;
    margin: 8px 0;
}

.welcome-box ul li {
    margin-bottom: 4px;
}

.welcome-box .highlight-red {
    color: var(--accent);
    font-weight: 600;
}

.welcome-box .highlight-blue {
    color: var(--primary);
    font-weight: 600;
}

.support-info {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.support-info strong {
    color: var(--primary);
}

/* Tab Switcher */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
    font-family: "Inter", sans-serif;
    letter-spacing: 0.3px;
}

.auth-tab:hover {
    color: var(--primary);
    background: rgba(0, 51, 102, 0.03);
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--primary) 0%,
            var(--accent) 100%);
    border-radius: 3px 3px 0 0;
}

/* Auth Forms */
.auth-form {
    display: none;
    animation: fadeSlideIn 0.4s ease-out both;
}

.auth-form.active {
    display: block;
}

.auth-form .form-title {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 0 12px;
    text-align: center;
}

.auth-form .field-group {
    margin-bottom: 18px;
}

.auth-form .field-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.2px;
    margin-bottom: 5px;
    display: block;
}

.auth-form .field-group label .required {
    color: var(--accent);
    margin-left: 2px;
}

/* Input with icon */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.input-icon-wrap .form-control {
    padding-left: 42px !important;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    padding: 4px;
    z-index: 1;
    transition: color var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
}

/* Auth Button */
.btn-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg,
            var(--primary) 0%,
            var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 18px rgba(0, 51, 102, 0.3);
    transition: all var(--transition);
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 51, 102, 0.4);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth.register-btn {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
}

.btn-auth.register-btn:hover {
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

/* Switch link */
.switch-link {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.switch-link a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition);
}

.switch-link a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Validation */
.auth-error {
    font-size: 0.78rem;
    color: #e74c3c;
    margin-top: 4px;
    display: none;
}

.auth-error.show {
    display: block;
}

/* Password strength */
.password-strength {
    height: 4px;
    border-radius: 4px;
    margin-top: 6px;
    background: var(--border-light);
    overflow: hidden;
}

.password-strength .strength-bar {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition:
        width 0.3s,
        background 0.3s;
}

.password-strength .strength-bar.weak {
    background: #e74c3c;
    width: 33%;
}

.password-strength .strength-bar.medium {
    background: #f39c12;
    width: 66%;
}

.password-strength .strength-bar.strong {
    background: var(--success);
    width: 100%;
}

/* Footer */
.auth-footer {
    background: linear-gradient(135deg,
            var(--primary-dark) 0%,
            var(--primary) 100%);
    padding: 14px 20px;
    text-align: center;
}

.auth-footer p {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0.85;
    margin: 0;
    color: #ffffff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
    }

    .auth-header {
        padding: 20px 16px 0;
    }

    .auth-header img {
        max-height: 65px;
    }

    .auth-body {
        flex-direction: column;
    }

    .auth-form .form-title {
        font-size: 1.5rem;
    }

    .auth-left {
        border-right: none;
        border-bottom: 2px solid var(--border-light);
        padding: 10px 24px 20px;
    }

    .auth-right {
        padding: 20px 24px 10px;
    }

    /* Mobile text size increases */
    .auth-form .field-group label {
        font-size: 0.88rem;
    }

    .auth-tab {
        font-size: 0.95rem;
    }

    .btn-auth {
        font-size: 1.05rem;
    }

    .switch-link {
        font-size: 0.9rem;
    }

    .welcome-box {
        font-size: 0.9rem;
    }

    .welcome-box h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .auth-container {
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }

    .auth-body {
        flex-direction: column;
    }

    .auth-left {
        padding: 10px 20px 16px;
    }

    .auth-right {
        padding: 16px 20px 10px;
    }

    .auth-header {
        padding: 16px 12px 0;
    }

    .auth-header img {
        max-height: 55px;
    }

    .welcome-box {
        padding: 16px;
        font-size: 0.88rem;
    }

    .auth-form .field-group label {
        font-size: 0.88rem;
    }

    .auth-tab {
        font-size: 0.92rem;
    }

    .btn-auth {
        font-size: 1.02rem;
    }
}

/* ===== Payment Page Specific Styles ===== */
.payment-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.payment-header {
    text-align: center;
    padding: 32px 40px 16px;
}

.payment-header img {
    max-height: 90px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Success Icon */
.success-icon-wrap {
    text-align: center;
    margin: 28px 0 8px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.success-icon.submitted {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 3px solid #a5d6a7;
}

.success-icon.paid {
    background: linear-gradient(135deg,
            var(--gold-light) 0%,
            var(--gold) 100%);
    color: #fff;
    border: 3px solid var(--gold);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.page-title {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
    margin: 12px 0 4px;
    text-align: center;
}

.page-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

/* Details Table */
.payment-details {
    margin: 0 32px 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.payment-details table {
    width: 100%;
    border-collapse: collapse;
}

.payment-details td {
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.payment-details tr:last-child td {
    border-bottom: none;
}

.payment-details td:first-child {
    font-weight: 600;
    color: var(--text-muted);
    width: 45%;
    background: rgba(0, 51, 102, 0.03);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.payment-details td:last-child {
    font-weight: 600;
    color: var(--text-dark);
}

.fee-highlight {
    color: var(--accent) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
}

/* Notices */
.notice-box {
    margin: 0 32px 24px;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.84rem;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.notice-box.warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffcc80;
    color: #e65100;
}

.notice-box.info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    color: #1565c0;
}

.notice-box .notice-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Pay Button */
.pay-btn-wrap {
    text-align: center;
    padding: 0 32px 32px;
}

.btn-pay {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 48px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
    transition: all var(--transition);
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}

.btn-pay:active {
    transform: translateY(0);
}

.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg,
            var(--primary) 0%,
            var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 18px rgba(0, 51, 102, 0.3);
    transition: all var(--transition);
    text-decoration: none;
}

.btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 51, 102, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Confetti */
@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-10px) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9999;
    border-radius: 2px;
    animation: confettiFall 3s ease-in forwards;
}

/* Payment Footer */
.payment-footer {
    background: linear-gradient(135deg,
            var(--primary-dark) 0%,
            var(--primary) 100%);
    padding: 14px 20px;
    text-align: center;
}

.payment-footer p {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0.85;
    margin: 0;
    color: #ffffff;
}

/* ===== Thankyou state ===== */
.thankyou-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 18px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-container {
        border-radius: 0;
        margin: 0;
        max-width: 100%;
    }

    .payment-details {
        margin: 0 16px 20px;
    }

    .notice-box {
        margin: 0 16px 20px;
    }

    .pay-btn-wrap {
        padding: 0 16px 28px;
    }

    .payment-header {
        padding: 16px 12px 10px;
    }

    .payment-header img {
        max-height: 60px;
    }

    /* Mobile text size increases */
    .page-title {
        font-size: 1.3rem;
    }

    .page-subtitle {
        font-size: 0.92rem;
    }

    .payment-details td {
        font-size: 0.95rem;
    }

    .payment-details td:first-child {
        font-size: 0.86rem;
    }

    .notice-box {
        font-size: 0.9rem;
    }

    .btn-pay {
        font-size: 1.1rem;
        padding: 14px 36px;
    }

    .btn-dashboard {
        font-size: 1.05rem;
    }
}