/* ============================================================================
   CONTENT SECTION - "Choose Your Path, Walk Together"
   ============================================================================ */

.how-it-works {
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

/* Responsive - Content Section */
@media (max-width: 768px) {
    .content-section {
        padding: 40px 20px 0 20px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 30px 15px 0 15px;
    }
}

/* ============================================================================
   EXPECTATIONS SECTION - Timeline with Cards
   ============================================================================ */

.expectations-section {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
}

/* Timeline Content Layout */
.timeline-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    justify-items: center;
    padding: 0 100px;
}

/* Timeline Cards */
.timeline-card {
    position: relative;
    border: 3px solid #2d1b3d;
    border-radius: 15px;
    box-shadow: 3px 3px 0 rgba(2, 32, 63, 0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    padding: 0 30px;
    width: 100%;
    text-align: left;
}

.timeline-card--top {
    align-self: flex-end;
    margin-bottom: 60px;
    margin-top: 0;
}

.timeline-card--bottom {
    align-self: flex-start;
    margin-top: 50px;
    margin-bottom: 0;
}

.timeline-card:nth-child(1) {
    transform: rotate(2.5deg);
}

.timeline-card:nth-child(2) {
    transform: rotate(-0.5deg);
}

.timeline-card:nth-child(3) {
    transform: rotate(1.8deg);
}

.timeline-card:nth-child(4) {
    transform: rotate(-1.2deg);
}

.timeline-card:nth-child(1):hover,
.timeline-card:nth-child(2):hover,
.timeline-card:nth-child(3):hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 12;
}

.timeline-card:nth-child(4):hover {
    transform: rotate(1deg);
}

/* Timeline Path Styles */
.timeline-path.horizontal {
    position: absolute;

    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100px;
    z-index: 1;
    pointer-events: none;
}

.timeline-path.vertical {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.timeline-path path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-path 8s ease-in-out infinite;
}

@keyframes draw-path {
    0% {
        stroke-dashoffset: 1000;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -1000;
    }
}

/* Responsive - Expectations Section */
@media (max-width: 1024px) {
    .timeline-path.horizontal {
        display: none;
    }

    .timeline-path.vertical {
        display: block;
    }

    .timeline-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 40px 0;
        align-items: center;
        justify-content: center;
        max-width: 600px;
    }

    .timeline-card {
        padding: 20px;
        margin: 0;
        align-self: center;
    }

    .expectations-section {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .expectations-section {
        padding: 0 40px;
    }

    .timeline-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .expectations-section {
        padding: 0 40px;
    }

    .timeline-card {
        padding: 15px;
    }

    .timeline-content {
        gap: 30px;
    }

    .timeline-path.vertical {
        display: none;
    }
}

/* ============================================================================
   JOIN FORM SECTION - "Ready to Join?"
   ============================================================================ */

.join-form-container {
    padding: min(10%, 150px) 40px 80px 40px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    flex-wrap: wrap;
}

.join-left-column {
    flex: 1;
    max-width: 500px;
    text-align: left;
    align-self: center;
}

.join-form {
    flex: 1;
    max-width: 600px;
    height: auto;
    padding: 0 30px 30px 30px;
    border: 3px solid #2d1b3d;
    border-radius: 15px;
    box-shadow: 3px 3px 0 rgba(2, 32, 63, 0.95);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #183b4e;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 3px solid rgba(45, 27, 61, 0.3);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #641b1b;
    box-shadow: 0 0 0 3px rgba(100, 27, 27, 0.2);
}

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

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half-width {
    flex: 1;
}

/* Responsive - Join Form Section */
@media (max-width: 1024px) {
    .join-form-container {
        flex-direction: column;
        padding: 60px 40px;
        gap: 40px;
        align-items: center;
        justify-content: center;
    }

    .join-left-column {
        max-width: none;
        padding: 0;
        align-items: center;
        justify-content: left;
    }

    .join-form {
        height: auto;
        min-width: 80%;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .join-form-container {
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
        align-items: center;
        justify-content: center;
    }

    .join-left-column {
        max-width: none;
        padding: 0;
        align-items: center;
        justify-content: left;
    }

    .join-form {
        height: auto;
        padding: 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.half-width {
        flex: none;
    }
}

@media (max-width: 480px) {
    .join-form-container {
        padding: 40px 15px;
    }

    .join-form {
        padding: 25px;
    }
}

/* ============================================================================
   FAQ SECTION - "Common Questions"
   ============================================================================ */

.faq-section {
    padding-top: 30px;
    padding-bottom: 80px;
}

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

.faq-section h1 {
    text-align: center;
    margin-bottom: 60px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-card {
    position: relative;
    border: 3px solid #2d1b3d;
    border-radius: 15px;
    box-shadow: 3px 3px 0 rgba(2, 32, 63, 0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    padding: 0 20px;
}

.faq-card:hover {
    transform: scale(1.02) translateY(-5px);
    z-index: 10;
}

.faq-card:nth-child(1),
.faq-card:nth-child(4) {
    transform: rotate(-1deg);
}

.faq-card:nth-child(2),
.faq-card:nth-child(5) {
    transform: rotate(1deg);
}

.faq-card:nth-child(3),
.faq-card:nth-child(6) {
    transform: rotate(-0.5deg);
}

.faq-card:hover {
    transform: rotate(0deg) scale(1.05) translateY(-5px);
}

.j-how-it-works-link {
    text-align: right;
    padding: 20px 0;
}

/* Responsive - FAQ Section */
@media (max-width: 1024px) {
    .faq-container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .faq-container {
        padding: 0 20px;
    }

    .faq-section h2 {
        font-size: 2.2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-section h2 {
        font-size: 2rem;
    }

    .faq-container {
        padding: 15px;
    }

    .faq-card {
        padding: 0 20px;
    }

    .faq-card:nth-child(1),
    .faq-card:nth-child(2),
    .faq-card:nth-child(3),
    .faq-card:nth-child(4),
    .faq-card:nth-child(5),
    .faq-card:nth-child(6) {
        transform: none;
    }

    .faq-card:hover {
        transform: scale(1.02) translateY(-3px);
    }
}