:root {
    --primary-blue: #0055ff;
    --primary-dark: #003db3;
    --text-color: #333;
    --label-color: #222;
    --border-color: #ddd;
    --bg-color: #f9f9f9;
    --input-bg: #fff;
    --alert-bg: #eef4ff;
    --alert-text: #003db3;
    --alert-border: #0055ff;
    --otp-btn-bg: #999;
    /* Grey submit button */
    --primary-dark: #003db3;
    --text-color: #333;
    --label-color: #222;
    --border-color: #ddd;
    --bg-color: #f9f9f9;
    --input-bg: #fff;
    --alert-bg: #eef4ff;
    --alert-text: #003db3;
    --alert-border: #0055ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.5;
    /* Default padding removed here to handle full screen blue panel better on login page */
    margin: 0;
}

/* Landing Page Specific Body Wrapper or just apply to global if shared */
body:not(.login-body) {
    padding: 20px 10px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 480px;
    background: #fff;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 25px;
}

header h1 {
    color: #003399;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 13px;
    color: #666;
    padding: 0 10px;
}

/* Alert Box */
.alert-box {
    background-color: var(--alert-bg);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.alert-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--alert-border);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.alert-box p {
    font-size: 13px;
    color: var(--alert-text);
    padding-left: 10px;
    margin: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: var(--label-color);
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    outline: none;
    background-color: var(--input-bg);
    transition: border-color 0.2s;
}

input:focus,
select:focus {
    border-color: var(--primary-blue);
}

.helper-text {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Date of Birth grid */
.dob-inputs {
    display: flex;
    gap: 10px;
}

.dob-year {
    flex: 2;
}

.dob-month {
    flex: 1;
}

.dob-day {
    flex: 1;
}

/* Custom Select Arrow */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "▼";
    font-size: 10px;
    color: #666;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f0f0f0;
}


/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
}

input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    accent-color: var(--primary-blue);
}

.form-check label {
    font-size: 12px;
    color: #555;
    font-weight: 400;
    line-height: 1.4;
}

.note {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

/* Buttons */
.actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-blue);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}


/* ---------------- LOGIN PAGE STYLES ---------------- */

.login-body {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.login-header {
    padding-top: 40px;
    padding-bottom: 30px;
    text-align: center;
}

.login-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-header .eco {
    color: #00539F;
    /* Corporate Blue */
}

.login-header .cash {
    color: #D8202F;
    /* Corporate Red */
}

.login-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.blue-panel {
    background-color: #0066cc;
    /* Slightly lighter typical EcoCash blue */
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    flex: 1;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.login-card {
    background-color: white;
    border-radius: 20px;
    padding: 25px 20px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.country-code-input {
    border: 2px solid #0047BA;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
    justify-content: flex-start;
    background: #fff;
}

.flag {
    font-size: 24px;
}

.phone-input-field {
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    flex: 1;
    /* Take remaining space */
    background: transparent;
    padding: 0;
    margin: 0;
}

.phone-input-field::placeholder {
    color: #bbb;
}

.pin-label {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
}

.pin-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pin-box {
    width: 50px;
    height: 50px;
    border: 2px solid #0047BA;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    /* Dots will be large */
    color: #0047BA;
    /* Text color if visible */
    padding: 0;
    background: white;
}

.pin-box:focus {
    border-color: #0055ff;
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.2);
    outline: none;
}

.login-actions {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-bottom: 30px;
}

.btn-action {
    flex: 1;
    background-color: white;
    color: #003399;
    /* Dark text */
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.footer-info {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

.footer-info p {
    margin-bottom: 5px;
}

/* Responsive tweaks */
@media (max-width: 400px) {
    body:not(.login-body) {
        padding: 15px;
    }

    .pin-box {
        width: 45px;
        height: 45px;
    }
}

/* ---------------- OTP PAGE STYLES ---------------- */

.otp-body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* items top */
    min-height: 100vh;
    padding-top: 20px;
}

.otp-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.otp-header {
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    padding: 5px;
}

.otp-card {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.otp-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: #444;
    /* Dark greyish title */
    margin-bottom: 15px;
}

.otp-desc {
    color: #666;
    font-size: 15px;
    margin-bottom: 5px;
}

.otp-phone {
    font-weight: 700;
    color: #333;
    font-size: 16px;
    margin-bottom: 25px;
}

.otp-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 20px;
}

.otp-box {
    width: 45px;
    height: 50px;
    border: 1px solid #0047BA;
    /* Blue border as shown in image */
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    padding: 0;
    outline: none;
    background: white;
    /* remove arrows from number input */
    -moz-appearance: textfield;
}

.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.timer {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

.btn-otp-submit {
    width: 100%;
    background-color: #aaa;
    /* Gray button as in image */
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-otp-submit:hover {
    background-color: #999;
}