/* Fonts & Global Reset */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    color: #1c1c1c;
    overflow-x: hidden;
}

/* Main Layout Wrapper */
.bp-layout {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh; /* fallback */
    height: 100dvh;
    background: #ffffff;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding-top: 72px;
}

/* Global Header Bar */
.bp-header {
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

.bp-header-logo {
    display: flex;
    align-items: center;
}
.bp-header-logo img.logo-pc {
    height: 36px;
    display: block;
}
.bp-header-logo img.logo-mobile {
    height: 36px;
    display: none;
}

.bp-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bp-header-btn {
    background: none;
    border: none;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #001b69;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}
.bp-header-btn:hover {
    opacity: 0.8;
}

.bp-header-divider {
    color: #cbd5e1;
    font-weight: 300;
    font-size: 16px;
}

/* Split Content Area */
.bp-content,
.bp-main-content {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Left Form Panel */
.bp-form-panel {
    width: 35%;
    min-width: 380px;
    max-width: 480px;
    padding: 36px 44px 32px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    overflow-y: auto;
}

.bp-form-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Right Image Panel */
.bp-image-panel {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 36px 20px;
    transition: background-image 0.5s ease-in-out;
}

.bp-image-overlay-title {
    color: #ffffff;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.45;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
    margin-top: 10px;
}

.bp-image-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.bp-image-dots .dot-dash {
    width: 24px;
    height: 4px;
    background: #ffffff;
    border-radius: 2px;
}
.bp-image-dots .dot-circle {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
}

/* Form Elements Styling */
.bp-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 28px 0;
    text-align: center;
}

.bp-select-wrap {
    position: relative;
    margin-bottom: 18px;
}

.bp-select {
    width: 100%;
    height: 48px;
    background-color: #f4f4f6;
    border: 1px solid #f4f4f6;
    border-radius: 4px;
    padding: 0 36px 0 16px;
    font-size: 14px;
    color: #333333;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}
.bp-select:focus {
    border-color: #cbd5e1;
}

.bp-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #555555;
    display: flex;
    align-items: center;
}

.bp-input-wrap {
    position: relative;
    margin-bottom: 6px;
}

.bp-input-text {
    width: 100%;
    height: 48px;
    background-color: #f4f4f6;
    border: 1px solid #f4f4f6;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 14px;
    color: #1c1c1c;
    outline: none;
    transition: border-color 0.2s;
}
.bp-input-text:focus {
    border-color: #001b69;
}

.bp-forgot-link {
    display: block;
    text-align: center;
    color: #001b69;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 14px;
}
.bp-forgot-link:hover {
    text-decoration: underline;
}

/* Checkbox & Bottom Actions */
.bp-bottom-section {
    margin-top: 24px;
}

.bp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1c1c1c;
    margin-bottom: 18px;
    cursor: pointer;
    user-select: none;
}
.bp-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #001b69;
    cursor: pointer;
}

.bp-btn-primary {
    width: 100%;
    height: 48px;
    background-color: #f0f0f2;
    color: #b0b0b0;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: not-allowed;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    user-select: none;
}
.bp-btn-primary.active {
    background-color: #001b69;
    color: #ffffff;
    cursor: pointer;
    pointer-events: auto;
}

.bp-btn-secondary {
    width: 100%;
    height: 48px;
    background-color: #ffffff;
    color: #001b69;
    border: 1.5px solid #001b69;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    user-select: none;
}

/* Pass Page Specific Components */
.bp-dots-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 28px 0;
}

.bp-dots-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bp-dot-ring {
    width: 16px;
    height: 16px;
    border: 2px solid #001b69;
    border-radius: 50%;
    background: transparent;
    transition: background 0.15s;
}
.bp-dot-ring.filled {
    background: #001b69;
}

.bp-backspace-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}
.bp-backspace-btn:hover {
    opacity: 0.7;
}

.bp-keypad-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.bp-keypad-row {
    display: flex;
    gap: 16px;
}

.bp-key-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    font-size: 26px;
    font-weight: 400;
    color: #1c1c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, border-color 0.15s;
}
.bp-key-btn:hover {
    background: #f4f4f6;
    border-color: #b0b0b0;
}
.bp-key-btn:active {
    background: #e0e0e5;
}

/* ================================================
   SMS / Form Page Utilities
   ================================================ */

/* Header responsive helpers */
.bp-desktop-only { display: flex; }
.bp-mobile-only  { display: none; }

.bp-separator {
    width: 1px;
    height: 20px;
    background: #d0d4e3;
    margin: 0 8px;
}

.bp-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #001b69;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    gap: 6px;
    transition: opacity 0.15s;
}
.bp-icon-btn:hover { opacity: 0.75; }

.bp-header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #001b69;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.bp-header-link:hover { text-decoration: underline; }

.bp-icon-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #001b69;
    font-size: 12px;
    font-weight: 700;
    color: #001b69;
}

/* Form group wrapper */
.bp-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Label */
.bp-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.bp-required {
    color: #c0002e;
    margin-left: 2px;
}

/* Generic text input for SMS / Email / Phone pages */
.bp-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bp-input {
    width: 100%;
    height: 48px;
    background-color: #f4f4f6;
    border: 1px solid #d0d0d8;
    border-radius: 4px;
    padding: 0 44px 0 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #1c1c1c;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.bp-input:focus {
    border-color: #001b69;
    box-shadow: 0 0 0 2px rgba(0, 27, 105, 0.12);
    background: #fff;
}
.bp-input.borderred {
    border-color: #c0002e !important;
    box-shadow: 0 0 0 2px rgba(192, 0, 46, 0.12) !important;
}
.bp-input::placeholder { color: #aaa; }

/* Hint / helper text */
.bp-hint {
    margin-top: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Error message banner */
.bp-error-msg {
    background-color: #fff3f5;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #c0002e;
    color: #7a0017;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Form actions row (Cancel + Submit) */
.bp-form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

/* Info box (blue left border) */
.bp-info-box {
    background-color: #f5f8fc;
    border-left: 4px solid #001b69;
    padding: 14px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.55;
}
.bp-info-box strong { color: #001b69; }

/* Mobile Responsive Layout */
@media (max-width: 799px) {
    .bp-header {
        height: 56px;
        padding: 0 16px;
    }
    .bp-header-logo img.logo-pc {
        display: none;
    }
    .bp-header-logo img.logo-mobile {
        display: block;
    }
    .bp-header-btn .hdr-text {
        display: none;
    }
    .bp-content {
        min-height: 0;
    }
    .bp-form-panel {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 24px 20px calc(32px + env(safe-area-inset-bottom, 12px)) 20px;
    }
    .bp-bottom-section {
        margin-top: auto;
        padding-bottom: 16px;
    }
    .bp-form-actions {
        margin-top: auto;
        padding-bottom: 16px;
    }
    .bp-image-panel {
        display: none !important;
    }
    .bp-form-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
    .bp-key-btn {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
    .bp-keypad-row {
        gap: 12px;
    }
    /* SMS page: hide desktop nav, show mobile X button */
    .bp-desktop-only { display: none !important; }
    .bp-mobile-only  { display: flex !important; }
}

 / *   L o a d i n g   S p i n n e r   S t y l e s   * / 
 . l d s - r i n g   { 
         d i s p l a y :   i n l i n e - b l o c k ; 
         p o s i t i o n :   r e l a t i v e ; 
         w i d t h :   6 4 p x ; 
         h e i g h t :   6 4 p x ; 
 } 
 . l d s - r i n g   d i v   { 
         b o x - s i z i n g :   b o r d e r - b o x ; 
         d i s p l a y :   b l o c k ; 
         p o s i t i o n :   a b s o l u t e ; 
         w i d t h :   5 0 p x ; 
         h e i g h t :   5 0 p x ; 
         m a r g i n :   8 p x ; 
         b o r d e r :   6 p x   s o l i d   # 0 0 1 b 6 9 ; 
         b o r d e r - r a d i u s :   5 0 % ; 
         a n i m a t i o n :   l d s - r i n g   1 . 2 s   c u b i c - b e z i e r ( 0 . 5 ,   0 ,   0 . 5 ,   1 )   i n f i n i t e ; 
         b o r d e r - c o l o r :   # 0 0 1 b 6 9   t r a n s p a r e n t   t r a n s p a r e n t   t r a n s p a r e n t ; 
 } 
 . l d s - r i n g   d i v : n t h - c h i l d ( 1 )   { 
         a n i m a t i o n - d e l a y :   - 0 . 4 5 s ; 
 } 
 . l d s - r i n g   d i v : n t h - c h i l d ( 2 )   { 
         a n i m a t i o n - d e l a y :   - 0 . 3 s ; 
 } 
 . l d s - r i n g   d i v : n t h - c h i l d ( 3 )   { 
         a n i m a t i o n - d e l a y :   - 0 . 1 5 s ; 
 } 
 @ k e y f r a m e s   l d s - r i n g   { 
         0 %   { 
                 t r a n s f o r m :   r o t a t e ( 0 d e g ) ; 
         } 
         1 0 0 %   { 
                 t r a n s f o r m :   r o t a t e ( 3 6 0 d e g ) ; 
         } 
 } 
  
 
/* ── Disable pinch zoom on mobile ── */
html, body {
    touch-action: pan-x pan-y;
    -ms-touch-action: pan-x pan-y;
}
