:root {
    --primary-blue: #004bba;
    --primary-blue-hover: #00378b;
    --bg-light-blue: #f1f5fb;
    --yellow: #ffcc00;
    --text-dark: #333333;
    --text-muted: #777777;
    --border-color: #d1d5db;
    --input-bg: #ffffff;
    --error-red: #d32f2f;
    --info-bg: #e6efff;
    --info-border: #004bba;
    --info-text: #004bba;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light-blue);
    color: var(--text-dark);
    line-height: 1.5;
}

/* Header */
.top-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-left h1 {
    color: var(--yellow);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
}

.header-left p {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

.header-left small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.header-right {
    text-align: right;
}

.header-right h2 {
    color: #ff3b30; /* EcoCash red/pink brand color mix */
    background: -webkit-linear-gradient(#ff3b30, #ff8a80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
}
.header-right h2 {
    color: #f75d5d;
    -webkit-text-fill-color: initial;
}

.header-right small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.form-container {
    background-color: white;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h2 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Counter Banner */
.counter-banner {
    background: linear-gradient(135deg, #004bba, #00b4d8);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 75, 186, 0.2);
    animation: pulse 2s infinite;
}

.counter-number {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--yellow);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Info Alert */
.info-alert {
    background-color: var(--info-bg);
    color: var(--info-text);
    padding: 15px 20px;
    border-left: 4px solid var(--info-border);
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
}

.required {
    color: var(--error-red);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: var(--input-bg);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 75, 186, 0.1);
}

input::placeholder {
    color: #aaa;
}

/* Phone Input */
.phone-input-group {
    display: flex;
    align-items: center;
}

.phone-prefix {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 12px 15px;
    border-radius: 6px 0 0 6px;
    font-weight: 600;
    color: var(--primary-blue);
    white-space: nowrap;
}

.phone-input-group input {
    border-radius: 0 6px 6px 0;
}

/* DOB Group */
.dob-group {
    display: flex;
    gap: 10px;
}

.dob-group input {
    flex: 1;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 5px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
}

.checkbox-group label {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.checkbox-group a {
    color: var(--primary-blue);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.help-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}
.terms-help {
    margin-bottom: 25px;
}

/* Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
    background-color: var(--primary-blue-hover);
}

.submit-btn:active {
    transform: scale(0.98);
}

.reset-link {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.reset-link:hover {
    color: var(--primary-blue-hover);
}

/* Footer */
.bottom-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.75rem;
    color: #999;
}

/* Responsive */
@media (max-width: 600px) {
    .form-container {
        padding: 25px 20px;
        border-radius: 8px;
    }
    
    .top-header {
        padding: 15px 20px;
    }
    
    .dob-group {
        flex-direction: column;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.modal-content h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.modal-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn:hover {
    background-color: var(--primary-blue-hover);
}
