/**
 * How It Works Page Styles
 */

.how-it-works-page {
    background: #fdfdfd;
    min-height: 100vh;
}

body.dark .how-it-works-page {
    background: #0d0d0d;
}

.how-section {
    padding: 0;
    margin: 0;
    width: 100%;
}

.how-container {
    width: 100%;
    position: relative;
}

/* Video Section */
.how-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    overflow: hidden;
    background: #000;
    position: relative;
    margin: 0;
    padding: 0;
}

.how-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.how-video.no-interaction {
    pointer-events: none;
}

.how-video-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.play-btn-overlay {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 5;
}

.play-btn-overlay:hover {
    transform: scale(1.1);
}

/* Content Card */
.how-content-card {
    width: 90%;
    max-width: auto;
    /* background: rgba(255, 255, 255, 0.4); */
    /* Increased transparency */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    padding: 80px 100px;
    /* More padding for equal spacing */
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    margin: -150px auto 100px;
    /* Adjusted overlap and bottom margin */
    z-index: 10;
    position: relative;
}

body.dark .how-content-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.how-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: var(--heading-size);
    color: #0d0d0d;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

body.dark .how-heading {
    color: #fff;
}

.how-desc {
    font-family: 'Inter', sans-serif;
    font-size: var(--content-size);
    /* Slightly larger */
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    /* Wider to match design */
    margin-bottom: 0;
}

body.dark .how-desc {
    color: #ccc;
}

.how-intro-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-get-started-btn {
    background: #9E1613;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-top: 10px;
}

.contact-get-started-btn:hover {
    background: #7d1210;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(158, 22, 19, 0.4);
}

/* Form Styles - Integrated */
.how-form-wrap {
    max-width: 100%;
}

.how-form-wrap .form-group {
    margin-bottom: 24px;
}

.how-form-wrap .form-label {
    display: block;
    font-weight: 700;
    font-size: var(--content-size);
    color: #0d0d0d;
    margin-bottom: 12px;
}

.form-required {
    color: #e03030;
    margin-left: 2px;
}

body.dark .how-form-wrap .form-label {
    color: #fff;
}

.how-form-wrap .form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    /* Very light and semi-transparent */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 16px 20px;
    font-family: 'Inter', sans-serif;
    font-size: var(--content-size);
    color: #0d0d0d;
    transition: all 0.2s ease;
}

.how-form-wrap .form-input::placeholder {
    color: #999;
}

body.dark .how-form-wrap .form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.how-form-wrap .form-input:focus {
    outline: none;
    border-color: #9E1613;
    background: #fff;
}

body.dark .how-form-wrap .form-input:focus {
    background: rgba(255, 255, 255, 0.1);
}

.how-form-wrap .form-textarea {
    resize: vertical;
    min-height: 200px;
    height: 100px !important;
}

/* Phone Input Wrap */
.phone-input-wrap {
    display: flex;
    gap: 0;
}

.phone-country {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.5);
    /* Match inputs */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0 16px;
    cursor: pointer;
}

body.dark .phone-country {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.phone-number-input {
    border-radius: 0 12px 12px 0 !important;
}

.form-submit-wrap {
    display: flex;
    justify-content: flex-end;
    /* Align button to the right */
    margin-top: 40px;
}

.contact-submit-btn {
    background: #9E1613;
    color: #fff;
    border: none;
    border-radius: 8px;
    /* Slightly more squared as in design */
    padding: 16px 40px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.contact-submit-btn:hover {
    background: #7d1210;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(158, 22, 19, 0.4);
}

/* Footer Brand Section */
.how-footer-brand {
    padding: 60px 0;
    text-align: center;
}

.how-wordmark {
    width: 600px;
    max-width: 100%;
    margin-bottom: 20px;
    opacity: 0.8;
}

body.dark .how-wordmark {
    filter: invert(1);
    opacity: 0.9;
}

.how-tagline {
    font-size: var(--heading-size);
    font-weight: 800;
    letter-spacing: 0.5em;
    color: #0d0d0d;
    margin: 0;
}

body.dark .how-tagline {
    color: #fff;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .how-content-card {
        padding: 30px;
        margin-top: -40px;
    }

    .how-heading {
        font-size: 32px;
    }

    .how-desc {
        font-size: 16px;
    }

    .how-intro-row {
        flex-direction: column;
        gap: 20px;
    }

    .contact-get-started-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0;
    }

    .how-tagline {
        font-size: 14px;
        letter-spacing: 0.3em;
    }
}