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

html {
    height: 100%;
    overflow-x: hidden;
    background: url("../images/solarbackground.png") center 70% / cover no-repeat;
}

body {
    height: 100%;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: transparent; /* Ensure no default white background */
}

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

/* Background and Layout */
.main-content {
    position: relative;
    min-height: 100vh; /* Allow full height for scrolling */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to flex-start */
    align-items: center;
    padding: 20px 0; /* Restored padding for proper spacing */
}

.content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px; /* Adjust max-width for better fit */
    padding: 0;
}

/* Header */
.header {
    padding: 0;
    position: relative;
    z-index: 3;
    background: transparent;
    width: 100%;
}

.logo-container {
    text-align: center;
    margin-bottom: 10px; /* Reduce margin */
}

.logo {
    height: 150px; /* Make logo bigger */
    width: auto;
    max-width: 600px; /* Adjust max-width */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 0; /* Reduce padding */
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem; /* Make title larger */
    font-weight: 900; /* Make title bolder */
    color: #FFFFFF; /* White lettering */
    margin-bottom: 10px; /* Reduce margin */
    text-shadow: 0 3px 6px rgba(0,0,0,0.5);
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.5rem; /* Make subtitle larger */
    color: #FFFFFF; /* White lettering */
    font-weight: 600; /* Make subtitle bolder */
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    max-width: 700px;
    margin: 0 auto 15px; /* Adjust margin */
}

/* Benefits Section Above Form */
.benefits-section {
    padding: 0; /* Reduce padding */
    margin-bottom: 15px; /* Adjust margin */
}

.benefits-list-top {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.benefits-list-top .benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF; /* White lettering */
    font-weight: 600;
    font-size: 1.1rem; /* Make benefits text larger */
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.benefits-list-top .check-icon {
    width: 24px;
    height: 24px;
    color: #00ff88;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,255,136,0.3));
}

/* Urgency Banner */
.urgency-banner {
    text-align: center;
    padding: 10px 0;
    margin-bottom: 15px;
}

.urgency-content {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(232, 67, 147, 0.3);
    animation: pulse 2s infinite;
}

.urgency-text {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.urgency-subtext {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 2px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Form Section */
.form-section {
    padding: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px; /* Further reduced from 20px */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* User Type Toggle */
.user-type-toggle {
    display: flex;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: #0984e3;
    color: white;
    box-shadow: 0 2px 8px rgba(9, 132, 227, 0.3);
}

.toggle-btn:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

/* Form Styles */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Further reduced from 12px */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #0984e3;
    box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.1);
}

.form-input.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.form-input.success {
    border-color: #00b894;
    background-color: #f0fff4;
}

.helper-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 4px;
}

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #0984e3;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
    border: none;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 67, 147, 0.3);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 67, 147, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

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

.btn-loading {
    display: none;
}

/* Privacy Statement */
.privacy-statement {
    text-align: center;
    margin-top: 15px;
}

.privacy-statement small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Social Proof Section */
.social-proof-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 255, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.social-proof-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #17a2b8, #28a745, #17a2b8);
    border-radius: 25px 25px 0 0;
}

.testimonial-title {
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: #17a2b8;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #17a2b8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonial-content p {
    font-style: italic;
    color: #2d3748;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 500;
}

.testimonial-author {
    margin-top: 15px;
}

.testimonial-author strong {
    color: #1e3a8a;
    font-size: 1.1rem;
    font-weight: 700;
}

.testimonial-author span {
    color: #4a5568;
    font-size: 0.95rem;
    display: block;
    margin-top: 5px;
    font-weight: 500;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-item {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(23, 162, 184, 0.1), transparent);
    transition: left 0.5s ease;
}

.badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #17a2b8;
}

.badge-item:hover::before {
    left: 100%;
}

.badge-text {
    color: #2d3748;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* How It Works Section */
.how-it-works-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 50px 40px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #17a2b8, #28a745);
    border-radius: 25px 25px 0 0;
}

.section-title {
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    justify-items: center;
}

/* Special handling for the third step when it's alone on the second row */
.step:nth-child(3):nth-last-child(1) {
    grid-column: 1 / -1;
    max-width: 350px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(23, 162, 184, 0.05), transparent);
    transition: left 0.6s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.step:hover::before {
    left: 100%;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #17a2b8 0%, #28a745 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.3);
    position: relative;
    z-index: 1;
}

.step h4 {
    color: #1e3a8a;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.step p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(45, 52, 54, 0.9) 100%);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer a:hover {
    color: #28a745;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        height: 100px;
        max-width: 350px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .benefits-list-top {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .urgency-banner {
        padding: 8px 15px;
    }
    
    .urgency-text {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .toggle-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .form-input {
        padding: 12px 14px;
    }
    
    .submit-btn {
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    .social-proof-section,
    .how-it-works-section {
        padding: 25px 20px;
        margin: 20px 10px;
    }
    
    .trust-badges {
        gap: 15px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .form-container {
        padding: 18px;
    }
    
    .logo {
        height: 80px;
    }
    
    .urgency-content {
        padding: 10px 20px;
    }
    
    .urgency-text {
        font-size: 0.95rem;
    }
    
    .urgency-subtext {
        font-size: 0.8rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Message Styles */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.error-message {
    background-color: #fdf2f2;
    color: #e74c3c;
    border: 1px solid #fadbd8;
}

.success-message {
    background-color: #f0fff4;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.info-message {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

