/* Modern Responsive Design Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: -2;
}

/* Mobile background fallback */
@media (max-width: 768px) {
    body::before {
        opacity: 0.1;
    }
    
    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

/* Animated particles overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 219, 98, 0.2) 0%, transparent 50%);
    animation: floatingTexture 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes floatingTexture {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(1deg); }
    66% { transform: translate(20px, -10px) rotate(-1deg); }
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.particle:nth-child(1) {
    width: 2px;
    height: 2px;
    top: 15%;
    left: 10%;
    animation: float1 20s infinite ease-in-out;
}

.particle:nth-child(2) {
    width: 3px;
    height: 3px;
    top: 70%;
    left: 85%;
    animation: float2 25s infinite ease-in-out;
}

.particle:nth-child(3) {
    width: 2px;
    height: 2px;
    top: 35%;
    left: 45%;
    animation: float3 18s infinite ease-in-out;
}

.particle:nth-child(4) {
    width: 3px;
    height: 3px;
    top: 85%;
    left: 25%;
    animation: float4 22s infinite ease-in-out;
}

.particle:nth-child(5) {
    width: 2px;
    height: 2px;
    top: 50%;
    left: 75%;
    animation: float5 30s infinite ease-in-out;
}

.particle:nth-child(6) {
    width: 1px;
    height: 1px;
    top: 25%;
    left: 60%;
    animation: float6 15s infinite ease-in-out;
}

/* Moving lines */
.particle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    top: 50%;
    left: 50%;
    transform-origin: left center;
}

.particle:nth-child(1)::before {
    width: 80px;
    animation: rotate1 10s infinite linear;
}

.particle:nth-child(2)::before {
    width: 120px;
    animation: rotate2 15s infinite linear;
}

.particle:nth-child(3)::before {
    width: 60px;
    animation: rotate3 12s infinite linear;
}

.particle:nth-child(4)::before {
    width: 100px;
    animation: rotate4 18s infinite linear;
}

.particle:nth-child(5)::before {
    width: 90px;
    animation: rotate5 20s infinite linear;
}

.particle:nth-child(6)::before {
    width: 70px;
    animation: rotate6 8s infinite linear;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(40px, -60px) scale(1.5); opacity: 0.8; }
    50% { transform: translate(-30px, -80px) scale(0.8); opacity: 0.4; }
    75% { transform: translate(60px, -40px) scale(1.2); opacity: 0.7; }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    25% { transform: translate(-50px, 60px) scale(1.8); opacity: 0.6; }
    50% { transform: translate(40px, -80px) scale(0.7); opacity: 0.3; }
    75% { transform: translate(-40px, 50px) scale(1.3); opacity: 0.8; }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(60px, -50px) scale(1.6); opacity: 0.7; }
    50% { transform: translate(-50px, 60px) scale(0.9); opacity: 0.4; }
    75% { transform: translate(40px, -70px) scale(1.4); opacity: 0.6; }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(-40px, -60px) scale(1.7); opacity: 0.8; }
    50% { transform: translate(50px, 50px) scale(0.8); opacity: 0.5; }
    75% { transform: translate(-60px, 40px) scale(1.5); opacity: 0.7; }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    25% { transform: translate(70px, 60px) scale(1.8); opacity: 0.6; }
    50% { transform: translate(-50px, -70px) scale(0.7); opacity: 0.3; }
    75% { transform: translate(60px, 50px) scale(1.6); opacity: 0.8; }
}

@keyframes float6 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(-30px, 40px) scale(1.4); opacity: 0.4; }
    50% { transform: translate(40px, -50px) scale(0.8); opacity: 0.7; }
    75% { transform: translate(-50px, 30px) scale(1.2); opacity: 0.5; }
}

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

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

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

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

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

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

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Header Styles */
.header {
    background: #e0ebeb80;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo img {
    height: 120px;
    background-color: #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.header-right a {
    background: #ef2a28;
    color: white;
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-right a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
}

/* Centered Content */
.centered-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Form Section */
.form-section {
    display: flex;
    width: 100%;
    padding: 40px 0;
    align-items: center;
}

.form-overview {
    flex: 1;
    padding: 40px;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
}

.form-overview h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.form-overview p {
    font-size: 1.2em;
    line-height: 1.6;
}

.form-content {
    flex: 1;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Multi-Step Form */
.multi-step-form {
    position: relative;
}

.step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step.active {
    display: block;
}

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

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #ef2a28;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.progress-step.completed .step-number {
    background: #27ae60;
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.progress-step .step-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #ef2a28;
    font-weight: 600;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Range Slider */
.range-container {
    margin: 30px 0;
    padding: 0 10px;
}

.range-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-display {
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    color: #3498db;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

/* Buttons */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ef2a28;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

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

/* Checkbox */
.checkbox-group {
    margin: 25px 0;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.5;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
    transform: scale(1.2);
}

.checkbox-group a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Benefits Section */
.benefits-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 0;
    background: #f8f9fa;
    width: 100%;
}

.benefit {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.benefit img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
}

.benefit h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

.benefit p {
    color: #666;
    line-height: 1.5;
    font-size: 1em;
}

/* Eligibility Section */
.eligibility-section {
    background: #ef2a2800;
    padding: 50px 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.eligibility-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.eligibility-blurbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.eligibility-blurb {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.eligibility-blurb:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.tick-icon {
    width: 50px;
    height: 50px;
    background: #ef2a28;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tick-icon::before {
    content: '✓';
    font-weight: bold;
}

.eligibility-blurb h3 {
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 12px;
    font-weight: 600;
}

.eligibility-blurb p {
    color: #666;
    line-height: 1.5;
    font-size: 1em;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
    padding: 80px 0;
    width: 100%;
}

.faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border-radius: 2px;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #e74c3c;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 30px 25px 30px;
    color: #666;
    line-height: 1.7;
    font-size: 1em;
}

/* Footer */
.footer {
    background: #ef2a28;
    padding: 40px 0;
    text-align: center;
    width: 100%;
    color: white;
}

.footer p {
    color: #ecf0f1;
    margin-bottom: 10px;
    font-size: 1em;
}

.footer p:first-child {
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success-message {
    background: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* Loading Spinner */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .form-section {
        flex-direction: column;
        padding: 40px 20px;
    }

    .form-overview {
        border-radius: 20px 20px 0 0;
        text-align: center;
    }

    .form-content {
        border-radius: 0 0 20px 20px;
    }
}

@media (max-width: 768px) {
    .centered-content {
        padding: 0 10px;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .progress-step .step-label {
        font-size: 0.8em;
    }
    
    .amount-display {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .form-overview h1 {
        font-size: 2.2em;
    }
    
    .form-content {
        padding: 30px;
    }

    .benefit {
        padding: 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .progress-step .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
}
