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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f8f9fa;
}

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

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #0066cc;
}

/* Hero Image Section */
.hero-image {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 76, 153, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 2rem 0;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.4;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #fff;
    color: #0066cc;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #222;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0066cc;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #222;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: #fff;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #222;
}

.contact-info {
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

.contact-info a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #004c99;
    text-decoration: underline;
}

/* Content Pages (Privacy, Terms, SMS Consent) */
.content-page {
    padding: 3rem 0;
    background-color: #fff;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

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

.policy-content section {
    margin-bottom: 2.5rem;
}

.policy-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #0066cc;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.policy-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.policy-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #444;
}

.policy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: #444;
}

.policy-content a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-content a:hover {
    color: #004c99;
    text-decoration: underline;
}

.policy-content strong {
    font-weight: 600;
    color: #222;
}

/* Lead Submission Form Styles */
.form-container {
    background-color: #fff;
    border: 2px solid #0066cc;
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.form-title {
    font-size: 1.75rem;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.form-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.lead-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.required {
    color: #d32f2f;
    font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #0066cc;
}

.form-group input.error {
    border-color: #d32f2f;
}

.error-message {
    display: block;
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.2rem;
}

.consent-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.consent-section h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.consent-group {
    margin-bottom: 1.5rem;
}

.consent-label-prominent {
    display: block;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.consent-label-prominent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.consent-label:hover {
    background-color: #f8f9fa;
}

.consent-checkbox {
    margin-right: 1rem;
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.consent-label-prominent .consent-checkbox {
    accent-color: #fff;
}

.consent-text {
    flex: 1;
    line-height: 1.6;
}

.consent-label-prominent .consent-text {
    font-size: 1.05rem;
}

.consent-required {
    position: relative;
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.submit-button:hover {
    background-color: #004c99;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

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

.confirmation-message {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #f0f9ff;
    border: 2px solid #0066cc;
    border-radius: 8px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background-color: #0066cc;
    color: #fff;
    font-size: 3rem;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.confirmation-message h3 {
    color: #0066cc;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.confirmation-message p {
    color: #555;
    font-size: 1.125rem;
}

.encrypted-display {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.encrypted-display h4 {
    color: #333;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.encrypted-label {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.encrypted-display pre {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.875rem;
    color: #333;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.encrypted-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #0066cc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-image {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content h2 {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .features,
    .about,
    .contact,
    .content-page {
        padding: 2rem 0;
    }
    
    .policy-content ul {
        margin-left: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .consent-label-prominent {
        padding: 1rem;
    }
    
    .consent-checkbox {
        width: 18px;
        height: 18px;
    }
}