﻿/* ==========================================
   HOW IT WORKS PAGE CSS
   
   FILE LOCATION: /asset/css/templates/how-it-works.css
   
   NOTE: This file supplements homepage.css
   It only contains styles specific to how-it-works.php
   All base styles come from homepage.css
   ========================================== */

/* ==========================================
   PROCESS BAR (Navy horizontal bar)
   ========================================== */
.hiw-process-bar {
    background: #1f295e;
    padding: 30px 0;
}

.hiw-process-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hiw-process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.hiw-process-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.hiw-process-step:hover {
    opacity: 0.8;
}

.hiw-step-num {
    width: 36px;
    height: 36px;
    background: #47BB5C;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: AvertaPEBold, sans-serif;
    font-size: 16px;
    flex-shrink: 0;
}

.hiw-step-text {
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 15px;
    color: #fff;
    white-space: nowrap;
}

.hiw-process-connector {
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.hiw-process-connector::after {
    content: '→';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* ==========================================
   STEP BADGES
   ========================================== */
.hiw-step-badge {
    display: inline-block;
    background: #47BB5C;
    color: #fff;
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hiw-step-badge-light {
    display: inline-block;
    background: rgba(71, 187, 92, 0.2);
    color: #47BB5C;
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hide duplicate headline from interview-levels-section.php include */
#step1 .interview-levels-header,
#step1 .city-interview-header,
#step1 .interview-section-header,
#step1 .city-section-header + .city-section-header,
#step1 > .city-section-header ~ .city-section-header,
#step1 .city-interview-section .city-section-header {
    display: none !important;
}

/* Fix interview levels section within Step 1 */
#step1 .city-interview-section {
    padding: 20px 0 !important;
    background: transparent !important;
    margin-top: 0 !important;
}

#step1 .city-interview-inner {
    padding: 0 !important;
    max-width: 100% !important;
}

#step1 .city-interview-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
    align-items: stretch !important;
}

#step1 .city-interview-card {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 24px 16px !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    border: 1px solid #e5e7eb !important;
    display: flex !important;
    flex-direction: column !important;
}

#step1 .city-interview-card.featured {
    border-color: #16a34a !important;
    border-width: 2px !important;
}

@media (max-width: 1100px) {
    #step1 .city-interview-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    #step1 .city-interview-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 500px) {
    #step1 .city-interview-grid {
        grid-template-columns: 1fr !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }
}

/* ==========================================
   QUIZ CTA
   ========================================== */
.hiw-quiz-cta {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 500px;
}

.hiw-quiz-cta p {
    font-family: AvertaPE, sans-serif;
    font-size: 16px;
    color: #4a5568;
    margin: 0 0 16px 0;
}

/* ==========================================
   CTA ROW (buttons + text link)
   ========================================== */
.hiw-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hiw-text-link {
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 16px;
    color: #47BB5C;
    text-decoration: none;
}

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

/* ==========================================
   SCHEDULING BOX
   ========================================== */
.hiw-scheduling-box {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 40px;
    margin-bottom: 50px;
}

.hiw-scheduling-box h3 {
    font-family: AvertaPEBold, sans-serif;
    font-size: 22px;
    color: #1f295e;
    margin: 0 0 24px;
    text-align: center;
}

.hiw-scheduling-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.hiw-scheduling-item {
    padding: 0;
}

.hiw-scheduling-item strong {
    display: block;
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 15px;
    color: #1f295e;
    margin-bottom: 6px;
}

.hiw-scheduling-item p {
    font-family: AvertaPE, sans-serif;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

.hiw-timezone-note {
    font-size: 12px;
    color: #718096;
    display: block;
    margin-top: 4px;
}

/* ==========================================
   PORTAL SECTION
   ========================================== */
.hiw-portal-section {
    background: #fff;
    padding: 70px 0;
    border-top: 1px solid #e2e8f0;
}

.hiw-portal-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    align-items: start;
}

.hiw-portal-content h2 {
    font-family: AvertaPEBold, sans-serif;
    font-size: 32px;
    color: #1f295e;
    margin: 0 0 14px;
    line-height: 1.2;
}

.hiw-portal-content > p {
    font-family: AvertaPE, sans-serif;
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 28px;
}

.hiw-portal-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hiw-portal-feature {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.2s;
}

.hiw-portal-feature:hover {
    border-color: #47BB5C;
    background: #f0fdf4;
}

.hiw-portal-feature strong {
    display: block;
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 15px;
    color: #1f295e;
    margin-bottom: 4px;
}

.hiw-portal-feature p {
    font-family: AvertaPE, sans-serif;
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
    margin: 0;
}

/* Portal Mockup Preview - BIGGER */
.hiw-portal-preview {
    position: sticky;
    top: 100px;
}

.hiw-portal-mockup {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.18);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.hiw-portal-header-bar {
    background: #47BB5C;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: AvertaPEBold, sans-serif;
    font-size: 15px;
}

.hiw-portal-logo {
    width: 32px;
    height: 32px;
    background: #fff;
    color: #47BB5C;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: AvertaPEBold, sans-serif;
    font-size: 14px;
}

.hiw-portal-body {
    display: flex;
    min-height: 480px;
}

.hiw-portal-sidebar {
    width: 200px;
    background: #f8fafc;
    padding: 20px 0;
    border-right: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.hiw-sidebar-item {
    font-family: AvertaPE, sans-serif;
    font-size: 14px;
    color: #4a5568;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.hiw-sidebar-item:hover {
    background: #e2e8f0;
}

.hiw-sidebar-item.active {
    background: #e0f2fe;
    color: #0369a1;
    font-family: AvertaPESemiBold, sans-serif;
    border-left: 3px solid #0ea5e9;
}

.hiw-portal-main {
    flex: 1;
    padding: 24px;
    background: #fff;
}

.hiw-portal-client-name {
    font-family: AvertaPEBold, sans-serif;
    font-size: 20px;
    color: #1f295e;
    margin-bottom: 24px;
}

.hiw-portal-tracker {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.hiw-tracker-label {
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.hiw-tracker-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hiw-tracker-step {
    font-family: AvertaPE, sans-serif;
    font-size: 12px;
    color: #a0aec0;
    padding: 6px 12px;
    border-radius: 4px;
    background: #e2e8f0;
}

.hiw-tracker-step.done {
    background: #47BB5C;
    color: #fff;
}

.hiw-tracker-step.active {
    background: #1f295e;
    color: #fff;
}

.hiw-portal-tasks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hiw-task-section {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.hiw-task-header {
    background: #f8fafc;
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 13px;
    color: #1f295e;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.hiw-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-family: AvertaPE, sans-serif;
    font-size: 13px;
    color: #4a5568;
    border-bottom: 1px solid #f0f0f0;
}

.hiw-task-item:last-child {
    border-bottom: none;
}

.hiw-task-item.completed {
    color: #a0aec0;
}

.hiw-task-check {
    width: 20px;
    height: 20px;
    background: #47BB5C;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.hiw-task-item.active {
    background: #fffbeb;
}

.hiw-task-status {
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 10px;
    color: #f59e0b;
    background: #fef3c7;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   FAQ GROUPS (within steps)
   ========================================== */
.hiw-faq-group {
    max-width: 800px;
    margin: 50px auto 0;
}

.hiw-faq-group h3 {
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 20px;
    color: #1f295e;
    margin-bottom: 20px;
}

.hiw-faq-group-dark {
    max-width: 800px;
    margin: 40px auto 0;
}

/* ==========================================
   DELIVERY SECTION
   ========================================== */
.hiw-delivery-section {
    background: linear-gradient(135deg, #1f295e 0%, #2a3a7a 100%);
    padding: 70px 0;
}

.hiw-delivery-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
}

.hiw-delivery-badge {
    display: inline-block;
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 13px;
    color: #47BB5C;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hiw-delivery-content h2 {
    font-family: AvertaPEBold, sans-serif;
    font-size: 36px;
    color: #fff;
    margin: 0 0 16px;
}

.hiw-delivery-content p {
    font-family: AvertaPE, sans-serif;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 30px;
}

.hiw-delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hiw-delivery-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.hiw-delivery-option.highlight {
    background: #47BB5C;
}

.hiw-option-label {
    font-family: AvertaPE, sans-serif;
    font-size: 14px;
    color: #fff;
}

.hiw-option-value {
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 14px;
    color: #fff;
}

/* Timeline Card */
.hiw-timeline-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hiw-timeline-header {
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 14px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.hiw-timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hiw-timeline-item:last-child {
    border-bottom: none;
}

.hiw-timeline-item.highlight {
    background: #f0fdf4;
    margin: 0 -24px;
    padding: 14px 24px;
    border-radius: 8px;
    border-bottom: none;
}

.hiw-timeline-day {
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 14px;
    color: #1f295e;
}

.hiw-timeline-event {
    font-family: AvertaPE, sans-serif;
    font-size: 14px;
    color: #718096;
}

.hiw-timeline-item.highlight .hiw-timeline-event {
    color: #47BB5C;
    font-family: AvertaPESemiBold, sans-serif;
}

/* ==========================================
   REVISION GRID
   ========================================== */
.hiw-revision-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.hiw-revision-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.2s;
}

.hiw-revision-card:hover {
    border-color: #47BB5C;
    box-shadow: 0 4px 12px rgba(2, 193, 83, 0.1);
}

.hiw-revision-card h4 {
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 17px;
    color: #1f295e;
    margin: 0 0 10px;
}

.hiw-revision-card p {
    font-family: AvertaPE, sans-serif;
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   SERVICES BOX
   ========================================== */
.hiw-services-box {
    background: #f8fafc;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
}

.hiw-services-box h3 {
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 20px;
    color: #1f295e;
    margin: 0 0 24px;
    text-align: center;
}

.hiw-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.hiw-service-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
}

.hiw-service-card h4 {
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 18px;
    color: #1f295e;
    margin: 0 0 12px;
}

.hiw-service-card p {
    font-family: AvertaPE, sans-serif;
    font-size: 15px;
    color: #718096;
    line-height: 1.6;
    margin: 0 0 16px;
}

.hiw-service-card a {
    font-family: AvertaPESemiBold, sans-serif;
    font-size: 14px;
    color: #47BB5C;
    text-decoration: none;
}

.hiw-service-card a:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */
@media (max-width: 1024px) {
    .hiw-delivery-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hiw-revision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hiw-process-steps {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .hiw-process-connector {
        display: none;
    }
    
    .hiw-portal-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hiw-portal-preview {
        position: static;
    }
    
    .hiw-scheduling-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 768px) {
    .hiw-process-bar {
        padding: 20px 0;
    }
    
    .hiw-process-steps {
        flex-direction: column;
        gap: 12px;
    }
    
    .hiw-process-step {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 20px;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
    }
    
    .hiw-step-text {
        font-size: 14px;
    }
    
    .hiw-revision-grid {
        grid-template-columns: 1fr;
    }
    
    .hiw-services-grid {
        grid-template-columns: 1fr;
    }
    
    .hiw-services-box {
        padding: 24px;
    }
    
    .hiw-delivery-options {
        grid-template-columns: 1fr;
    }
    
    .hiw-delivery-content h2 {
        font-size: 28px;
    }
    
    .hiw-quiz-cta {
        padding: 24px 20px;
    }
    
    .hiw-scheduling-box {
        padding: 24px 20px;
    }
    
    .hiw-scheduling-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hiw-portal-content h2 {
        font-size: 28px;
    }
    
    .hiw-portal-mockup {
        margin: 0;
    }
    
    .hiw-portal-body {
        flex-direction: column;
    }
    
    .hiw-portal-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
    
    .hiw-sidebar-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .hiw-sidebar-item.active {
        border-left: none;
        border-radius: 4px;
    }
    
    .hiw-tracker-steps {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .hiw-cta-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .hiw-cta-row .btn {
        width: 100%;
        max-width: 300px;
    }
}