/**
 * Ford Campaign Microsite - Stylesheet
 * Responsive Desktop & Mobile Swipeable Layout
 */

/* -------------------------------------------------------------
 * 1. Base Container & Resets
 * ------------------------------------------------------------- */
.ford-campaign-wrapper {
    width: 100%;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0f172a;
    background-color: #ffffff;
    box-sizing: border-box;
    overflow-x: hidden;
}

.ford-campaign-wrapper * {
    box-sizing: border-box;
}

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

/* -------------------------------------------------------------
 * 2. Hero Section (Full Responsive Picture Banner)
 * ------------------------------------------------------------- */
.ford-campaign-hero {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    background-color: #070d18;
}

.ford-campaign-hero-link {
    display: block;
    width: 100%;
    text-decoration: none;
    line-height: 0;
    cursor: pointer;
}

.ford-campaign-hero-picture {
    display: block;
    width: 100%;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.ford-campaign-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

/* -------------------------------------------------------------
 * 3. Section: "HOW TO GET YOUR YEAR END DEAL"
 * ------------------------------------------------------------- */
.ford-campaign-steps-section {
    padding: 70px 20px;
    background-color: #ffffff;
    text-align: center;
}

.ford-campaign-section-title {
    font-size: 32px;
    font-weight: 900;
    color: #002c6c;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    margin: 0 0 50px 0;
}

/* Two-Line Title Format (Lampiran 3 & 4) */
.ford-campaign-section-title.ford-campaign-two-lines {
    line-height: 1.15;
    margin: 0 auto 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ford-campaign-section-title .title-line-1,
.ford-campaign-section-title .title-line-2 {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #002c6c;
}

/* Steps Track */
.ford-campaign-steps-track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
}

.ford-campaign-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 130px;
    max-width: 170px;
    position: relative;
    z-index: 2;
}

.ford-campaign-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #002c6c;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 3px 8px rgba(0, 44, 108, 0.2);
}

.ford-campaign-step-icon {
    width: 85px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #002c6c;
}

.ford-campaign-step-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.ford-campaign-step-icon img,
.ford-campaign-custom-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.ford-campaign-step-text {
    font-size: 13px;
    font-weight: 800;
    color: #002c6c;
    line-height: 1.35;
    text-align: center;
    margin: 0;
    max-width: 140px;
}

/* Connector Arrow between steps on Desktop (Thick Dotted with Bold Chevron - Lampiran 2) */
.ford-campaign-step-arrow {
    flex: 0 0 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    color: #002c6c;
}

.ford-campaign-step-arrow svg,
.ford-campaign-arrow-svg {
    width: 68px;
    height: 16px;
    display: block;
}

/* Swipe Dots (For Mobile) */
.ford-campaign-swipe-dots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.ford-campaign-swipe-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    transition: background-color 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.ford-campaign-swipe-dot.active {
    background-color: #006bf5;
    width: 22px;
    border-radius: 4px;
}

/* -------------------------------------------------------------
 * 4. Section: "ONE STEP CLOSER TO YOUR YEAR END DEALS" (Form)
 * Matching Lampiran 1: Clean flat light grey background, large bold
 * 52px blue heading, borderless 42px crisp white inputs, solid dark
 * triangle dropdown arrow, and flat pill button.
 * ------------------------------------------------------------- */
.ford-campaign-form-section {
    padding: 75px 20px;
    background-color: #f2f2f2;
}

.ford-campaign-form-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1060px;
    margin: 0 auto;
    gap: 40px;
}

.ford-campaign-form-left {
    flex: 1.2;
    min-width: 0;
}

.ford-campaign-form-heading {
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    font-family: 'FordAntenna', 'FordF1TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ford-campaign-form-heading .ford-campaign-heading-line-1 {
    display: block;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.5px;
    color: #006bf5;
    white-space: nowrap;
}

.ford-campaign-form-heading .ford-campaign-heading-line-2 {
    display: block;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.3px;
    color: #006bf5;
    margin-top: 4px;
    white-space: nowrap;
}

.ford-campaign-form-right {
    flex: 0 0 420px;
    max-width: 420px;
    width: 100%;
}

.ford-campaign-form-box {
    background: transparent;
    width: 100%;
}

.ford-campaign-field-group {
    margin-bottom: 8px;
    width: 100%;
}

.ford-campaign-input,
.ford-campaign-select {
    width: 100%;
    height: 42px;
    background-color: #ffffff;
    border: none;
    border-radius: 2px;
    padding: 0 14px;
    font-size: 14px;
    color: #333333;
    font-family: inherit;
    transition: box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
    box-shadow: none;
}

.ford-campaign-input::placeholder {
    color: #555555;
    font-weight: 400;
    opacity: 1;
}

.ford-campaign-input:focus,
.ford-campaign-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #006bf5;
}

.ford-campaign-select {
    appearance: none;
    -webkit-appearance: none;
    /* Solid dark triangle dropdown indicator ▼ */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%230b1a30' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px 6px;
    cursor: pointer;
}

.ford-campaign-select:invalid,
.ford-campaign-select option[value=""] {
    color: #555555;
}

.ford-campaign-select option {
    color: #0f172a;
}

.ford-campaign-submit-btn {
    width: 100%;
    height: 52px;
    background-color: #006bf5;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.ford-campaign-submit-btn:hover {
    background-color: #0056b3;
    box-shadow: none;
}

.ford-campaign-submit-btn:active {
    transform: scale(0.99);
}

.ford-campaign-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.ford-campaign-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: fordCampaignSpin 0.7s linear infinite;
}

@keyframes fordCampaignSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Notification Message */
.ford-campaign-msg {
    display: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 14px;
    text-align: center;
}

.ford-campaign-msg.success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.ford-campaign-msg.error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* -------------------------------------------------------------
 * 5. Section: "TERMS & CONDITIONS"
 * ------------------------------------------------------------- */
.ford-campaign-tc-section {
    padding: 70px 20px 80px;
    background-color: #ffffff;
    text-align: center;
}

.ford-campaign-tc-track {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1160px;
    margin: 0 auto;
}

.ford-campaign-tc-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
    text-align: center;
}

.ford-campaign-tc-divider {
    width: 1px;
    height: 90px;
    background-color: #7b8fa3;
    flex: 0 0 1px;
    margin: 0;
}

.ford-campaign-tc-icon {
    width: 120px;
    height: 80px;
    color: #002c6c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.ford-campaign-tc-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.ford-campaign-tc-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #002c6c;
    line-height: 1.45;
    text-align: center;
    margin: 0;
    max-width: 220px;
}

/* -------------------------------------------------------------
 * 6. Responsive Mobile Styling & SWIPEABLE CAROUSEL
 * ------------------------------------------------------------- */
@media (max-width: 900px) {
    .ford-campaign-form-layout {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .ford-campaign-form-heading .ford-campaign-heading-line-1 {
        font-size: 36px;
        line-height: 1.1;
        white-space: normal;
    }

    .ford-campaign-form-heading .ford-campaign-heading-line-2 {
        font-size: 26px;
        line-height: 1.15;
        white-space: normal;
    }

    .ford-campaign-form-right {
        max-width: 100%;
        flex: 1;
    }
}

@media (max-width: 768px) {

    /* =========================================================
     * MOBILE: "HOW TO GET YOUR YEAR END DEAL" (Matching Lampiran 1)
     * - Left-aligned title (not centered)
     * - No box/card, flat transparent background, no shadow
     * - Arrows visible between steps
     * - 2 full steps visible + 3rd step partially cut off (peek)
     * - No dots indicator
     * ========================================================= */
    .ford-campaign-steps-section {
        padding: 40px 0 30px;
        text-align: left;
    }

    .ford-campaign-steps-section .ford-campaign-container {
        padding: 0;
    }

    .ford-campaign-steps-section .ford-campaign-section-title,
    .ford-campaign-steps-section .ford-campaign-section-title.ford-campaign-two-lines {
        text-align: left;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 20px;
        margin: 0 0 24px 0;
    }

    .ford-campaign-steps-section .ford-campaign-section-title .title-line-1,
    .ford-campaign-steps-section .ford-campaign-section-title .title-line-2 {
        font-size: 22px;
        font-weight: 900;
        text-align: left;
        line-height: 1.15;
    }

    .ford-campaign-steps-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 10px 20px 10px;
        gap: 0;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .ford-campaign-steps-track::-webkit-scrollbar {
        display: none;
    }

    /* Flat step item without box/border/shadow, sized for 2 full items + 3rd peek */
    .ford-campaign-step-item {
        flex: 0 0 125px;
        width: 125px;
        min-width: 125px;
        max-width: 125px;
        scroll-snap-align: start;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .ford-campaign-step-num {
        width: 28px;
        height: 28px;
        font-size: 13px;
        margin-bottom: 10px;
    }

    .ford-campaign-step-icon {
        width: 65px;
        height: 52px;
        margin-bottom: 10px;
    }

    .ford-campaign-step-text {
        font-size: 11.5px;
        font-weight: 800;
        line-height: 1.3;
        max-width: 120px;
        text-align: center;
    }

    /* Arrow visible between steps on mobile, vertically centered with icons */
    .ford-campaign-step-arrow {
        display: flex !important;
        flex: 0 0 38px;
        width: 38px;
        min-width: 38px;
        margin-top: 48px;
        align-items: center;
        justify-content: center;
        color: #002c6c;
    }

    .ford-campaign-step-arrow svg,
    .ford-campaign-arrow-svg {
        width: 38px;
        height: 12px;
        display: block;
    }

    /* =========================================================
     * MOBILE: "TERMS & CONDITIONS" (Matching Lampiran 2)
     * - Left-aligned title (not centered)
     * - Flat transparent layout (no box)
     * - Vertical divider line between items
     * - 2 full items visible + 3rd item partially cut off (peek)
     * - No dots indicator
     * ========================================================= */
    .ford-campaign-tc-section {
        padding: 40px 0 30px;
        text-align: left;
    }

    .ford-campaign-tc-section .ford-campaign-container {
        padding: 0;
    }

    .ford-campaign-tc-section .ford-campaign-section-title {
        text-align: left;
        padding: 0 20px;
        font-size: 22px;
        font-weight: 900;
        margin-bottom: 22px;
    }

    .ford-campaign-tc-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 10px 20px 10px;
        gap: 0;
        justify-content: flex-start;
        align-items: center;
    }

    .ford-campaign-tc-track::-webkit-scrollbar {
        display: none;
    }

    /* Flat T&C item sized for 2 full items + 3rd peek */
    .ford-campaign-tc-item {
        flex: 0 0 145px;
        width: 145px;
        min-width: 145px;
        max-width: 145px;
        scroll-snap-align: start;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0 14px;
        box-shadow: none;
    }

    .ford-campaign-tc-icon {
        width: 60px;
        height: 44px;
        margin-bottom: 12px;
    }

    .ford-campaign-tc-divider {
        width: 1px;
        height: 75px;
        background-color: #7b8fa3;
        flex: 0 0 1px;
        display: block;
    }

    .ford-campaign-tc-text {
        font-size: 11.5px;
        font-weight: 700;
        color: #002c6c;
        line-height: 1.35;
        max-width: 100%;
        text-align: center;
    }

    /* Strictly hide dots on mobile as requested by user */
    .ford-campaign-swipe-dots {
        display: none !important;
    }

    /* Form Section Mobile */
    .ford-campaign-form-section {
        padding: 50px 20px;
    }

    .ford-campaign-form-heading .ford-campaign-heading-line-1 {
        font-size: 28px;
        line-height: 1.15;
        white-space: normal;
    }

    .ford-campaign-form-heading .ford-campaign-heading-line-2 {
        font-size: 20px;
        line-height: 1.2;
        white-space: normal;
    }
}

/* -------------------------------------------------------------
 * 7. Google reCAPTCHA v3 Badge Positioning
 * ------------------------------------------------------------- */
.grecaptcha-badge {
    z-index: 998;
}

@media (max-width: 768px) {
    .grecaptcha-badge {
        bottom: 75px !important;
    }
}

/* -------------------------------------------------------------
 * 8. Success Modal Popup (Thank You Modal - Lampiran User)
 * ------------------------------------------------------------- */
.ford-campaign-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 107, 245, 0.65);
    /* Vibrant Ford Blue overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.ford-campaign-modal-overlay.is-active,
.ford-campaign-modal-overlay.is-preview {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.ford-campaign-modal-open {
    overflow: hidden;
}

.ford-campaign-modal-card {
    background-color: #02045f;
    /* Deep Midnight Navy Blue */
    border-radius: 28px;
    width: 100%;
    max-width: 520px;
    padding: 50px 36px 42px;
    text-align: center;
    color: #ffffff;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
}

.ford-campaign-modal-overlay.is-active .ford-campaign-modal-card,
.ford-campaign-modal-overlay.is-preview .ford-campaign-modal-card {
    transform: translateY(0) scale(1);
}

/* Close Button (X) */
.ford-campaign-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #001f54;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    padding: 0;
    outline: none;
}

.ford-campaign-modal-close:hover {
    background-color: #006bf5;
    border-color: #ffffff;
    transform: rotate(90deg);
}

/* Modal Title */
.ford-campaign-modal-title {
    font-size: 52px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 22px;
    font-family: 'FordAntenna', 'FordF1TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Subtitle & Check Badge (2 Lines as in Lampiran User) */
.ford-campaign-modal-subtitle-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    text-align: left;
}

.ford-campaign-modal-check-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #006bf5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ford-campaign-modal-subtitle {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
    text-align: left;
}

/* Divider Line */
.ford-campaign-modal-divider {
    width: 65%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
    margin: 24px auto;
}

/* Description */
.ford-campaign-modal-desc {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0 0 32px;
}

.ford-campaign-modal-desc strong {
    color: #ffffff;
    font-weight: 700;
}

/* Back to Home Link */
.ford-campaign-modal-btn-wrap {
    margin-top: 10px;
}

.ford-campaign-modal-btn {
    display: inline-block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px 12px;
}

.ford-campaign-modal-btn:hover {
    color: #ffffff;
    text-decoration: underline;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .ford-campaign-modal-card {
        padding: 40px 24px 30px;
        border-radius: 22px;
    }

    .ford-campaign-modal-title {
        font-size: 38px;
    }

    .ford-campaign-modal-subtitle {
        font-size: 14px;
    }

    .ford-campaign-modal-desc {
        font-size: 13.5px;
        line-height: 1.55;
    }
}