/* =====================================================================
   Mazda UAE - sales campaign page, new design
   Loaded by Views/Partials/_salescampaigns.cshtml (sales campaign page),
   _ramadanCampaigns.cshtml (/mazda-sales, /mazda-offers) and
   _registerForm.cshtml (/register-now) when they show the new design.
   Every rule is scoped under .scf (the main section of those pages:
   banner, form, intro, benefits and payment options).
   The form's fields, scripts and tracking are the page's own; this file
   only restyles them. Header and footer: css/site-chrome.css.
   ===================================================================== */

.scf {
    --scf-ink: #0b0b0c;
    --scf-paper: #f4f4f2;
    --scf-text: #101010;
    --scf-muted: #5f5f5f;
    --scf-line: #e3e3df;
    --scf-field: #f7f7f5;
    --scf-accent: #911921;
    --scf-accent-hi: #c8202b;
    --scf-ease: cubic-bezier(.2, .7, .2, 1);
    --scf-gutter: clamp(16px, 4vw, 48px);
    --scf-max: 1320px;
    --scf-track: .1em;
    --scf-font: "MazdaType", "Mazda Arabic", "Mazda Type", "IBM Plex Sans Arabic", Helvetica, Arial, sans-serif;
    font-family: var(--scf-font);
    color: var(--scf-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.is-rtl .scf { --scf-track: 0; }

/* local reset (the site styles bare elements, and its phone styles set p { width: 90% }) */
.scf *, .scf *::before, .scf *::after { box-sizing: border-box; }
.scf h1, .scf h2, .scf p, .scf ul, .scf li { margin: 0; padding: 0; color: inherit; }
.scf p { width: auto !important; }
.scf ul { list-style: none; }
.scf h1, .scf h2 { font-family: var(--scf-font) !important; }
.scf .scf-icon { display: block; width: 24px; height: 24px; flex: none; }

/* container: 85% of the screen on desktop, as on the home page */
.scf .scf-container {
    width: 100%;
    max-width: calc(var(--scf-max) + 2 * var(--scf-gutter));
    margin-inline: auto;
    padding-inline: var(--scf-gutter);
}
@media (min-width: 1200px) {
    .scf .scf-container { width: 85%; max-width: none; padding-inline: 0; }
}

/* ---------- type ---------- */
.scf .scf-title {
    font-size: clamp(26px, 2.4vw, 40px) !important;
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: var(--scf-track);
    text-transform: uppercase;
    text-align: start !important;
    color: var(--scf-ink);
}
.scf .scf-lead {
    max-width: 62ch;
    margin-top: 14px;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.65;
    color: var(--scf-muted);
    text-align: start !important;
}
.scf .scf-h2 {
    font-size: clamp(26px, 2.6vw, 42px) !important; /* the site sets "h2 { font-size: 1rem !important }" below 960px */
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: var(--scf-track);
    text-transform: uppercase;
    text-align: start !important;
    color: var(--scf-ink);
}
.scf .scf-h2--small { font-size: clamp(20px, 1.8vw, 28px) !important; }
.scf .scf-head { margin-bottom: 26px; }

body.is-rtl .scf .scf-card__eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }
body.is-rtl .scf .scf-title,
body.is-rtl .scf .scf-h2 { text-transform: none; line-height: 1.35; }

/* ---------- layout: the form starts on the first screen ----------
   Desktop: the campaign banner, intro, benefits and payment options on one side and the form
   card beside them from the top. Below 960px: banner (full width), form, then the rest. */
.scf-main {
    padding: 40px 0 clamp(64px, 8vw, 128px);
    background: var(--scf-paper);
}
.scf .scf-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "banner form" "intro form" "perks form" "pay form";
    gap: 40px clamp(32px, 4vw, 64px);
    align-items: start;
}
.scf .scf-banner { grid-area: banner; overflow: hidden; border-radius: 4px; background: var(--scf-ink); line-height: 0; }
.scf .scf-banner .scf-banner__img { display: block; width: 100%; max-width: none; height: auto; margin: 0; }
.scf .scf-intro { grid-area: intro; }
.scf .scf-perks { grid-area: perks; }
.scf .scf-pay { grid-area: pay; }
.scf .scf-formcol { grid-area: form; }

/* benefits */
.scf .scf-perks__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.scf .scf-perk {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 96px;
    padding: 20px 24px;
    border-radius: 4px;
    background: #fff;
    color: var(--scf-ink);
}
.scf .scf-perk:last-child:nth-child(odd) { grid-column: 1 / -1; }
.scf .scf-perk__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: none;
    border-radius: 50%;
    background: var(--scf-ink);
    color: #fff;
}
.scf .scf-perk__icon .scf-icon { width: 24px; height: 24px; }
.scf .scf-perk__text {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-wrap: balance;
}
body.is-rtl .scf .scf-perk__text { letter-spacing: 0; text-transform: none; font-size: 16px; font-weight: 500; }
.scf .scf-note { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--scf-muted); }

/* payment options: one panel, neutral dividers */
.scf .scf-pay__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}
.scf .scf-payitem {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-top: 1px solid var(--scf-line);
}
.scf .scf-payitem:nth-child(-n+2) { border-top: 0; }
.scf .scf-payitem:nth-child(even) { border-inline-start: 1px solid var(--scf-line); }
.scf .scf-payitem__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border: 1px solid var(--scf-line);
    border-radius: 50%;
    color: var(--scf-ink);
}
.scf .scf-payitem__icon .scf-icon { width: 20px; height: 20px; }
.scf .scf-payitem__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; }
.scf .scf-payitem__title {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--scf-ink);
}
.scf .scf-payitem__copy { font-size: 14px; line-height: 1.55; color: var(--scf-muted); }
body.is-rtl .scf .scf-payitem__title { letter-spacing: 0; text-transform: none; font-size: 15px; }

/* ---------- form card ---------- */
.scf .scf-card {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .04);
}
.scf .scf-card__head {
    padding: 26px 32px 24px;
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(200, 32, 43, .3) 0%, rgba(200, 32, 43, 0) 55%),
        var(--scf-ink);
    color: #fff;
}
body.is-rtl .scf .scf-card__head {
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(200, 32, 43, .3) 0%, rgba(200, 32, 43, 0) 55%),
        var(--scf-ink);
}
.scf .scf-card__eyebrow {
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
}
.scf .scf-card__title {
    margin-top: 8px !important;
    font-size: clamp(19px, 1.5vw, 23px) !important;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    text-align: start !important;
    color: #fff;
}
.scf .scf-card__body { padding: 28px 32px 32px; }
.scf .scf-card__body .wpb_text_column,
.scf .scf-card__body .wpb_wrapper,
.scf .scf-card__body .wpcf7 { width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; }

/* fields: two columns; message and consent lines across */
.scf .scf-card form#form { display: block !important; width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; } /* the register page makes it a centring flex column */
.scf .scf-card .forms__group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    margin: 0 !important;
    padding: 0 !important;
}
.scf .scf-card .forms__group::before,
.scf .scf-card .forms__group::after { content: none !important; display: none !important; }
.scf .scf-card .forms__group > .input-row {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}
.scf .scf-card .forms__group > [data-atom="a07-input-row-textarea"],
.scf .scf-card .forms__group > .input-row--checkbox,
.scf .scf-card .forms__group > .mazda-consent-row,
.scf .scf-card .forms__group > .mazda-privacy-notice-text { grid-column: 1 / -1; }

.scf .scf-card .input-row:not(.input-row--checkbox) > label {
    position: static !important;
    display: block;
    margin: 0 0 8px !important;
    transform: none !important;
    font-family: var(--scf-font) !important;
    font-size: 10.5px !important;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .16em !important;
    text-transform: uppercase;
    text-align: start !important;
    color: #5c5c5c !important;
}
body.is-rtl .scf .scf-card .input-row:not(.input-row--checkbox) > label { font-size: 13px !important; letter-spacing: 0 !important; }

.scf .scf-card .input-row .form-field:not([type="checkbox"]) {
    width: 100% !important;
    height: 52px !important;
    margin: 0 !important;
    border: 1px solid #dcdcd8 !important;
    border-radius: 4px !important;
    background-color: var(--scf-field) !important;
    color: #111 !important;
    font-family: var(--scf-font) !important;
    font-size: 15px !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: border-color .25s, background-color .25s, box-shadow .25s;
}
/* the phone field keeps the padding the country picker sets */
.scf .scf-card .input-row .form-field:not([type="checkbox"]):not(#textfieldPhone) { padding: 0 14px !important; }
.scf .scf-card .input-row textarea.form-field {
    height: 104px !important;
    min-height: 104px;
    padding: 14px !important;
    line-height: 1.5;
    resize: vertical;
}
.scf .scf-card .input-row select.form-field {
    -webkit-appearance: none;
    appearance: none;
    padding-inline-end: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230b0b0c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px 8px !important;
    cursor: pointer;
}
.scf .scf-card [dir="rtl"] .input-row select.form-field { background-position: left 16px center !important; }
.scf .scf-card .input-row .form-field:not([type="checkbox"]):hover { border-color: #b9b9b4 !important; }
.scf .scf-card .input-row .form-field:not([type="checkbox"]):focus {
    border-color: var(--scf-ink) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(11, 11, 12, .07) !important;
    outline: none;
}
/* placeholders: soft grey; a select still on its empty first option reads as a placeholder too */
.scf .scf-card .input-row .form-field::placeholder { color: #7d7d78; opacity: 1; }
.scf .scf-card .input-row select.form-field:has(> option[value=""]:checked) { color: #7d7d78 !important; text-transform: none !important; }
.scf .scf-card .input-row select.form-field option { color: #111; }
.scf .scf-card .iti { display: block; width: 100%; }
.scf .scf-card [dir="rtl"] .iti { direction: ltr; }
.scf .scf-card .iti__selected-flag { border-radius: 4px 0 0 4px; }

/* consent lines */
.scf .scf-card .input-row--checkbox label,
.scf .scf-card .mazda-consent-label,
.scf .scf-card .privacynotice,
.scf .scf-card .input-row--checkbox p {
    font-family: var(--scf-font) !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-align: start !important;
    color: #3a3a3a !important;
}
.scf .scf-card .input-row--checkbox p + p { margin-top: 10px !important; color: #6b6b6b !important; }
.scf .scf-card .input-row--checkbox a,
.scf .scf-card .mazda-consent-label a,
.scf .scf-card .mazda-privacy-notice-text a { color: var(--scf-ink) !important; text-decoration: underline; }
.scf .scf-card .mazda-privacy-notice-text {
    width: auto !important;
    max-width: none !important;
    margin: -6px 0 0 !important;
    font-family: var(--scf-font) !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #6b6b6b !important;
}
.scf .scf-card .privacynotice2-error { margin-top: 6px; font-size: 12.5px !important; color: var(--scf-accent-hi) !important; }

/* reCAPTCHA keeps its 80% scale; the box is sized to what shows */
.scf .scf-card .g-recaptcha {
    display: block !important;
    float: none !important;
    position: static !important;
    height: 62px;
    margin: 24px 0 0 !important;
}
.scf .scf-card [dir="rtl"] .g-recaptcha { transform-origin: 100% 0 !important; }
.scf .scf-card #errormsg { margin: 12px 0 0 !important; font-size: 12.5px !important; }

/* submit */
.scf .scf-card .btnSubmit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 56px;
    margin: 22px 0 0 !important;
    padding: 0 24px !important;
    border: 1px solid var(--scf-ink) !important;
    border-radius: 3px !important;
    background: var(--scf-ink) !important;
    color: #fff !important;
    font-family: var(--scf-font) !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1 !important;
    letter-spacing: .22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .3s, border-color .3s, opacity .3s;
}
.scf .scf-card .btnSubmit:not(:disabled):hover { background: var(--scf-accent) !important; border-color: var(--scf-accent) !important; }
.scf .scf-card .btnSubmit:focus-visible { outline: 2px solid var(--scf-ink); outline-offset: 3px; }
.scf .scf-card .btnSubmit:disabled { background: #d2d2ce !important; border-color: #d2d2ce !important; color: #fff !important; cursor: not-allowed; }
.scf .scf-card .btnSubmit.btn-disable { background: var(--scf-ink) !important; border-color: var(--scf-ink) !important; opacity: .55; }
body.is-rtl .scf .scf-card .btnSubmit { letter-spacing: 0; text-transform: none; font-size: 15px !important; }

/* ---------- single form page (/register-now): one centred card with the page heading in its head ---------- */
.scf .scf-grid--single {
    grid-template-columns: minmax(0, 760px);
    grid-template-rows: none;
    grid-template-areas: "form";
    justify-content: center;
}
.scf .scf-card__head--page { position: relative; isolation: isolate; overflow: hidden; padding: 40px 32px 34px; }
.scf .scf-card__headimg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: 70% 50%;
}
/* darkest under the heading (start side), so white text stays readable over the light parts of the picture */
.scf .scf-card__head--page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(11, 11, 12, .94) 0%, rgba(11, 11, 12, .78) 45%, rgba(11, 11, 12, .3) 100%);
}
body.is-rtl .scf .scf-card__head--page::before {
    background: linear-gradient(270deg, rgba(11, 11, 12, .94) 0%, rgba(11, 11, 12, .78) 45%, rgba(11, 11, 12, .3) 100%);
}
.scf .scf-card__title--page {
    margin-top: 0 !important;
    font-size: clamp(26px, 2.4vw, 36px) !important;
    line-height: 1.1;
    letter-spacing: var(--scf-track);
    text-transform: uppercase;
}
body.is-rtl .scf .scf-card__title--page { letter-spacing: 0; text-transform: none; line-height: 1.35; }
.scf .scf-card__lead {
    max-width: 46ch;
    margin-top: 10px !important;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .8);
    text-align: start !important;
}
body.is-rtl .scf .scf-card__lead { font-size: 16px; }

/* ---------- small laptop ---------- */
@media (min-width: 960px) and (max-width: 1199px) {
    .scf .scf-grid { grid-template-columns: minmax(0, 1fr) 420px; }
    .scf .scf-card__head { padding: 22px 26px 20px; }
    .scf .scf-card__body { padding: 24px 26px 28px; }
}

/* ---------- tablet ---------- */
@media (max-width: 959px) {
    .scf-main { padding-top: 0; }
    .scf .scf-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: "banner" "form" "intro" "perks" "pay";
        gap: 36px;
    }
    /* edge to edge, right under the header */
    .scf .scf-banner { margin-inline: calc(-1 * var(--scf-gutter)); margin-bottom: -12px; border-radius: 0; }
    .scf-main--single { padding-top: 24px; }
}

/* ---------- phone ---------- */
@media (max-width: 599px) {
    .scf-main { padding-bottom: 56px; }
    .scf .scf-grid { gap: 32px; }
    .scf .scf-banner { margin-bottom: -16px; }
    .scf .scf-head { margin-bottom: 18px; }
    .scf .scf-perks__list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .scf .scf-perk { min-height: 0; padding: 14px 16px; gap: 14px; }
    .scf .scf-perk__icon { width: 44px; height: 44px; }
    .scf .scf-perk__icon .scf-icon { width: 20px; height: 20px; }
    .scf .scf-perk__text { font-size: 12.5px; }
    body.is-rtl .scf .scf-perk__text { font-size: 15px; }

    .scf .scf-pay__list { grid-template-columns: minmax(0, 1fr); }
    .scf .scf-payitem { padding: 18px 16px; }
    .scf .scf-payitem:nth-child(n) { border-top: 1px solid var(--scf-line); border-inline-start: 0; }
    .scf .scf-payitem:first-child { border-top: 0; }

    .scf .scf-card__head { padding: 22px 20px 20px; }
    .scf .scf-card__head--page { padding: 28px 20px 24px; }
    .scf .scf-card__body { padding: 24px 20px 28px; }
    .scf .scf-card .forms__group { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
