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

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #0d0926;
    min-height: 100vh;
    position: relative;
}

/* Background Gradient */
.background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, #1e135e 0%, #0d0926 70%);
    z-index: -1;
}

.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 2vh 20px 1vh 20px;
    width: 100%;
}

/* Header */
.header {
    text-align: center;
    color: #ffffff;
    margin-bottom: 12px;
}

.header h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.header h1 span {
    color: #a476ff;
}

.header p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e0e0e0;
    max-width: 950px;
    margin: 0 auto;
}

/* Form Container */
.form-container {
    background: #fff;
    border-radius: 12px;
    padding: 15px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.form-container:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 25px 60px rgba(74, 37, 225, 0.15), 0 0 25px rgba(164, 118, 255, 0.3);
}

/* Progress Bar */
.progress-wrapper {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    min-width: 35px;
}

.progress-bar-bg {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #4a25e1;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Steps */
.step-title {
    text-align: center;
    color: #000000;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.step {
    display: none;
    opacity: 0;
}

.step.active {
    display: block;
    opacity: 1;
}

/* Form Controls */
.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a40;
    margin-bottom: 4px;
}

.required {
    color: #d93025;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
    background-color: #fff;
    outline: none;
}

.form-control:focus {
    border-color: #7a52ff;
    box-shadow: 0 0 0 3px rgba(122, 82, 255, 0.2);
    background-color: #fff;
}


select option {
    background: #fff;
    color: #333;
    padding: 10px;
}

select option:checked {
    background-color: #e6e1ff;
    color: #1a1a40;
}

select option:hover, select option:focus, select option:active {
    background-color: #7B59DF !important;
    box-shadow: 0 0 10px 100px #7B59DF inset !important;
    color: #ffffff !important;
}

.form-control::placeholder {
    color: #9ca3af;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 10px auto;
}

select.form-control:hover {
    background-color: #e6e1ff;
}

/* Card Radio Group */
.card-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.card-radio-label {
    flex: 1;
    min-width: 140px;
    cursor: pointer;
}

.card-radio-label input {
    display: none;
}

.card-radio-content {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    min-height: 80px;
}

.card-radio-label:hover .card-radio-content {
    border-color: #4a25e1;
    box-shadow: 0 4px 12px rgba(74, 37, 225, 0.1);
}

.card-radio-label input:checked + .card-radio-content {
    border-color: #4a25e1;
    border-width: 2px;
    background: rgba(74, 37, 225, 0.03);
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    padding: 15px;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.card-radio-content.has-badge {
    padding-bottom: 0;
}

.card-radio-content.has-badge .card-title {
    padding: 15px 10px;
}

.card-badge {
    background-color: #d1fae5;
    color: #059669;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px;
    width: 100%;
    display: block;
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #4a25e1;
    box-shadow: 0 0 0 3px rgba(74, 37, 225, 0.1);
}

.phone-input-wrapper .flag {
    padding: 0 12px 0 16px;
    font-size: 1.2rem;
    border-right: 1px solid #e5e7eb;
    background-color: #f9fafb;
    height: 100%;
    display: flex;
    align-items: center;
}

.phone-input-wrapper .form-control {
    border: none;
    border-radius: 0;
}

.phone-input-wrapper .form-control:focus {
    box-shadow: none;
}

/* Buttons */
.btn-group {
    display: flex;
    margin-top: 30px;
}

.btn-group.right {
    justify-content: flex-end;
}

.btn-group.space-between {
    justify-content: space-between;
}

.btn-group.align-center {
    align-items: center;
}

.btn {
    background: #4a25e1;
    color: #fff;
    border: 2px solid transparent;
    padding: 10px 28px; /* Adjusted slightly to accommodate 2px border without expanding button too much */
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 37, 225, 0.2);
}

.btn:hover {
    background: #ffffff;
    color: #4a25e1;
    border-color: #4a25e1;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(74, 37, 225, 0.3);
}

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

.btn.hidden {
    display: none;
    opacity: 0;
}

.error-msg {
    color: #d93025;
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading & Success States */
.loading-step, .success-step {
    text-align: center;
    padding: 40px 0;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a25e1;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-step p, .success-step p {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.success-step h2 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 10px;
}

/* Feature Cards */
.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.feature-card {
    background: #b9ff4b; /* Lime green color requested by user */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: none; /* No border for solid look */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: #c5ff68; /* Slightly brighter lime on hover */
    box-shadow: 0 15px 40px rgba(185, 255, 75, 0.4); /* Lime glow */
}

.feature-icon {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    background: #ffffff;
}

.feature-content {
    padding: 25px 20px;
    color: #111827; /* Dark text for readability on yellow background */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.center-content {
    justify-content: center !important;
    align-items: center !important;
}

.risk-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}

.risk-0 {
    font-size: clamp(3rem, 7vw, 4rem);
    line-height: 1;
    color: #111827;
}

.risk-words {
    display: flex;
    flex-direction: column;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.15;
    letter-spacing: 0.5px;
    color: #111827;
    text-align: left;
}

.recent-fund-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    color: #111827;
}

.apply-now-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
    color: #111827;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feature-title .arrow {
    font-size: 1.4rem;
    font-weight: 400;
}

.feature-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

.feature-badge {
    background: rgba(0,0,0,0.25);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

/* Footer */
.footer {
    text-align: center;
    color: #ffffff;
    font-size: 0.95rem;
    padding-top: 2vh;
}

/* Responsive */
@media (max-width: 768px) {
    .step-title {
        font-size: 1.3rem;
    }
    
    .header h1 {
        font-size: 2.4rem;
    }
    
    .header p {
        display: none;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .card-radio-group {
        flex-direction: column;
        gap: 15px;
    }

    .form-control {
        font-size: 16px; /* Prevents auto-zoom on iOS */
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: clamp(1rem, 5.5vw, 1.5rem);
    }
    
    .btn {
        width: 100%;
    }
    
    .form-control {
        font-size: 1rem;
    }

    .btn-group.space-between {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-group.space-between .btn {
        width: 100%;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer {
        padding-bottom: 30px;
    }
}
