@import url('design-system.css');

/* ARF Volunteer Registration CSS */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --secondary: #e11d48;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --success: #16a34a;
    --success-main: #10b981;
    --danger: #dc2626;
    --font: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background-color: #f1f5f9; color: var(--dark); line-height: 1.6; }

/* Layout */
.registration-container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
}

.registration-sidebar {
    width: 35%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.sidebar-content { position: relative; z-index: 2; }
.sidebar-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    z-index: 1;
}

.brand-logo { max-width: 120px; margin-bottom: 2rem; border-radius: 50%; }
.registration-sidebar h2 { font-size: 2rem; margin-bottom: 1rem; font-weight: 700;  color: #fff !important; }
.registration-sidebar p { font-size: 1rem; opacity: 0.9; margin-bottom: 3rem;  color: #fff !important; }

/* Progress Indicator */
.step-list { list-style: none; }
.step-item {
    display: flex !important; flex-direction: row !important; align-items: center !important; text-align: left !important; color: #fff !important; margin-bottom: 1rem; opacity: 0.5; transition: 0.3s;
}
.step-item.active { opacity: 1; transform: translateX(10px); }
.step-item.completed { opacity: 0.8; }
.step-icon {
    width: 35px; height: 35px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px; font-size: 1rem;
}
.step-item.active .step-icon { background: #fff; color: var(--primary); box-shadow: 0 0 15px rgba(255,255,255,0.3); }
.step-item.completed .step-icon { background: var(--success-main); color: #fff; }
.step-text { font-weight: 500; font-size: 1.05rem; }

/* Form Area */
.registration-form-area {
    width: 65%;
    padding: 3rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-wrapper { width: 100%; max-width: 650px; margin: 0 auto; }
.step-panel { display: none; animation: fadeIn 0.4s ease; }
.step-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.step-panel h3 { font-size: 1.8rem; color: var(--dark); margin-bottom: 0.5rem; }
.section-title { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 1rem; border-bottom: 2px solid var(--border); padding-bottom: 0.5rem; }
.subtitle { color: var(--gray); margin-bottom: 2rem; }

/* Forms */
.form-group { margin-bottom: 1.2rem; width: 100%; }
.form-row { display: flex; gap: 1.5rem; }
.form-row .form-group { flex: 1; }

label { display: block; font-weight: 500; margin-bottom: 0.4rem; color: #334155; font-size: 0.95rem; }
.required { color: var(--secondary); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], select {
    width: 100%; padding: 12px 15px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 1rem; font-family: var(--font);
    transition: all 0.3s; background: #fff;
}
input:focus, select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}
input:disabled, select:disabled { background: #f1f5f9; cursor: not-allowed; }

.input-group { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1); }
.input-group .prefix { padding: 12px 15px; background: #f8fafc; color: var(--gray); border-right: 1px solid var(--border); font-weight: 500; }
.input-group input { border: none; box-shadow: none; border-radius: 0; }

.password-group { position: relative; }
.password-group input { padding-right: 45px; }
.toggle-password {
    background: none; border: none; color: var(--gray); font-size: 1.2rem; cursor: pointer; padding: 0 15px; height: 100%;
}
.toggle-password:hover { color: var(--primary); }
.hint-text { font-size: 0.8rem; color: var(--gray); display: block; margin-top: 4px; }

.error-msg { color: var(--secondary); font-size: 0.85rem; margin-top: 5px; display: none; }
.error-msg.show { display: block; }
input.error { border-color: var(--secondary); }

/* Buttons */
.btn {
    padding: 12px 24px; border: none; border-radius: 8px; font-weight: 600; font-size: 1rem;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.3s;
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2); }
.btn-secondary { background: #475569; color: #fff; }
.btn-secondary:hover { background: #334155; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--gray); }
.btn-outline:hover { background: #f1f5f9; color: var(--dark); }
.btn-success { background: var(--success-main); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; font-weight: 500; text-decoration: underline; }

.form-actions { margin-top: 2rem; display: flex; justify-content: flex-end; }
.space-between { justify-content: space-between; }
.mt-4 { margin-top: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* OTP Styles */
.info-box { background: #f0f9ff; border: 1px solid #bae6fd; padding: 12px 15px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.highlight-text { font-weight: 600; color: var(--primary-dark); }
.otp-inputs { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 10px; }
.otp-box { width: 45px !important; height: 50px; text-align: center; font-size: 1.5rem !important; font-weight: bold; border-radius: 8px; }
.resend-wrapper { text-align: right; font-size: 0.9rem; color: var(--gray); }

/* File Uploads */
.upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem; }
.upload-card label { text-align: center; margin-bottom: 8px; font-size: 0.85rem; }
.file-drop-area {
    border: 2px dashed var(--border); border-radius: 12px; padding: 1.5rem 1rem; text-align: center;
    position: relative; transition: all 0.3s; background: #fafafa; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.file-drop-area:hover { border-color: var(--primary); background: #f0f9ff; }
.file-drop-area i { font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }
.file-msg { display: block; font-size: 0.8rem; color: var(--gray); word-break: break-all; }
.file-drop-area input[type="file"] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop-area.has-file { border: 2px solid var(--success-main); background: #f0fdf4; }
.file-drop-area.has-file i { color: var(--success-main); }

/* Password Strength */
.strength-meter-box { display: flex; align-items: center; gap: 10px; }
.strength-bar { height: 6px; flex: 1; background: #e2e8f0; border-radius: 3px; position: relative; overflow: hidden; }
.strength-bar::before {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: var(--strength, 0%); transition: all 0.3s ease;
}
.strength-weak::before { background: var(--danger); }
.strength-medium::before { background: #eab308; }
.strength-strong::before { background: var(--success-main); }
.strength-label { font-size: 0.8rem; font-weight: 600; width: 60px; text-align: right; }

/* Review Details */
.review-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; }
.review-section { margin-bottom: 1.5rem; }
.review-section:last-child { margin-bottom: 0; }
.review-section h5 { color: var(--primary-dark); font-size: 1.05rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.review-section p { font-size: 0.95rem; margin-bottom: 5px; }

/* Checkbox */
.custom-checkbox { display: block; position: relative; padding-left: 30px; cursor: pointer; font-size: 0.95rem; user-select: none; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 2px; left: 0; height: 20px; width: 20px; background-color: #fff; border: 1px solid var(--border); border-radius: 4px; }
.custom-checkbox:hover input ~ .checkmark { background-color: #f1f5f9; }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--primary); border-color: var(--primary); }
.checkmark:after { content: ""; position: absolute; display: none; left: 7px; top: 3px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }

/* Payment & Success */
.payment-icon { font-size: 4rem; color: #f59e0b; margin-bottom: 1rem; }
.fee-box { background: #f8fafc; border: 1px dashed #cbd5e1; padding: 2rem; border-radius: 12px; margin: 2rem auto; max-width: 300px; }
.fee-box h2 { font-size: 3rem; color: var(--dark); margin-bottom: 0.5rem; }
.fee-box p { color: var(--gray); font-size: 0.95rem; margin: 0; }

.success-content { padding: 2rem 0; }
.success-icon { font-size: 5rem; color: var(--success-main); }
.id-card-summary { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; text-align: left; max-width: 400px; margin: 0 auto; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.id-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; }
.id-row:last-child { border-bottom: none; }
.id-row span { color: var(--gray); }
.highlight-id { font-size: 1.2rem; color: var(--primary-dark); font-family: monospace; letter-spacing: 1px; }

/* Loading Overlay */
#loadingOverlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9); z-index: 9999;
    display: none; flex-direction: column; align-items: center; justify-content: center;
}
#loadingOverlay.active { display: flex; }
.spinner { width: 50px; height: 50px; border: 4px solid #e2e8f0; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 15px; }
@keyframes spin { 100% { transform: rotate(360deg); } }
#loadingText { font-weight: 500; color: var(--dark); font-size: 1.1rem; }

/* Responsive */
@media (max-width: 992px) {
    .registration-container { flex-direction: column; }
    .registration-sidebar { width: 100%; padding: 2rem; }
    .registration-form-area { width: 100%; padding: 2.5rem 2rem; }
    .step-list { display: flex; flex-wrap: wrap; gap: 10px; }
    .step-item { margin-bottom: 0; }
    .step-text { display: none; }
}
@media (max-width: 768px) {
    .registration-sidebar { display: none; }
    .registration-form-area { padding: 2rem 1.5rem; }
}
@media (max-width: 576px) {
    .form-row { flex-direction: column; gap: 0; }
    .otp-box { width: 35px !important; height: 45px; }
    .registration-form-area { padding: 1.5rem 1rem; }
    .btn { min-height: 48px; width: 100%; }
    .form-actions { flex-direction: column; gap: 12px; }
    .form-actions .btn { width: 100%; }
}
@media (max-width: 360px) {
    .registration-form-area h3 { font-size: 1.4rem; }
    .subtitle { font-size: 0.85rem; }
}

