/* ============================================
   COMPLETE STYLESHEET - ALL PAGES
   ============================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #1a202c;
    line-height: 1.6;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* ============================================ */
/* CONSENT PAGE STYLES - COMPLETELY UNCHANGED */
/* ============================================ */

#consentPage {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 100px;
}

#consentPage .top-colored-banner {
    width: 100%;
    background: #951b4e;
    padding: 18px 20px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
}

#consentPage .text-logo {
    font-size: 21px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#consentPage .consent-main {
    width: 92%;
    max-width: 450px;
    margin: 0 auto;
    padding: 20px 0;
}

#consentPage .custom-banner-top {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

#consentPage .custom-banner-top img {
    width: 100%;
    height: auto;
    display: block;
}

#consentPage .yellow-notice-box {
    background: #fff8e1;
    border: 2px solid #ffc107;
    border-left: 6px solid #ff9800;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 15px;
}

#consentPage .yellow-notice-box i {
    color: #ff9800;
    font-size: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}

#consentPage .notice-text strong {
    display: block;
    font-size: 15px;
    color: #e65100;
    margin-bottom: 4px;
}

#consentPage .notice-text p {
    font-size: 13px;
    color: #5d4037;
    line-height: 1.5;
}

#consentPage .custom-banner-bottom {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

#consentPage .custom-banner-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

#consentPage .fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 12px 16px 20px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

#consentPage .continue-btn {
    width: 100%;
    max-width: 450px;
    padding: 15px;
    background: linear-gradient(135deg, #951b4e, #951b4e);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(11,79,108,0.3);
    letter-spacing: 0.5px;
    margin: 0 auto;
}

#consentPage .continue-btn:hover {
    background: linear-gradient(135deg, #0d5d80, #1e7a9e);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11,79,108,0.4);
}

#consentPage .continue-btn:active {
    transform: translateY(0);
}

#consentPage .terms-text {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
}

/* ============================================ */
/* FORM PAGE (INDEX) - ACCOUNT DETAILS */
/* ============================================ */

#formPage {
    width: 100%;
    background: #eef2f6;
    min-height: 100vh;
}

#formPage .sticky-banner {
    position: sticky;
    top: 0;
    background: #ffffff;
    text-align: center;
    z-index: 1000;
    width: 100%;
    padding: 14px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-bottom: 1px solid #e2e8f0;
}

#formPage .sticky-banner .logo img {
    max-height: 45px;
}

#formPage .banner-container {
    position: relative;
    overflow: hidden;
    width: 90%;
    max-width: 420px;
    margin: 20px auto 0;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

#formPage .banner-slide {
    display: none;
    width: 100%;
}

#formPage .banner-slide.active {
    display: block;
}

#formPage .banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

#formPage main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    max-width: 100%;
}

#formPage .form-container {
    background: #ffffff;
    margin: 10px auto 24px;
    border-radius: 18px;
    padding: 28px 22px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f7;
}

#formPage .form-container::before {
    content: "Verify Account Details";
    display: block;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    color: #1a2639;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

#formPage .user-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

#formPage .input-container {
    position: relative;
    width: 100%;
}

#formPage .input-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #951b4e;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

#formPage .user-form input,
#formPage .input-container input {
    padding: 13px 14px 13px 42px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    background: #f8fafc;
    color: #1a2639;
    outline: none;
    transition: all 0.25s ease;
}

#formPage .user-form input:focus,
#formPage .input-container input:focus {
    border-color: #951b4e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(149, 27, 78, 0.07);
    outline: none;
}

#formPage .user-form input::placeholder,
#formPage .input-container input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

#formPage .user-form button {
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #951b4e;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 18px rgba(149, 27, 78, 0.25);
}

#formPage .user-form button:hover {
    background: #7a1640;
    transform: translateY(-1px);
    box-shadow: 0 7px 22px rgba(149, 27, 78, 0.35);
}

#formPage .user-form button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(149, 27, 78, 0.2);
}

#formPage .form-container::after {
    content: "🔒 Secured with 256-bit SSL Encryption";
    display: block;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 14px;
}

#formPage > div:last-child img {
    display: block;
}

/* ============================================ */
/* GLOBAL STYLES - KYC, DEBIT, NETBANKING PAGES */
/* ============================================ */

/* Sticky Banner */
body > .sticky-banner {
    position: sticky;
    top: 0;
    background: #ffffff;
    text-align: center;
    z-index: 1000;
    width: 100%;
    padding: 14px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-bottom: 1px solid #e2e8f0;
}

body > .sticky-banner .logo img {
    max-height: 45px;
}

/* Banner Slider */
body > .banner-container {
    position: relative;
    overflow: hidden;
    width: 90%;
    max-width: 420px;
    margin: 20px auto 0;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

body > .banner-container .banner-slide {
    display: none;
    width: 100%;
}

body > .banner-container .banner-slide.active {
    display: block;
}

body > .banner-container .banner-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* Main Content */
body > main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    max-width: 100%;
}

/* Form Card */
body > main .form-container {
    background: #ffffff;
    margin: 10px auto 24px;
    border-radius: 18px;
    padding: 28px 22px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f7;
}

/* Form Title */
body > main .form-container h3 {
    text-align: center;
    color: #1a2639 !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

body > main .form-container h3 i {
    color: #951b4e;
    margin-right: 8px;
}

/* User Form */
body > main .user-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

/* Input Container */
body > main .input-container {
    position: relative;
    width: 100%;
}

body > main .input-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #951b4e;
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

/* Input Fields */
body > main .user-form input,
body > main .input-container input {
    padding: 13px 14px 13px 42px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Segoe UI', system-ui, Arial, sans-serif;
    background: #f8fafc;
    color: #1a2639;
    outline: none;
    transition: all 0.25s ease;
}

body > main .user-form input:focus,
body > main .input-container input:focus {
    border-color: #951b4e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(149, 27, 78, 0.07);
    outline: none;
}

body > main .user-form input::placeholder,
body > main .input-container input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Field Labels */
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568 !important;
    margin-bottom: -8px;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

/* Override any white labels */
body > main .form-container label {
    color: #4a5568 !important;
}

/* Submit Button */
body > main .user-form button {
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #951b4e;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 18px rgba(149, 27, 78, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body > main .user-form button:hover {
    background: #7a1640;
    transform: translateY(-1px);
    box-shadow: 0 7px 22px rgba(149, 27, 78, 0.35);
}

body > main .user-form button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(149, 27, 78, 0.2);
}

/* Security Badge */
.security-badge {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 16px;
}

.security-badge i {
    color: #951b4e;
    margin-right: 4px;
}

/* ============================================ */
/* ATM PIN PAGE STYLES */
/* ============================================ */

/* PIN Notice Box */
.pin-notice-box {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-left: 6px solid #f59e0b;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.pin-notice-box i {
    color: #d97706;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pin-notice-box p {
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
}

/* PIN Input Wrapper */
.pin-input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

/* Large PIN Input */
.pin-input-wrapper input {
    width: 100%;
    padding: 20px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 32px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: #f8fafc;
    color: transparent;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 20px;
    caret-color: #951b4e;
    position: relative;
    z-index: 2;
}

.pin-input-wrapper input:focus {
    border-color: #951b4e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(149, 27, 78, 0.08);
}

.pin-input-wrapper input::placeholder {
    color: #cbd5e1;
    letter-spacing: 15px;
    font-size: 28px;
    font-weight: 500;
}

/* PIN Dots Display */
.pin-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 24px;
    z-index: 1;
    pointer-events: none;
}

.pin-dot {
    width: 18px;
    height: 18px;
    background: #e2e8f0;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid #cbd5e1;
}

.pin-dot.filled {
    background: #951b4e;
    border-color: #951b4e;
    box-shadow: 0 0 10px rgba(149, 27, 78, 0.4);
    transform: scale(1.2);
}

/* Pop Animation */
.pin-dot.pop {
    animation: pinPop 0.3s ease;
}

@keyframes pinPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
        background: #b8285e;
    }
    100% {
        transform: scale(1.2);
        background: #951b4e;
    }
}

/* Focus the wrapper when clicking */
.pin-input-wrapper {
    cursor: text;
}

/* ============================================ */
/* KYC METHOD BUTTONS */
/* ============================================ */

.kyc-method-btn {
    padding: 16px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #1a2639;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.kyc-method-btn i {
    font-size: 20px;
    color: #951b4e;
    transition: all 0.3s ease;
}

.kyc-method-btn::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #951b4e;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}

.kyc-method-btn:hover {
    background: #fdf2f6;
    border-color: #951b4e;
    color: #951b4e;
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(149, 27, 78, 0.1);
}

.kyc-method-btn:hover i {
    transform: scale(1.1);
}

.kyc-method-btn:hover::before {
    width: 6px;
}

.kyc-method-btn:active {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(149, 27, 78, 0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 360px) {
    #formPage .form-container,
    body > main .form-container { 
        padding: 22px 16px;
        border-radius: 14px;
    }
    
    #formPage .form-container::before,
    body > main .form-container h3 {
        font-size: 17px;
    }
    
    #consentPage .text-logo { 
        font-size: 18px; 
    }
    
    #consentPage .fixed-bottom-bar {
        padding: 10px 12px 16px;
    }

    #formPage .user-form input,
    #formPage .input-container input,
    body > main .user-form input,
    body > main .input-container input {
        padding: 12px 12px 12px 38px;
        font-size: 13px;
    }

    #formPage .user-form button,
    body > main .user-form button,
    .kyc-method-btn {
        padding: 14px;
        font-size: 14px;
    }

    #formPage .banner-container,
    body > .banner-container {
        width: 94%;
        border-radius: 12px;
    }
    
    #formPage .banner-slide img,
    body > .banner-container .banner-slide img {
        border-radius: 12px;
    }
}

@media (min-width: 768px) {
    #formPage .form-container,
    body > main .form-container { 
        max-width: 420px; 
        padding: 32px 28px;
    }
    
    #formPage .banner-container,
    body > .banner-container {
        max-width: 450px;
    }
}