
    :root {
        --primary: linear-gradient(85deg, rgba(26, 44, 121, 0.8) 30%, rgba(232, 5, 102, 0.9) 100%) !important;
        --primary-dark: #1d4ed8;
        --secondary: #64748b;
        --light: #f8fafc;
        --dark: #1e293b;
        --success: #10b981;
        --error: #ef4444;
        --border: #e2e8f0;
        --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }

    .kyc-form-container {
        width: 100%;
        max-width: 900px;
        margin: 40px auto;
        background: white;
        border-radius: 16px;
        box-shadow: var(--card-shadow);
        overflow: hidden;
    }

    .top {
        color: white;
        padding: 30px;
        text-align: center;
        border-bottom: 2px solid var(--border);
    }

    .top h2 {
        font-size: 24px;
        font-weight: 600;
        margin: 0;
    }

    .top p {
        margin-top: 8px;
        opacity: 0.9;
        font-size: 14px;
    }

    .progress-container {
        background: white;
        padding: 20px 30px;
        display: flex;
        justify-content: space-between;
        position: relative;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .progress-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        z-index: 2;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--light);
        border: 2px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
        color: var(--secondary);
        font-weight: bold;
        transition: all 0.3s ease;
    }

    .step-label {
        font-size: 12px;
        font-weight: 500;
        color: var(--secondary);
        transition: all 0.3s ease;
        text-align: center;
    }

    .progress-step.active .step-icon {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .progress-step.active .step-label {
        color: var(--primary);
        font-weight: 600;
    }

    .progress-step.completed .step-icon {
        background: var(--success);
        color: white;
        border-color: var(--success);
    }

    .progress-bar {
        position: absolute;
        height: 3px;
        background: var(--border);
        top: 40px;
        left: 30px;
        right: 30px;
        z-index: 1;
    }

    .progress-fill {
        height: 100%;
        background: var(--success);
        width: 0%;
        transition: width 0.5s ease;
    }

    .form-content {
        padding: 30px;
    }

    .form-section {
        display: none;
    }

    .form-section.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .section-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--primary);
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--border);
        display: flex;
        align-items: center;
    }

    .section-title i {
        margin-right: 10px;
    }

    .form-row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -10px;
    }

    .form-group {
        flex: 1 0 calc(50% - 20px);
        margin: 0 10px 20px;
        min-width: 250px;
    }

    .form-group-full {
        flex: 1 0 100%;
        margin: 0 10px 20px;
    }

    label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--dark);
        font-size: 14px;
    }

    label.required:after {
        content: " *";
        color: var(--error);
    }

    .input-with-icon {
        position: relative;
    }

    .input-with-icon i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--secondary);
    }

    .input-with-icon input,
    .input-with-icon select,
    .input-with-icon textarea {
        padding-left: 40px;
    }

    input,
    select,
    textarea {
        width: 100%;
        padding: 12px 16px;
        border: 1.5px solid var(--border);
        border-radius: 8px;
        font-size: 15px;
        color: var(--dark);
        transition: all 0.3s ease;
        background: var(--light);
    }

    input:focus,
    select:focus,
    textarea:focus {
        border-color: var(--primary);
        outline: none;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    textarea {
        resize: vertical;
        min-height: 100px;
    }

    .form-footer {
        display: flex;
        justify-content: space-between;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid var(--border);
    }

    .btn {
        padding: 12px 24px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn i {
        margin-right: 8px;
    }


    .btn-next,
    .btn-submit,
    .btn-prev {
        background: var(--primary);
        color: white;
    }

    .btn-next:hover,
    .btn-submit:hover,
    .btn-prev:hover {
        background: var(--primary-dark);
    }

    .error-message {
        color: var(--error);
        font-size: 12px;
        margin-top: 5px;
        display: none;
    }

    input.error,
    select.error,
    textarea.error {
        border-color: var(--error);
    }

    input.error+.error-message,
    select.error+.error-message,
    textarea.error+.error-message {
        display: block;
    }

    .success-message {
        text-align: center;
        padding: 40px;
        display: none;
    }

    .success-message i {
        font-size: 60px;
        color: var(--success);
        margin-bottom: 20px;
    }

    .success-message h3 {
        font-size: 22px;
        margin-bottom: 10px;
        color: var(--success);
    }

    .success-message p {
        color: var(--secondary);
        margin-bottom: 20px;
    }

    /* OTP and Password Styles */
    .otp-container {
        display: flex;
        gap: 10px;
        margin-top: 10px;
    }

    .otp-input {
        width: 50px;
        height: 50px;
        text-align: center;
        font-size: 20px;
        border: 2px solid var(--border);
        border-radius: 8px;
    }

    .otp-input:focus {
        border-color: var(--primary);
        outline: none;
    }

    .btn-otp {
        padding: 8px 16px;
        font-size: 14px;
        margin-top: 10px;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }

    .btn-otp:disabled {
        background: var(--secondary);
        cursor: not-allowed;
    }

    .password-toggle {
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: var(--secondary);
    }

    /* File Upload Styles */
    .file-upload {
        position: relative;
        margin-bottom: 20px;
    }

    .file-upload-label {
        display: block;
        padding: 12px;
        border: 2px dashed var(--border);
        border-radius: 8px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .file-upload-label:hover {
        border-color: var(--primary);
        background: rgba(37, 99, 235, 0.05);
    }

    .file-upload-label i {
        font-size: 24px;
        color: var(--primary);
        margin-bottom: 8px;
    }

    .file-upload-input {
        position: absolute;
        width: 0;
        height: 0;
        opacity: 0;
    }

    .file-preview {
        margin-top: 10px;
        text-align: center;
        display: none;
    }

    .file-preview img {
        max-width: 150px;
        max-height: 150px;
        border-radius: 8px;
        border: 1px solid var(--border);
    }

    .file-name {
        margin-top: 5px;
        font-size: 14px;
        color: var(--secondary);
    }

    .other-document-select {
        margin-bottom: 15px;
    }

    @media (max-width: 768px) {
        .form-group {
            flex: 1 0 100%;
        }

        .kyc-form-container {
            border-radius: 12px;
        }

        .top {
            padding: 20px;
        }

        .form-content {
            padding: 20px;
        }

        .progress-container {
            padding: 15px 20px;
        }

        .step-label {
            font-size: 10px;
        }

        .progress-bar {
            top: 30px;
            left: 20px;
            right: 20px;
        }

        .otp-container {
            flex-wrap: wrap;
            justify-content: center;
        }
    }

    /* Add these styles to your existing signupstyle.css */

/* Loading animation for referral name field */
.loading-referral {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ddd" stroke-width="8"/><circle cx="50" cy="50" r="40" fill="none" stroke="%23007bff" stroke-width="8" stroke-dasharray="62.83 62.83" transform="rotate(-90 50 50)"><animate attributeName="stroke-dashoffset" values="0;125.66" dur="2s" repeatCount="indefinite"/></circle></svg>');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
}

/* Make the referral name field look readonly */
.input-with-icon input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.8;
}