/* 
 * contact.css
 * Styles for the Contact Section, including the contact form, 
 * toggle switches, timeline, and guarantee info cards.
 */

.contact-section {
    font-family: 'ABC Normal', 'IBM Plex Sans';
    padding: 100px 0;
    background-color: #ffffff;
    /* Subtle grid pattern background for a modern technical feel */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Section Header --- */
.contact-header {
    text-align: left;
    margin-bottom: 60px;
}

.contact-title {
    font-size: 3rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-align: center;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #000000;
    max-width: 700px;
    margin: 0 auto 60px auto;
    line-height: 1.6;
    text-align: center;
}

/* --- Main Layout Grid --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

/* --- General Card Styling --- */
.contact-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

/* --- Contact Form Specifics --- */
.contact-form-card {
    border: 1px solid #00000033;
    box-shadow: 4px 4px 4px 0px #00000033;
}

/* Wrapper for title and toggle */
.contact-toggle-wrapper {
    margin-bottom: 40px;
}

.contact-toggle-title {
    font-size: 1.0rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 15px;
}

/* Toggle Switch for 'Client' vs 'Partner' */
.contact-toggle-container {
    display: inline-flex;
    background: #e9ecef;
    padding: 4px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

/* Hidden slider - we now use button backgrounds directly */
.contact-toggle-slider {
    display: none;
}

.contact-toggle-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 400;
    font-size: 0.95rem;
    border: none;
    min-width: 160px;
    position: relative;
    z-index: 1;
    /* Default state: transparent background, gray text */
    background: transparent;
    color: #666;
    /* Smooth transition for background and color */
    transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active button: white background with shadow */
.contact-toggle-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form Groups and Inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-weight: normal;
    font-size: 1rem;
    color: #000000;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #B40404;
}

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

/* Checkbox and Privacy Policy Label */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.4;
}

.form-checkbox input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* CTA Button */
.btn-send {
    background-image: linear-gradient(to bottom, rgba(242, 76, 76, 1) 0%, rgba(180, 4, 4, 1) 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-image 0.2s ease, opacity 0.2s ease;
}

.btn-send:hover {
    background: linear-gradient(to bottom, rgba(220, 50, 50, 1) 0%, rgba(150, 0, 0, 1) 100%) !important;
}

/* --- Next Steps (Timeline) Card --- */
.contact-next-steps-card {
    background-color: #ffffffE6;
    border: 1px solid #00000033;
    margin-bottom: 30px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.card-header i {
    font-size: 2rem;
    color: #242424FF;
    transform: translateY(-2px);
    /* Subtle vertical adjustment for visual alignment */
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: normal;
    color: #1a1a1a;
}

/* Timeline vertical line and spacing */
.timeline {
    position: relative;
    padding-left: 60px;
    /* Increased padding for the step numbers */
}

/* Remove global vertical line from container */
.timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

/* Vertical line segment for each item, except the last one */
.timeline-item::after {
    content: '';
    position: absolute;
    left: -43px;
    /* Centered with 36px wide number box at left: -60px */
    top: 36px;
    /* Start below the number box */
    bottom: -30px;
    /* Extend through the margin-bottom to reach next step */
    width: 2px;
    background: #d1c4e9;
    z-index: 0;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

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

/* Numeric step indicators centered on the vertical line */
.timeline-number {
    position: absolute;
    left: -60px;
    /* Aligned with .timeline padding */
    width: 36px;
    height: 36px;
    background: #242424FF;
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 1;
}

.timeline-content h4 {
    display: block;
    font-weight: normal;
    font-size: 1rem;
    color: #000000;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.5;
}

/* --- Guarantee (Trust) Card --- */
.contact-guarantee-card {
    background: #ffffff;
    /* High-contrast dark purple */
    color: #000000;
    padding: 30px;
}

.guarantee-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.guarantee-header i {
    font-size: 2rem;
    color: #000000;
    transform: translateY(-5px);
}

.guarantee-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.guarantee-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 25px;
}

.guarantee-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.guarantee-badge i {
    font-size: 1.2rem;
}

/* --- Responsive Media Queries --- */

/* Stack the 2-column layout into 1 column on tablets */
@media (max-width: 991px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-header {
        margin-bottom: 40px;
    }

    .contact-title {
        font-size: 2.25rem;
    }
}

/* Adjust form grid and font sizes on mobile */
@media (max-width: 768px) {
    .contact-section {
        padding: 50px 15px;
    }

    .contact-title {
        font-size: 1.85rem;
        margin-bottom: 15px;
        text-align: left;
    }

    .contact-subtitle {
        font-size: 1.1rem;
        text-align: left;
    }

    .contact-toggle-wrapper {
        margin-bottom: 30px;
    }

    .contact-toggle-container {
        display: flex;
        /* Use flex to ensure buttons share space */
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-toggle-btn {
        flex: 1;
        min-width: auto;
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-group-full {
        grid-column: span 1;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .timeline {
        padding-left: 50px;
    }

    .timeline-number {
        left: -50px;
        width: 32px;
        height: 32px;
    }

    .timeline-item::after {
        left: -34px;
        top: 32px;
    }

    .card-header i {
        font-size: 1.75rem;
    }

    .card-header h3 {
        font-size: 1.25rem;
    }

    .guarantee-header i {
        font-size: 1.75rem;
    }

    .guarantee-header h3 {
        font-size: 1.2rem;
    }

    .btn-send {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
}