/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */

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

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    color: #000;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Header */
header {
    background-color: transparent;
    padding: 20px 0;
    position: relative;
    z-index: 10;
}

.logo {
    max-width: 300px;
    height: auto;
}

.logo-img {
    width: 220px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

/* Base body styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Hero Form Section */
.hero-form-section {
    position: relative;
    padding: 40px 0;
    padding-top: 0;
    min-height: calc(100vh - 126px); /* Adjusted for transparent header */
    display: flex;
    align-items: flex-start;
    background-image: url('images/background.png'); 
    background-size: cover; 
    background-position: center;
    background-attachment: fixed; 
    position: relative; 
    z-index: 0;
}

.hero-background {
    display: none; /* Hide this as we're using background-image directly */
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.85) 0%, 
        rgba(255, 255, 255, 0.75) 40%,
        rgba(255, 255, 255, 0.6) 100%);
    z-index: -1;
}

.hero-form-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;

    /* Make layout more responsive for larger screens */
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
}

.hero-content h1 {
    text-align: center;
    margin-bottom: 15px;
    color: #1a365d;
}

.hero-content .subtitle {
    text-align: center;
    margin-bottom: 25px;
    color: #4a5568;
}

.form-container {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    background-color: #000;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #333;
}

/* Testimonials Section */
.testimonials {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 60px 0;
    margin-top: 40px;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 40px;
    margin-bottom: 20px;
}

/* Form Styling */
.form-container h2 {
    text-align: left;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.form-container > p {
    margin-bottom: 25px;
}

form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

.submit-button {
    background-color: #000;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.submit-button:hover {
    background-color: #333;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    max-width: 250px;
}

.footer-logo-img {
    filter: brightness(0) invert(1);
    width: 150px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Success Message */
.hidden {
    display: none;
}

#form-success {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

/* Success message styling */
.success-icon {
    font-size: 60px;
    color: #4CAF50;
    margin: 20px 0;
}

#form-success h3 {
    color: #1a365d;
    font-size: 1.8rem;
}

/* Key Benefits Styling */
.key-benefits {
    margin-top: 25px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.key-benefits h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a365d;
    text-align: center;
}

.key-benefits ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.key-benefits li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.key-benefits li:last-child {
    margin-bottom: 0;
}

.key-benefits .check-icon {
    color: #1a365d;
    font-weight: bold;
    margin-right: 10px;
    min-width: 15px;
    display: inline-block;
}

.key-benefits strong {
    color: #1a365d;
}

/* Responsive Design */
/* Large screens */
@media (min-width: 1600px) {
    .hero-form-section {
        padding: 20px 0;
    }
    
    .hero-form-container {
        margin-top: 0 !important;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .hero-form-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .form-container h2 {
        text-align: center;
    }
    
    .form-container > p {
        text-align: center;
    }
    
    .hero-form-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .key-benefits {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    form {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
