@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --tf-heading: #20419A;
    --tf-body: #4f6294;
    --tf-bg: #FFFFFF;
    --tf-yellow: #FFE866;
    --tf-track: #E2E8F0;
    --tf-error-bg: #FEE2E2;
    --tf-error-text: #DC2626;
}

/* 1. FORCE BOX-SIZING EVERYWHERE */
*, *::before, *::after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

body, button, input, textarea, select {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 2. PREVENT HARDWARE OVERFLOW FROM LARGE IMAGES */
html, body {
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100vh;
    background-color: var(--tf-bg);
    overflow-x: hidden !important;
}

.desktop-support-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #20419A;
    padding: 24px;
}

.desktop-support-panel {
    width: min(90vw, 440px);
    background: linear-gradient(180deg, #EFF6FF, #FFFFFF);
    border: 1px solid rgba(32, 65, 154, 0.25);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    backdrop-filter: blur(12px);
}

.desktop-support-panel h1 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 14px 0 12px;
    color: #000000;
}

.desktop-support-panel p {
    font-size: 0.90rem;
    line-height: 1.55;
    color: #000000;
}

.desktop-support-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFE866;
    color: var(--tf-heading);
}

.desktop-support-icon i {
    font-size: 1.75rem;
}

/* 3. STRICTLY FORCE ALL IMAGES TO NEVER EXCEED SCREEN WIDTH */
img, picture, video, canvas, svg {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* 4. MAIN CONTAINER CLAMPED TO MOBILE SCREEN */
.app-viewport {
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100vh;
    padding: 16px 16px 120px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box !important;
    overflow-x: hidden;
}

.app-viewport.is-locked {
    display: none;
}

@media (min-width: 901px) {
    .desktop-support-overlay {
        display: flex;
    }

    .app-viewport {
        display: none;
    }
}

/* TOP PROGRESS BAR */
.top-progress-wrapper {
    position: relative;
    width: 100%;
    height: 4px;
    background-color: var(--tf-track);
    border-radius: 99px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-fill-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    background-color: var(--tf-heading);
    border-radius: 99px;
    border-right: 4px solid #ffffff;
    transition: width 0.35s ease-in-out;
    z-index: 2;
}

/* Header */
.brand-header {
    margin-bottom: 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo i {
    font-size: 1.6rem;
    color: var(--tf-heading);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .main-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tf-heading);
    letter-spacing: -0.3px;
}

.logo-text .sub-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--tf-body);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.step {
    display: none;
    flex-direction: column;
    width: 100%;
}

.step.active {
    display: flex;
}

.step-number {
    background: var(--tf-heading);
    color: #FFFFFF;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-number.success {
    background: #16A34A;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--tf-heading);
    line-height: 1.4;
    margin-bottom: 16px;
}

/* Banner Image Container */
.step-banner {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(32, 65, 154, 0.08);
}

.step-banner img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: cover;
}

.step-body {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--tf-body);
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-body strong {
    color: var(--tf-heading);
}

/* Info Box */
.info-card {
    background: #F2F5FA;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
}

.info-card h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tf-heading);
    margin-bottom: 10px;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    font-size: 0.88rem;
    color: var(--tf-body);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card li i {
    color: var(--tf-heading);
}

/* Method Choosing Cards */
.method-choice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.method-choice-card {
    background: linear-gradient(180deg, #EEF5FF 0%, #FFFFFF 100%);
    border: 1px solid #BAC7E5;
    border-radius: 12px;
    padding: 14px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.method-choice-card:hover {
    transform: translateY(-2px);
    border-color: var(--tf-heading);
    box-shadow: 0 8px 20px rgba(32, 65, 154, 0.10);
}

.method-choice-card.selected {
    border-color: var(--tf-heading);
    background: linear-gradient(180deg, #EAF2FF 0%, #D7E9FF 100%);
    box-shadow: 0 0 0 2px rgba(32, 65, 154, 0.10), 0 8px 20px rgba(32, 65, 154, 0.12);
}

.method-choice-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.method-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tf-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.method-icon i {
    font-size: 1rem;
}

.method-choice-card h3 {
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tf-heading);
}

.method-choice-card p {
    font-size: 0.82rem;
    line-height: 1.48;
    color: var(--tf-body);
}

/* Full Page Ineligible Overlay */
.ineligible-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #FFFFFF;
}

.ineligible-overlay.show {
    display: flex;
}

.ineligible-panel {
    width: min(92vw, 560px);
    border-radius: 24px;
    background: #FFFFFF;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.ineligible-panel .icon-wrap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: #FEE2E2;
    color: #B91C1C;
}

.ineligible-panel .icon-wrap svg {
    width: 58px;
    height: 58px;
}

.ineligible-panel .icon-wrap i {
    font-size: 2rem;
}

.ineligible-panel h1 {
    font-size: 1.78rem;
    line-height: 1.12;
    font-weight: 800;
    color: #20419A;
    margin-bottom: 12px;
}

.ineligible-panel p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #475569;
    margin-bottom: 22px;
}

.ineligible-panel .ineligible-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #FFE866;
    border-radius: 999px;
    color: #20419A;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* Laptop Qualification UI */
.laptop-field {
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #EFF8FF, #FFFFFF);
    border: 1px solid #BAC7E5;
}

.laptop-question-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--tf-heading);
    margin-bottom: 10px !important;
}

.laptop-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.laptop-option-card {
    flex: 1;
    min-width: 130px;
    border-radius: 12px;
    border: 1px solid #BAC7E5;
    background: #FFFFFF;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 180ms ease;
}

.laptop-option-card input {
    accent-color: var(--tf-heading);
}

.laptop-option-card span {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--tf-heading);
}

.laptop-option-card:hover,
.laptop-option-card:has(input:checked) {
    background: var(--tf-heading);
    border-color: var(--tf-heading);
}

.laptop-option-card:has(input:checked) span {
    color: #FFFFFF;
}

/* Form Inputs */
.form-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-field label {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--tf-heading);
    margin-bottom: 6px;
}

.form-field input {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #BAC7E5;
    padding: 8px 0;
    font-size: 1.05rem;
    color: var(--tf-heading);
    background: transparent;
    outline: none;
    border-radius: 0;
}

.form-field input::placeholder {
    color: #94A3B8;
}

.form-field input:focus {
    border-bottom-color: var(--tf-heading);
}

.error-pill {
    display: none;
    align-items: center;
    gap: 6px;
    background: var(--tf-error-bg);
    color: var(--tf-error-text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    width: fit-content;
    margin-top: 6px;
}

/* Bank Box */
.bank-info {
    background: #F2F5FA;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
}

.bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #CBD5E1;
    font-size: 0.88rem;
    color: var(--tf-body);
}

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

.val-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-row .val {
    font-weight: 600;
    color: var(--tf-heading);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--tf-body);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Upload Dropzone */
.file-dropzone {
    border: 2px dashed #BAC7E5;
    border-radius: 12px;
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    background: #FAFAFA;
    width: 100%;
}

.file-dropzone i {
    font-size: 2rem;
    color: var(--tf-heading);
    margin-bottom: 8px;
}

span[style*="background-image"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    background-color: #E5E7EB !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    position: absolute !important;
    top: 0px !important;
    left: -21px !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

/* Countdown */
.countdown-container {
    background: #F2F5FA;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.whatsapp-group-btn {
    width: 100%;
    margin-top: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 13px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.2);
    text-decoration: none;
}

.whatsapp-group-btn i {
    font-size: 1rem;
}

.whatsapp-group-btn:hover {
    filter: brightness(0.96);
    text-decoration: none;
}

.timer-flex {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.timer-box span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tf-heading);
}

.timer-box label {
    font-size: 0.72rem;
    color: var(--tf-body);
    text-transform: uppercase;
}

/* ADMIN DASHBOARD */
.admin-body {
    background: #EEF4F9;
    color: var(--tf-heading);
}

.admin-shell {
    min-height: 100vh;
    display: flex;
    background: #EEF4F9;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #102B68 0%, #20419A 100%);
    color: #FFFFFF;
    padding: 36px 26px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
}

.admin-brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #FFE866;
    color: var(--tf-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.admin-brand-title {
    font-size: 1rem;
    font-weight: 800;
}

.admin-brand-subtitle {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.86;
}

.admin-menu-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #BDD2FF;
    margin-bottom: 16px;
}

.admin-menu-link {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 9px;
}

.admin-menu-link.active,
.admin-menu-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.admin-main {
    flex: 1;
    padding: 34px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #64748B;
}

.admin-page-title {
    font-size: 2rem;
    color: var(--tf-heading);
    margin-top: 8px;
}

.admin-refresh-button {
    border: none;
    border-radius: 999px;
    padding: 11px 24px;
    background: var(--tf-heading);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.admin-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.summary-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--tf-yellow);
    box-shadow: 0 4px 12px rgba(32, 65, 154, 0.06);
}

.summary-label {
    display: block;
    color: var(--tf-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.summary-value {
    display: block;
    margin-top: 8px;
    font-size: 1.62rem;
    font-weight: 800;
    color: var(--tf-heading);
}

.admin-panel {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #DCE8F6;
    overflow: hidden;
}

.admin-panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid #EEF4F9;
}

.admin-panel-header h2 {
    font-size: 1rem;
    color: var(--tf-heading);
}

.panel-subtitle {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--tf-body);
}

.admin-table-wrap {
    overflow-x: auto;
}

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

.admin-table th {
    background: #F8FAFC;
    color: var(--tf-heading);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px;
    text-align: left;
}

.admin-table td {
    padding: 14px;
    border-top: 1px solid #EEF4F9;
    font-size: 0.78rem;
    color: var(--tf-body);
}

.table-empty {
    text-align: center;
    color: var(--tf-body);
    padding: 30px;
}

/* STICKY BOTTOM ACTION AREA */
.bottom-sticky-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    padding: 12px 16px 16px 16px;
    background: linear-gradient(to top, rgba(255,255,255,1) 85%, rgba(255,255,255,0));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 999;
    box-sizing: border-box !important;
}

.nav-row {
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
}

.back-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--tf-yellow);
    color: var(--tf-heading);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.primary-btn {
    flex: 1;
    height: 46px;
    border-radius: 50px;
    border: none;
    background: var(--tf-yellow);
    color: var(--tf-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.primary-btn.is-disabled {
    background: #CBD5E1;
    color: #64748B;
    cursor: not-allowed;
    opacity: 0.75;
}

.primary-btn:disabled {
    background: #CBD5E1;
    color: #64748B;
    cursor: not-allowed;
    opacity: 0.75;
}
.brand-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #DDAA00;
    font-weight: 500;
}

.brand-footer strong {
    font-weight: 700;
}
