/*
 * RootCircuit How to Join Page Styles - Matched to Home Page Design
 */

/* Content Section Styles */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 0 40px;
    text-align: center;
    background-color: #fff0e6;
}

.content-section h2 {
    font-family: 'Caprasimo', serif;
    font-size: 2.5rem;
    color: #183b4e;
    margin-bottom: 30px;
}

.content-section p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #183b4e;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-section p strong {
    color: #641b1b;
}

.content-section-expectations {
    font-size: 1.5rem;
    margin-bottom: 0 !important;
}

/* Expectations Section with Timeline */
.expectations-section {
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-container {
    width: 100%;
    max-width: 1300px;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.timeline-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.timeline-container h2 {
    font-family: 'Caprasimo', serif;
    font-size: 1.5rem;
    color: #183b4e;
}

.meandering-timeline {
    position: relative;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Horizontal timeline for desktop */
.timeline-path.horizontal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100px;
    z-index: 1;
    pointer-events: none;
}

/* Vertical timeline for mobile (hidden by default) */
.timeline-path.vertical {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

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

@keyframes draw-path {
    0% {
        stroke-dasharray: 0, 1000;
    }
    50% {
        stroke-dasharray: 500, 500;
    }
    100% {
        stroke-dasharray: 1000, 0;
    }
}

/* Horizontal layout for desktop */
.timeline-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 60px 0;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.timeline-item[data-position="top"] {
    align-items: flex-end;
    margin-bottom: 60px;
    margin-top: 0;
}

.timeline-item[data-position="bottom"] {
    align-items: flex-start;
    margin-top: 60px;
    margin-bottom: 0;
}

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

.timeline-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 8px 8px 0 #2d1b3d,
    16px 16px 35px rgba(45, 27, 61, 0.3);
    z-index: 10;
}

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

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

.timeline-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #641b1b;
    margin-bottom: 15px;
}

.timeline-card p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(8, 35, 68, 0.85);
    margin: 0;
}

/* Join Form Section - Matching home page style */
.join-form-container {
    background-color: #fff0e6;
    padding: 80px 0;
    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;
    padding: 0 40px;
    text-align: left;
}

.join-left-column h2 {
    font-family: 'Caprasimo', serif;
    font-size: 2.5rem;
    color: #183b4e;
    margin-bottom: 30px;
}

.join-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #183b4e;
    margin-bottom: 20px;
}

.join-intro strong{
    color: #641b1b;
}

.join-form {
    flex: 1;
    max-width: 500px;
    min-height: 1000px;
    padding: 40px;
    border: 3px solid #2d1b3d;
    border-radius: 15px;
    box-shadow: 6px 6px 0 rgba(2, 32, 63, 0.95),
    12px 12px 25px rgba(45, 27, 61, 0.2);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Styles - Matching home page design */
.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;
}

/* FAQ Section - Matching home page cards */
.faq-section {
    background-color: #fff0e6;
    padding: 80px 0;
}

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

.faq-section h2 {
    font-family: 'Caprasimo', serif;
    font-size: 2.5rem;
    color: #183b4e;
    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: 6px 6px 0 rgba(2, 32, 63, 0.95),
    12px 12px 25px rgba(45, 27, 61, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    cursor: pointer;
}

.faq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
    rgba(139, 195, 74, 0.1) 0%,
    rgba(33, 150, 243, 0.1) 25%,
    rgba(0, 188, 212, 0.1) 50%,
    rgba(63, 81, 181, 0.1) 75%,
    rgba(156, 39, 176, 0.1) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.faq-card:nth-child(odd)::before {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.1), rgba(33, 150, 243, 0.1));
}

.faq-card:nth-child(even)::before {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(63, 81, 181, 0.1));
}

.faq-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 8px 8px 0 #2d1b3d,
    16px 16px 35px rgba(45, 27, 61, 0.3);
    z-index: 10;
}

.faq-card:hover::before {
    opacity: 1;
}

.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);
}

.faq-card h4,
.faq-card p {
    position: relative;
    z-index: 2;
}

.faq-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #641b1b;
    margin-bottom: 15px;
}

.faq-card p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(8, 35, 68, 0.85);
    margin: 0;
}

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

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

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

    .timeline-item {
        justify-content: center;
        margin: 0;
        flex: none;
    }

    .timeline-item[data-position="top"],
    .timeline-item[data-position="bottom"] {
        margin: 0;
        align-items: center;
    }

    .timeline-card {
        max-width: 400px;
        padding: 30px;
        transform: none !important;
    }

    .timeline-dot {
        left: -60px;
        top: 50%;
        transform: translateY(-50%);
    }

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

    .join-form-container {
        padding: 60px 30px;
    }

    .join-form {
        min-height: 1200px;
    }

    .faq-container {
        padding: 0 30px;
    }
}

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

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

    .content-section p {
        font-size: 1.15rem;
    }

    .timeline-container h2 {
        font-size: 2.2rem;
    }

    .section-container {
        padding: 0 20px;
    }

    .join-form-container {
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
    }

    .join-left-column {
        max-width: none;
        padding: 0;
    }

    .join-left-column h2 {
        font-size: 2.2rem;
    }

    .join-intro {
        font-size: 1.15rem;
    }

    .join-form {
        max-width: none;
        min-height: 1000px;
        padding: 30px;
    }

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

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

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

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

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

    .timeline-card {
        padding: 25px;
        max-width: 100%;
    }

    .timeline-content {
        gap: 40px;
    }
}

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

    .content-section {
        padding: 30px 15px;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .timeline-container h2,
    .join-left-column h2,
    .faq-section h2 {
        font-size: 2rem;
    }

    .timeline-card {
        padding: 20px;
    }

    .timeline-card h3 {
        font-size: 1.15rem;
    }

    .timeline-card p {
        font-size: 1rem;
    }

    .timeline-content {
        gap: 30px;
    }

    .timeline-dot {
        display: none;
    }

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

    .join-form-container {
        padding: 40px 15px;
    }

    .section-container,
    .faq-container {
        padding: 0 15px;
    }

    .join-form {
        padding: 25px;
    }

    .faq-card {
        padding: 25px;
    }

    .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);
    }
}