﻿
:root {
    --stripe-purple: #635bff;
    --stripe-purple-light: #7c3aed;
    --stripe-purple-dark: #5b21b6;
    --stripe-blue: #0070f3;
    --stripe-blue-light: #00d4ff;
    --stripe-green: #00d924;
    --stripe-orange: #ff5722;
    --stripe-gray-50: #f8fafc;
    --stripe-gray-100: #f1f5f9;
    --stripe-gray-200: #e2e8f0;
    --stripe-gray-300: #cbd5e1;
    --stripe-gray-400: #94a3b8;
    --stripe-gray-500: #64748b;
    --stripe-gray-600: #475569;
    --stripe-gray-700: #334155;
    --stripe-gray-800: #1e293b;
    --stripe-gray-900: #0f172a;
}


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding: 20px;
    line-height: 1.5;
}

.loan-container {
    max-width: 1300px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.header {
    text-align: center;
    padding: 40px 20px 30px;
    background: white;
}

    .header h1 {
        color: #333;
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .header p {
        color: #6b7280;
        font-size: 1rem;
    }

.brand-text {
    font-family: 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--stripe-gray-800), var(--stripe-purple));
    -webkit-background-clip: text;
}
.progress-bar-c {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
    padding: 0 1rem; /* use relative padding instead of fixed 40px */
}

.progress-line-c {
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    height: 4px;
    background: #e5e7eb;
    z-index: 1;
    transform: translateY(-50%);
}

.progress-line-fill-c {
    height: 100%;
    background: #2563eb;
    transition: width 0.3s ease;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-width: 80px;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.completed .step-icon {
    background: #16A249;
    color: white;
}

.step.active .step-icon {
    background: linear-gradient(135deg, var(--stripe-purple), var(--stripe-purple-light));
    color: white;
}

.step.inactive .step-icon {
    background: #e5e7eb;
    color: #9ca3af;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: #374151;
    word-break: break-word;
}

.step.inactive .step-label {
    color: #9ca3af;
}

.form-content {
    padding: 0 40px 40px;
}

.step-content {
    display: none;
}

    .step-content.active {
        display: block;
    }

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: white;
}

    .form-control:focus {
        outline: none;
        border-color: #2563eb;
    }

    .form-control::placeholder {
        color: #9ca3af;
    }

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .file-upload:hover {
        border-color: #2563eb;
        background: #f0f9ff;
    }

.file-upload-icon {
    font-size: 2rem;
    color: #9ca3af;
    margin-bottom: 12px;
}

.file-upload-text {
    color: #6b7280;
    margin-bottom: 8px;
}

.file-upload-formats {
    font-size: 0.875rem;
    color: #9ca3af;
}

.file-input {
    display: none;
}

.btn-file {
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    margin-top: 12px;
}

    .btn-file:hover {
        background: #1d4ed8;
    }

.summary-section {
    background: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.summary-item {
    margin-bottom: 12px;
}

.summary-label {
    font-weight: 600;
    font-size: 0.95rem; /* Optional: bump readability */
    color: #111827;
    margin-bottom: 4px;
}

.summary-value {
    color: #374151;
}

.info-box {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.info-title {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 12px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
}

    .checkbox-group input[type="checkbox"] {
        margin-top: 4px;
    }

    .checkbox-group label {
        margin: 0;
        color: #374151;
    }

    .checkbox-group a {
        color: #2563eb;
        text-decoration: none;
    }

        .checkbox-group a:hover {
            text-decoration: underline;
        }

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--stripe-purple), var(--stripe-purple-light));
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(99, 91, 255, 0.4);
    }

.btn-outline-primary {
    border: 2px solid var(--stripe-purple);
    color: var(--stripe-purple);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background: var(--stripe-purple);
        border-color: var(--stripe-purple);
        transform: translateY(-1px);
    }

.btn-success {
    background: #10b981;
    color: white;
}

    .btn-success:hover {
        background: #059669;
    }

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

    .btn-secondary:hover {
        background: #e5e7eb;
    }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #dc3545;
}

.logo-img {
    height: 100px; /* adjust size as needed */
    width: auto;
    display: block;
    margin: 0 auto;
}


.corner-decor {
    position: fixed;
    z-index: -1;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, var(--stripe-purple-light), transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.top-left {
    top: 0;
    left: 0;
    border-top-left-radius: 100%;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-bottom-right-radius: 100%;
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
    }

    .header {
        padding: 20px;
    }

        .header h1 {
            font-size: 1.5rem;
        }

    .progress-bar {
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .form-content {
        padding: 0 20px 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(255,255,255,0.8) url("/assets/images/Spinner.gif") center no-repeat;
    background-size: 100px;
}

body.loading {
    overflow: hidden;
}
    /* Make spinner image visible when body element has the loading class */
    body.loading .overlay {
        display: block;
    }


.file-upload {
    border: 2px dashed #ccc;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

    .file-upload:hover {
        border-color: #007bff;
    }

.file-preview {
    margin-top: 10px;
    display: none;
    text-align: center;
}

    .file-preview img {
        max-width: 120px;
        max-height: 120px;
        margin-top: 5px;
        border-radius: 4px;
    }

    .file-preview .file-icon {
        font-size: 40px;
        color: #dc3545;
    }

.file-name {
    font-size: 14px;
    margin-top: 5px;
    word-break: break-word;
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .progress-bar {
        overflow-x: auto;
        padding: 0 10px;
    }

    .step {
        min-width: 80px;
    }
}