/* 
 * CDL Connection Pro - Landing Page Styles
 * Following mobile-first design approach
 */

/* Base Styling & Variables */
:root {
    /* Primary Colors */
    --deep-blue: #1A3A6E;
    --energetic-red: #D63031;
    --steel-gray: #718093;
    
    /* Secondary Colors */
    --light-blue: #4A89DC;
    --off-white: #F5F6FA;
    --dark-charcoal: #2C3E50;
    
    /* Font Family */
    --primary-font: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
    --heading-font: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
    font-family: var(--primary-font);
    line-height: 1.6;
    color: var(--dark-charcoal);
    background-color: #FFFFFF;
}

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

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem; /* 32px on mobile */
}

h2 {
    font-size: 1.75rem; /* 28px on mobile */
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.375rem; /* 22px on mobile */
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: var(--light-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--deep-blue);
}

/* Header Styles */
.site-header {
    height: 80px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

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

/* Hero Section Styles */
.hero-section {
    height: 500px; /* Reduced for mobile */
    background: linear-gradient(135deg, var(--deep-blue), var(--light-blue));
    position: relative;
    margin-top: 80px; /* Account for fixed header */
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-truck.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--energetic-red);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 15px 30px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    background-color: #B71C1C;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Benefits Section Styles */
.benefits-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.benefit-icon {
    margin-bottom: 20px;
}

.benefit-icon img {
    width: 80px;
    height: 80px;
}

/* How It Works Section Styles */
.how-it-works-section {
    padding: 60px 0;
    background-color: var(--off-white);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--energetic-red);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content img {
    width: 60px;
    height: 60px;
    margin-top: 15px;
}

/* Earning Potential Section Styles */
.earning-potential-section {
    padding: 60px 0;
    background-color: var(--off-white);
}

.earning-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.earning-main h3 {
    color: var(--energetic-red);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.benefits-list h3 {
    margin-bottom: 15px;
    color: var(--deep-blue);
}

.benefits-list ul {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.benefits-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--light-blue);
    font-weight: bold;
}

/* FAQ Section Styles */
.faq-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.faq-list {
    max-width: 800px;
    margin: 30px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-question {
    cursor: pointer;
    margin-bottom: 10px;
    color: var(--deep-blue);
    position: relative;
    padding-right: 30px;
    font-size: 1.25rem;
}

.faq-question:after {
    content: '';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--light-blue);
    border-bottom: 2px solid var(--light-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
    transform: translateY(-50%) rotate(-135deg);
}

.faq-answer {
    color: var(--dark-charcoal);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Large enough to fit content */
    padding: 10px 0 15px;
}

/* CTA Section with Form Styles */
.cta-section {
    padding: 60px 0;
    background-color: var(--deep-blue);
    color: #FFFFFF;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.qualification-form {
    margin-top: 30px;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-header-icon {
    text-align: center;
    margin-bottom: 25px;
}

.form-logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-charcoal);
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--dark-charcoal); /* Ensure text is dark and readable */
    background-color: #ffffff; /* Explicit white background */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    border-color: var(--light-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 137, 220, 0.2);
}

.qualification-form .cta-button {
    width: 100%;
    margin-top: 10px;
}

.trust-text {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--dark-charcoal);
    text-align: center;
}

.trust-elements {
    margin-top: 60px;
    text-align: center;
}

.trust-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.company-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Footer Styles */
.site-footer {
    padding: 30px 0;
    background-color: var(--dark-charcoal);
    color: var(--off-white);
    text-align: center;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--off-white);
    font-size: 0.875rem;
}

.footer-link:hover {
    color: var(--light-blue);
}

/* Tablet Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem; /* 40px on tablet */
    }
    
    h2 {
        font-size: 2rem; /* 32px on tablet */
    }
    
    h3 {
        font-size: 1.5rem; /* 24px on tablet */
    }
    
    .hero-section {
        height: 550px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefit-icon img {
        width: 100px;
        height: 100px;
    }
    
    .trust-logos {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Tablet Styles - Additional for new sections */
@media (min-width: 768px) {
    .earning-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .earning-main, .benefits-list {
        flex: 1;
    }
    
    .faq-question {
        font-size: 1.3rem;
    }
}

/* Desktop Styles */
@media (min-width: 1200px) {
    h1 {
        font-size: 3rem; /* 48px on desktop */
    }
    
    h2 {
        font-size: 2.25rem; /* 36px on desktop */
    }
    
    .hero-section {
        height: 600px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .benefit-icon img {
        width: 120px;
        height: 120px;
    }
    
    .steps-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        width: 30%;
    }
    
    .step-number {
        margin: 0 auto 20px;
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .step-content img {
        margin: 15px auto 0;
    }
}
