/* ==========================
   PCP COMPENSATION CLAIMS LANDING PAGE STYLES
   Matches Prowse Phillips design system perfectly
   ========================== */

/* Hero Section - Homepage-aligned Layout */
.hero .hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: auto;
    padding: 3.75rem 0;
}

.hero-content {
    padding-top: 1rem;
}

.hero-content .hero-title {
    font-family: "Inter Tight", sans-serif;
    font-size: 72px;
    font-weight: 600;
    line-height: 72px;
    color: var(--navy-text);
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
    max-width: 680px;
}

.hero-content .hero-subtitle {
    font-family: Helvetica, sans-serif;
    font-size: 32px;
    line-height: 44.8px;
    font-weight: 400;
    letter-spacing: normal;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    max-width: 500px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    clip-path: polygon(
        12% 0,     /* Start top */
        100% 0,    /* Top right corner */
        100% 100%, /* Bottom right corner */
        12% 100%,  /* Bottom left main */
        12% 85%,   /* Step 1 vertical */
        8% 85%,    /* Step 1 horizontal */
        8% 65%,    /* Step 2 vertical */
        4% 65%,    /* Step 2 horizontal */
        4% 45%,    /* Step 3 vertical */
        0% 45%,    /* Step 3 horizontal (deepest) */
        0% 35%,    /* Step 4 vertical */
        4% 35%,    /* Step 4 horizontal */
        4% 15%,    /* Step 5 vertical */
        8% 15%,    /* Step 5 horizontal */
        8% 0%,     /* Back to top */
        12% 0      /* Close the shape */
    );
}

/* Button Separator */
.button-separator {
    color: var(--gray-text);
    font-weight: 500;
    font-size: 1rem;
    margin: 0 1rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Hero Buttons - Horizontal Layout */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 40px;
    flex-wrap: nowrap;
}

.hero-buttons .btn {
    white-space: nowrap;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-text);
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 500;
}

/* Form Styles */
.hero-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Multi-step form styles */
.form-step {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-step-header {
    text-align: center;
    margin-bottom: 1rem;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #E5E7EB;
    color: #6B7280;
    background: #ffffff;
    transition: all 0.3s ease;
}

.step-number.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #ffffff;
}

.step-number.completed {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #ffffff;
    font-size: 0.8rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy-text);
    margin: 0;
    font-family: 'Inter Tight', sans-serif;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.form-actions .btn {
    flex: 1;
}

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

.form-label {
    font-weight: 600;
    color: var(--navy-text);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-normal);
    background: #ffffff;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

/* Consent Checkbox */
.form-consent {
    margin: 0.5rem 0;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--gray-text);
}

.consent-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #E5E7EB;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
    transition: all var(--transition-normal);
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.consent-link:hover {
    text-decoration: underline;
}

/* Form Button */
.btn-full-width {
    width: 100%;
    justify-content: center;
    position: relative;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    margin-left: 0.5rem;
    transition: transform var(--transition-normal);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.form-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--gray-text);
}

.security-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-green);
}

/* ==========================
   TRUST SECTION
   ========================== */

.trust-section {
    background: #ffffff;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.trust-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
}

.trust-container .trust-item:not(:last-child) {
    border-right: 1px solid #e5e7eb;
    padding-right: 2rem;
}

.trust-item {
    text-align: left;
    color: var(--dark-text);
}

/* First trust item (Reviews) */
.trust-item:first-child {
    text-align: left;
}

.trust-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.trust-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-label {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2C3E35;
}

.trust-stat {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 400;
    text-transform: uppercase;
}

/* Number Statistics */
.trust-number {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: #4A7C59;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
}

.trust-unit {
    font-size: 16px;
    font-weight: 600;
    color: #2C3E35;
    margin-left: 0.2rem;
    flex-shrink: 0;
}

.trust-description {
    font-size: 16px;
    color: #6B7280;
    font-weight: 400;
    line-height: 1.3;
}

/* ==========================
   WHY CHOOSE US SECTION
   ========================== */

.why-choose-section {
    background: #ffffff;
    padding: 5rem 2rem;
}

.why-choose-content {
    text-align: center;
}

.why-choose-content .section-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    background: #4A7C59;
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.why-choose-content .section-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-text);
    margin-bottom: 1rem;
    font-family: 'Inter Tight', sans-serif;
    text-align: center;
}

.why-choose-content .section-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-text);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.benefit-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #E8F3EA;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(74, 124, 89, 0.15);
    border-color: var(--primary-green);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: #E8F3EA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: var(--primary-green);
    transform: scale(1.1);
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

.benefit-item:hover .benefit-icon svg {
    color: #ffffff;
}

.benefit-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy-text);
    margin-bottom: 1rem;
    font-family: 'Inter Tight', sans-serif;
}

.benefit-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-text);
}

/* ==========================
   STATISTICS SECTION
   ========================== */

.statistics-section {
    background: linear-gradient(180deg, #F4F8F5 0%, #E8F3EA 100%);
    padding: 5rem 2rem;
    position: relative;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><defs><pattern id="car-pattern" x="0" y="0" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M10 25h40v15H10z" fill="none" stroke="rgba(74,124,89,0.03)" stroke-width="1"/><circle cx="20" cy="40" r="5" fill="none" stroke="rgba(74,124,89,0.03)" stroke-width="1"/><circle cx="40" cy="40" r="5" fill="none" stroke="rgba(74,124,89,0.03)" stroke-width="1"/></pattern></defs><rect width="60" height="60" fill="url(%23car-pattern)"/></svg>') repeat;
    opacity: 0.5;
    pointer-events: none;
}

.statistics-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.statistics-content .section-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    background: #4A7C59;
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    font-weight: 600;
}

.statistics-content .section-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-text);
    margin-bottom: 1rem;
    font-family: 'Inter Tight', sans-serif;
    text-align: center;
}

.statistics-content .section-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-text);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #E8F3EA;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(74, 124, 89, 0.02), transparent);
    transform: rotate(-45deg);
    transition: transform 0.6s ease;
}

.stat-card:hover::before {
    transform: rotate(-45deg) translate(20%, 20%);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(74, 124, 89, 0.15);
    border-color: var(--primary-green);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(74, 124, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--primary-green);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.stat-card:hover .stat-icon {
    background: var(--primary-green);
    color: #ffffff;
    transform: scale(1.1);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-value {
    font-family: 'Inter Tight', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.statistics-section .stat-card .stat-label {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--navy-text);
    margin-bottom: 0.5rem;
    font-family: 'Inter Tight', sans-serif;
    position: relative;
    z-index: 2;
}

.statistics-section .stat-card .stat-description {
    font-size: 0.7rem !important;
    color: var(--gray-text);
    line-height: 1.4;
    font-weight: 400 !important;
    position: relative;
    z-index: 2;
}

.stats-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.stats-cta .cta-text {
    font-size: 1.25rem;
    color: var(--navy-text);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ==========================
   SUCCESS STORIES SECTION
   ========================== */

.success-stories-section {
    background: #ffffff;
    padding: 5rem 2rem;
}

.success-stories-section .container {
    text-align: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.success-stories-section .section-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    background: #4A7C59;
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    font-weight: 600;
}

.success-stories-section .section-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-text);
    margin-bottom: 1rem;
    font-family: 'Inter Tight', sans-serif;
    text-align: center;
}

.success-stories-section .section-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-text);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.story-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    transition: left 0.6s ease;
}

.story-card:hover::before {
    left: 100%;
}

.story-card.featured {
    border: 1px solid #E8F3EA;
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.1);
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.case-type {
    background: rgba(74, 124, 89, 0.1);
    color: var(--primary-green);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(74, 124, 89, 0.2);
}

.compensation-amount {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
}

.story-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 2rem 0;
    font-style: italic;
    flex-grow: 1;
    position: relative;
    padding-left: 1rem;
}

.story-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.25rem;
    font-size: 2rem;
    color: rgba(74, 124, 89, 0.3);
    font-family: Georgia, serif;
    line-height: 1;
}

.story-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #f3f4f6;
    padding-top: 1.5rem;
}

.client-initial {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-green), #5A8B6B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.client-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-text);
    margin-bottom: 0.25rem;
}

.case-details {
    font-size: 0.85rem;
    color: var(--gray-text);
}

.stories-cta {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stories-cta .cta-text {
    font-size: 1.25rem;
    color: var(--navy-text);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ==========================
   FINAL CTA SECTION
   ========================== */

.final-cta-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, #5A8B6B 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.final-cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="car-bg" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M20 40h60v20H20z" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><circle cx="35" cy="65" r="8" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><circle cx="65" cy="65" r="8" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23car-bg)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-20px); }
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-family: 'Inter Tight', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-description {
    font-size: 1.3rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: #ffffff;
    color: var(--primary-green);
    border: 2px solid #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================
   RESPONSIVE DESIGN
   ========================== */

@media (max-width: 1024px) {
    .hero .hero-container {
        grid-template-columns: 1fr 360px;
        gap: 3rem;
    }
    
    .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .trust-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .trust-container .trust-item:nth-child(4),
    .trust-container .trust-item:nth-child(5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image-container {
        height: 350px;
        max-width: 100%;
    }
    
    .hero-content .hero-title {
        font-size: 3rem;
        line-height: 1.1;
        text-align: center;
    }
    
    .hero-content .hero-subtitle {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .trust-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .trust-container .trust-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 2rem;
    }
    
    .trust-container .trust-item:last-child {
        padding-bottom: 0;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .statistics-content .section-title,
    .success-stories-section .section-title,
    .why-choose-content .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .hero-form-card {
    padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .why-choose-section,
    .statistics-section,
    .success-stories-section,
    .final-cta-section {
        padding: 3rem 1rem 4rem 1rem;
    }
    
    .benefit-item,
    .stat-card,
    .story-card {
        padding: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .hero-content .hero-title {
        font-size: 2.5rem;
    }
    
    /* FAQ Responsive */
.faq-section {
        padding: 3rem 1rem;
    }
    
    .faq-section .section-title {
        font-size: 2.25rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .faq-cta {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }
    
    .faq-cta-content h3 {
        font-size: 1.5rem;
    }
    
    /* Modal button centering on mobile */
    .btn-full-width {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    
    .faq-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================
   FAQ SECTION STYLES
   ========================== */

.faq-section {
    background: #ffffff;
    padding: 5rem 2rem;
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-section .section-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    background: #4A7C59;
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.faq-section .section-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-text);
    margin-bottom: 1rem;
    font-family: 'Inter Tight', sans-serif;
}

.faq-section .section-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background: #ffffff;
}

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

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-text);
    margin: 0;
    padding-right: 1rem;
    line-height: 1.4;
    font-family: 'Inter Tight', sans-serif;
}

.faq-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-toggle:hover {
    color: #5A8B6B;
    transform: scale(1.1);
}

.faq-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    background: #ffffff;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    opacity: 1;
    padding: 0 2rem 2rem 2rem;
}

.faq-answer p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.faq-answer li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #374151;
    line-height: 1.6;
}

.faq-answer li::before {
    content: "•";
    color: var(--primary-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.faq-answer li strong {
    color: var(--navy-text);
    font-weight: 600;
}

.faq-cta {
    background: linear-gradient(135deg, var(--primary-green) 0%, #5A8B6B 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    opacity: 0.3;
}

.faq-cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Inter Tight', sans-serif;
    color: #ffffff;
}

.faq-cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta-buttons .btn-primary {
    background: #ffffff;
    color: var(--primary-green);
    border: 2px solid #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

.faq-cta-buttons .btn-primary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.faq-cta-buttons .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

.faq-cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================
   ACCESSIBILITY IMPROVEMENTS
   ========================== */

@media (prefers-reduced-motion: reduce) {
    .hero-form-card,
    .benefit-item,
    .stat-card,
    .story-card,
    .final-cta-section::after {
        transition: none;
        animation: none;
    }
    
    .hero-form-card:hover,
    .benefit-item:hover,
    .stat-card:hover,
    .story-card:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-form-card {
        border: 2px solid var(--navy-text);
}

.form-input,
.form-select,
.form-textarea {
        border-width: 2px;
    }
}

/* Focus improvements for keyboard navigation */
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.consent-checkbox:focus-within {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Ensure text remains readable on all backgrounds */
.final-cta-section .cta-title,
.final-cta-section .cta-description {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ==========================
   MODAL STYLES
   ========================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.modal-header h2 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-text);
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 500;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-text);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: var(--navy-text);
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem 2rem 2rem 2rem;
}



.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Step Indicators */
.step-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 100%;
    width: 2rem;
    height: 2px;
    background: #e5e7eb;
    z-index: -1;
}

.step-item:last-child::after {
    display: none;
}

.step-item.active::after,
.step-item.completed::after {
    background: var(--primary-green);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    background: #ffffff;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #ffffff;
}

.step-item.completed .step-number {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: #ffffff;
    font-size: 0.8rem;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-text);
    text-align: center;
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: var(--primary-green);
    font-weight: 600;
}

.step-progress {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Modal animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Triggers */
.modal-trigger {
    background: var(--primary-green);
    color: #ffffff;
    border: 2px solid var(--primary-green);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-trigger:hover {
    background: #ffffff;
    color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .step-indicators {
        gap: 1rem;
    }
    

}

/* ==========================
   Statistics Section - Homepage Style
   ========================== */
.stats-section {
    background: #ffffff;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.stats-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    align-items: center;
}

.stats-container .stat-item:not(:last-child) {
    border-right: 1px solid #e5e7eb;
    padding-right: 2rem;
}

.stat-item {
    text-align: left;
    color: var(--dark-text);
}

/* Clutch Reviews Styling */
.stat-item:first-child {
    text-align: left;
}

.review-line-1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.review-line-2 {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #fbbf24;
    font-size: 0.875rem;
}

.clutch-logo {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2C3E35;
}

.stat-detail {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 400;
    text-transform: uppercase;
}

/* Number Statistics */
.stat-number {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: #4A7C59;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.stat-unit {
    font-size: 16px;
    font-weight: 600;
    color: #2C3E35;
    margin-left: 0.2rem;
    flex-shrink: 0;
}

.stat-description {
    font-size: 16px;
    color: #6B7280;
    font-weight: 400;
    line-height: 1.3;
}

/* Responsive Stats */
@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .stats-container .stat-item:nth-child(4),
    .stats-container .stat-item:nth-child(5) {
        grid-column: span 1;
        border-right: none;
        padding-right: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
    }
    
    .stats-container .stat-item:nth-child(3) {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 2rem 0;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
        padding: 0 1.5rem;
    }
    
    /* First item (Reviews) spans full width */
    .stats-container .stat-item:first-child {
        grid-column: 1 / -1;
        text-align: center;
        border-right: none;
        padding-right: 0;
        padding-bottom: 1.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    /* Center the review lines on mobile */
    .review-line-1,
    .review-line-2 {
        justify-content: center;
    }
    
    /* Remove borders from all other items on mobile */
    .stats-container .stat-item:not(:first-child) {
        border-right: none;
        padding-right: 0;
        text-align: center;
    }
    
    .stat-number {
        font-size: 28px;
        justify-content: center;
    }
    
    .stat-unit {
        font-size: 16px;
    }
    
    .stat-description {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-unit {
        font-size: 14px;
    }
    
    .stat-description {
        font-size: 14px;
    }
}
