:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --sidebar-bg: #1f2937;
    --sidebar-border: #374151;
    --sidebar-hover: #374151;
    --sidebar-text: #e5e7eb;
    --sidebar-text-muted: #9ca3af;
    --background: #f9fafb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --success: #10b981;
    --warning: #f59e0b;
    --destructive: #ef4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Navigation */
.menu-top {
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0066ff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a {
    color: #0066ff;
    text-decoration: none
}

.logo::before {
    content: "◆";
    color: #ff4757;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login {
    background: #0052cc;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

a,
a:hover {
    text-decoration: none;
}

.btn-register {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.6rem 1.2rem;
    border: 2px solid white;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-register:hover {
    background: white;
    color: #0052cc;
    text-decoration: none;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    animation: fadeInLeft 0.8s ease;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 82, 204, 0.1);
    color: #0052cc;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    color: #0a1929;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: #5f6368;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 82, 204, 0.4);
}

.btn-secondary {
    background: white;
    color: #0052cc;
    padding: 1rem 2rem;
    border: 2px solid #0052cc;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #f0f4ff;
}

.hero-image {
    flex: 1;
    animation: fadeInRight 0.8s ease;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 82, 204, 0.2));
}

/* Features Section */
.features {
    background: white;
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #0a1929;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #5f6368;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4ff 100%);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 82, 204, 0.1);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 82, 204, 0.15);
    border-color: #0052cc;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #0a1929;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: #5f6368;
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    background: linear-gradient(135deg, #0052cc 0%, #0066ff 100%);
    color: white;
    padding: 4rem 2rem;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.benefits-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    padding: 1rem 0;
    padding-left: 3rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.benefits-image {
    display: flex;
    justify-content: center;
}

.benefits-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #0a1929 0%, #0052cc 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: #ff4757;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.cta .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
}

/* Footer */
footer {
    background: #0a1929;
    color: white;
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #0066ff;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #b0bec5;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #b0bec5;
}

.carrd {
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.steps-indicator {
    display: flex;
    background: #f8f9fa;
    padding: 20px;
    gap: 10px;
    justify-content: space-between;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    cursor: pointer;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.step.active .step-number {
    background: linear-gradient(135deg, #0052CC 0%, #0066FF 100%);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.step.active .step-label {
    color: #0052CC;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin-top: 20px;
}

.step-line.active {
    background: #4CAF50;
}

.content {
    padding: 30px 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0052CC;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ff4444;
    background: #fff5f5;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Updated info-box styling for better visual prominence */
.info-box {
    background: linear-gradient(135deg, #0052CC15 0%, #0066FF15 100%);
    border-left: 4px solid #0052CC;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #0052CC30;
}

.info-box h3 {
    color: #0052CC;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 700;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 14px;
    color: #333;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 82, 204, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: #555;
}

.info-row .value {
    color: #0052CC;
    font-weight: 700;
    font-size: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 78px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    margin-bottom: 15px;
}

.upload-area:hover {
    border-color: #0052CC;
    background: #f0f5ff;
}

.upload-area.has-file {
    border-color: #4CAF50;
    background: #f1f8f5;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.upload-text {
    color: #666;
    font-size: 12px;
}

.upload-text.has-file {
    color: #4CAF50;
}

.upload-filename {
    font-size: 12px;
    color: #0052CC;
    margin-top: 8px;
    font-weight: 600;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background: #f1f8f5;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    border-radius: 6px;
    color: #2e7d32;
    display: none;
}

.success-message.show {
    display: block;
}

.contract-text {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.6;
    color: #555;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 13px;
}

/* Replaced slider with improved input number styling */
.amount-input-container {
    margin: 20px 0;
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input-wrapper input[type="number"] {
    width: 100%;
    padding: 16px 16px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: left;
    transition: all 0.3s;
    background: linear-gradient(to right, rgba(0, 82, 204, 0.02) 0%, transparent 100%);
}

.amount-input-wrapper input[type="number"]:focus {
    border-color: #0052CC;
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.15);
    outline: none;
}

.amount-currency {
    position: absolute;
    right: 16px;
    font-size: 16px;
    color: #0052CC;
    font-weight: 600;
    pointer-events: none;
}

.amount-range-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

/* Hide forms by default, only show active step */
.step-form {
    display: none;
}

.step-form.active {
    display: block;
}

/* Added styling for step title */
.step-form h2 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 25px;
    font-weight: 700;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#repaymentModal .modal-content {
    max-width: 600px;
    background: #fff;
    margin: 50px auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    width: 100%;
}

#closeSchedule,
#showSchedule {
    cursor: pointer;
}

.preview img {
    margin-top: 8px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.upload-area:hover {
    border-color: #007bff;
}

.upload-icon {
    font-size: 24px;
}

.upload-filename {
    margin-top: 5px;
    font-size: 13px;
    color: #555;
}

.preview img {
    display: block;
    margin-top: 8px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.upload-area.has-file {
    border-color: #28a745;
}

.row-cloumn {
    display: flex;
}

.row-cloumn .sidebar {
    width: 256px;
    background-color: #fff;
    color: var(--sidebar-text);
    border-right: 1px solid #e1d9d9;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.row-cloumn .sidebar-header {
    padding: 24px;
}

.row-cloumn .sidebar-header h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.row-cloumn .sidebar-header p {
    font-size: 14px;
    color: var(--sidebar-text-muted);
    margin-top: 4px;
}

.row-cloumn .sidebar-nav {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    justify-content: normal;
}

.row-cloumn .nav-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    transition: all 0.2s;
}

.row-cloumn .nav-btn:hover {
    background-color: var(--sidebar-hover);
}

.row-cloumn .nav-btn.active {
    background-color: var(--primary);
    color: white;
}

.row-cloumn .nav-btn svg {
    width: 20px;
    height: 20px;
}

.row-cloumn .nav-btn.active svg path,
.row-cloumn .nav-btn.active rect {
    fill: #fff
}

.row-cloumn .sidebar-divider {
    height: 1px;
    background-color: var(--sidebar-border);
}

.row-cloumn .sidebar-footer {
    padding: 16px;
}

.row-cloumn .logout-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--destructive);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    transition: all 0.2s;
}

.row-cloumn .logout-btn:hover {
    color: var(--destructive);
    background-color: rgba(239, 68, 68, 0.1);
}

.row-cloumn .main {
    flex: 1;
    overflow-y: auto;
    background-color: var(--background);
}

.row-cloumn .profile-section,
.row-cloumn .loans-section {
    min-height: 100vh;
    padding: 32px;
}

.row-cloumn .section-hidden {
    display: none;
}

.row-cloumn .section-header {
    margin-bottom: 32px;
}

.row-cloumn .section-header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
}

.row-cloumn .section-header p {
    color: var(--text-secondary);
}

.row-cloumn .card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.row-cloumn .card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.row-cloumn .card-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}

.row-cloumn .card-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.row-cloumn .card-content {
    padding: 24px;
}

.row-cloumn .profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.row-cloumn .avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.row-cloumn .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-cloumn .profile-info {
    flex: 1;
}

.row-cloumn .profile-name {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
}

.row-cloumn .profile-email {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.row-cloumn .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 16px;
}

.row-cloumn .btn-primary {
    background-color: var(--primary);
    color: white;
}

.row-cloumn .btn-primary:hover {
    background-color: var(--primary-hover);
}

.row-cloumn .btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.row-cloumn .btn-outline:hover {
    background-color: var(--background);
}

.row-cloumn .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.row-cloumn .info-item {
    display: flex;
    flex-direction: column;
}

.row-cloumn .info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.row-cloumn .info-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 8px;
}

.row-cloumn .loan-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.row-cloumn .loan-card:hover {
    border-color: var(--primary);
}

.row-cloumn .loan-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.row-cloumn .loan-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.row-cloumn .loan-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.row-cloumn .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.row-cloumn .badge-default {
    background-color: var(--primary);
    color: white;
}

.row-cloumn .badge-secondary {
    background-color: var(--success);
    color: white;
}

.row-cloumn .loan-content {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
}

.row-cloumn .loan-detail {
    display: flex;
    flex-direction: column;
}

.row-cloumn .loan-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.row-cloumn .loan-detail-value {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    margin-top: 8px;
}

.form-control {
    padding: 10px 5px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #e7e7e7;
    font-weight: bold;
    color: #000;
    font-size: 16px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal container */
.popup-modal {
    background: white;
    border-radius: 8px;
    padding: 32px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
}

/* Close button */
.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #333;
}

/* Title */
.popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    margin-top: 8px;
}

/* Icon container */
.popup-icon {
    width: 56px;
    height: 56px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    color: white;
}

/* Message text */
.popup-message {
    font-size: 1rem;
    color: #000;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Action button */
.popup-button {
    width: 100%;
    padding: 12px 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.popup-button:hover {
    background: #1d4ed8;
}

.popup-button:active {
    background: #1e40af;
}

/* Responsive */
@media (max-width: 768px) {
    .row-cloumn .container {
        flex-direction: column;
    }

    .row-cloumn {
        display: block;
    }

    .row-cloumn .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--sidebar-border);
        height: auto;
    }

    .row-cloumn .sidebar-nav {
        display: block;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .row-cloumn .profile-section,
    .row-cloumn .loans-section {
        padding: 16px;
    }

    .row-cloumn .section-header h1 {
        font-size: 24px;
    }

    .row-cloumn .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .row-cloumn .info-grid {
        grid-template-columns: 1fr;
    }

    .row-cloumn .loan-content {
        grid-template-columns: 1fr;
    }


}



@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .steps-indicator {
        gap: 5px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        margin: 2rem auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-image img {
        max-width: 100%;
    }

    .benefits-container {
        grid-template-columns: 1fr;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta .btn-primary,
    .cta .btn-secondary {
        width: 100%;
    }
}

.steps-indicator {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin: 40px 0;
    position: relative;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 90px;
}

.step-number {
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    margin: 0 auto 8px;
    background-color: #e0e0e0;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

/* completed */
.step.completed .step-number {
    background-color: #4caf50;
    color: #fff;
}

.step.completed .step-label {
    color: #4caf50;
}

/* active */
.step.active .step-number {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
    transform: scale(1.1);
}

.step.active .step-label {
    color: #007bff;
    font-weight: 600;
}

/* nối line giữa các step */
.step::after {
    content: '';
    position: absolute;
    top: 22px;
    right: -20px;
    width: 40px;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step.completed::after {
    background-color: #4caf50;
}

.step:last-child::after {
    display: none;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 200px;
    /* ✅ giữ chiều cao cố định */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 6px;
    opacity: 0.7;
}

.upload-text {
    font-size: 15px;
    color: #555;
}

.upload-filename {
    margin-top: 8px;
    font-size: 13px;
    color: #28a745;
}

.upload-area.has-file {
    border: none;
    background: transparent;
    padding: 0;
    min-height: auto;
}

.upload-area img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.btn-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.btn-remove:hover {
    background: rgba(255, 0, 0, 0.8);
}

.preview-wrapper img {
    height: 200px;
    object-fit: contain;
}

.navbar {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-container {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Renamed .nav-item to .navbar-item to avoid conflicts */
.navbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    text-decoration: none;
    color: #333;
    border-right: 1px solid #e0e0e0;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.navbar-item:last-child {
    border-right: none;
}

.navbar-item:hover {
    background-color: #f9f9f9;
}

.navbar-item.active {
    background-color: #f0f7ff;
    color: #0066cc;
}

/* Renamed .nav-icon to .navbar-icon */
.navbar-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    stroke: currentColor;
}

/* Renamed .nav-label to .navbar-label */
.navbar-label {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .navbar-item {
        padding: 10px 4px;
        gap: 6px;
    }

    .navbar-icon {
        width: 20px;
        height: 20px;
    }

    .navbar-label {
        font-size: 11px;
    }
}

/* Tablet Responsive */
@media (min-width: 481px) and (max-width: 768px) {
    .navbar-item {
        padding: 12px 8px;
        gap: 8px;
    }

    .navbar-icon {
        width: 24px;
        height: 24px;
    }

    .navbar-label {
        font-size: 12px;
    }
}

/* Desktop Responsive */
@media (min-width: 769px) {
    .navbar-item {
        padding: 14px 16px;
        gap: 10px;
    }

    .navbar-icon {
        width: 28px;
        height: 28px;
    }

    .navbar-label {
        font-size: 13px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .steps-indicator {
        gap: 25px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 14px;
    }

    .step-label {
        font-size: 12px;
    }

    .hero-content {
        width: 100%;
    }

    .row-cloumn .sidebar-header {
        padding-bottom: 0;
    }

    .row-cloumn .sidebar-header p {
        margin-bottom: 0;
    }

    .btn-register {
        background-color: #003a90;
    }

    .nav-buttons a {
        font-size: 14px;
    }

    .logo::before {
        display: none;
    }

    .btn-register {
        border: 0;
    }
}