/* =====================================================================
   CFL – COMPLIMENTARY 2 GRAM GOLD  (black version, landing mode)
   /wp-content/plugins/cfl-gold/assets/css/cfl-gold.css
   Everything is scoped to .cflg / body:has(.cflg), so other pages are untouched.
   ===================================================================== */

html:has(.cflg),
body:has(.cflg) { overflow-x: hidden; overflow-x: clip; }
body:has(.cflg) { background: #0A0A0A !important; }

/* ---------------------------------------------------------------------
   LANDING MODE – hide the theme header/footer on this page only
   --------------------------------------------------------------------- */
body:has(.cflg) #masthead,                 /* header + risk strip + mobile header */
body:has(.cflg) #colophon,                 /* site footer */
body:has(.cflg) .hfe-skip-link,
body:has(.cflg) #page > .container.my-5,   /* "How to Start Trading" block */
body:has(.cflg) #page aside { display: none !important; }

/* remove the default Elementor container padding around the widget */
body:has(.cflg) .elementor-element-7d40913,
body:has(.cflg) .elementor-element-7d40913 > .e-con-inner {
    padding: 0 !important;
    max-width: none !important;
}

.cflg {
    --g-gold: #E8B92D;          /* button fill */
    --g-gold-hi: #F3CB4C;       /* button hover */
    --g-gold-text: #E8B92D;     /* large gold text on black */
    --g-gold-ink: #E8B92D;      /* small gold text / links on black */
    --g-bg: #0A0A0A;
    --g-field: #0A0A0A;
    --g-line: #2E2E2E;
    --g-line-hi: #4A4A4A;
    --g-text: #FFFFFF;
    --g-soft: #D6D3CC;
    --g-muted: #9A968E;
    --g-error: #FF6B6B;
    --g-pad: clamp(20px, 6.1vw, 88px);
    --g-header: 0px;            /* no site header in landing mode */

    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--g-bg);
    color: var(--g-text);
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* logged-in admins only: leave room for the WordPress admin bar */
body.admin-bar .cflg { --g-header: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .cflg { --g-header: 46px; }
}

.cflg *,
.cflg *::before,
.cflg *::after { box-sizing: border-box; }
.cflg :is(h1, p, span, a, label, input, button, strong, small) { font-family: inherit; }

.cflg__sr {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------------
   LAYOUT (mobile first)
   --------------------------------------------------------------------- */
.cflg__hero { display: flex; flex-direction: column; }

.cflg__media {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.cflg__logo {
    display: block;
    width: 150px;
    max-width: 50%;
    height: auto;
    margin: 20px 20px 0;
}

.cflg__coin { margin: 0; padding: 0; }
.cflg__video {
    display: block;
    width: 100%;
    height: min(100vw, 480px);
    object-fit: cover;
    object-position: center 40%;
    background: transparent;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 70%, transparent 100%);
}
.cflg__caption {
    position: absolute;
    right: 20px;
    bottom: 10px;
    margin: 0;
    font-size: 11px;
    color: var(--g-muted);
}

.cflg__panel {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 28px 20px 44px;
}

/* ---------------------------------------------------------------------
   INTRO
   --------------------------------------------------------------------- */
.cflg__intro { margin: 0 0 28px; }
.cflg__eyebrow {
    display: block;
    color: var(--g-gold-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    line-height: 1.2;
}
.cflg .cflg__headline {
    margin: 14px 0 16px !important;
    padding: 0 !important;
    color: var(--g-text) !important;
    font-size: clamp(34px, 9vw, 40px) !important;
    font-weight: 700 !important;
    line-height: 1.04 !important;
    letter-spacing: -0.015em;
    text-transform: none !important;
}
.cflg__headline .cflg__gold { display: block; color: var(--g-gold-text); }
.cflg__headline sup {
    margin-left: 2px;
    font-size: 0.45em;
    line-height: 0;
    vertical-align: super;
    color: var(--g-gold-text);
}
.cflg__lead {
    margin: 0;
    color: var(--g-soft);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
}

/* ---------------------------------------------------------------------
   FORM
   --------------------------------------------------------------------- */
.cflg__form { margin: 0; padding: 0; }
.cflg__row { position: relative; margin: 0 0 14px; }
.cflg__row--submit { margin-top: 22px; }

.cflg .cflg__input {
    display: block;
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0 18px;
    font-size: 16px;
    color: var(--g-text);
    background: var(--g-field);
    border: 1px solid var(--g-line);
    border-radius: 10px;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
            appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.cflg .cflg__input:hover { border-color: var(--g-line-hi); }
.cflg .cflg__input:focus {
    border-color: var(--g-gold);
    box-shadow: 0 0 0 3px rgba(232, 185, 45, 0.25);
}
.cflg .cflg__input::placeholder { color: #8A867E; opacity: 1; }
.cflg .cflg__input:-webkit-autofill,
.cflg .cflg__input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--g-field) inset;
    -webkit-text-fill-color: var(--g-text);
    caret-color: var(--g-text);
}

.cflg__row.is-error .cflg__input { border-color: var(--g-error); }
.cflg__row.is-error .cflg__input:focus { box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2); }

/* --- error messages --- */
.cflg__err {
    display: none;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0 0;
    color: var(--g-error);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}
.cflg__err.is-on { display: flex; }
.cflg__err::before {
    content: "";
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FF6B6B' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.5'/%3E%3Cpath d='M8 4.8v3.6M8 11.1v.1'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* --- phone: [flag +971 | Mobile Number] (intl-tel-input 25.12.5) --- */
.cflg .iti,
.iti--container {
    --iti-border-color: #2E2E2E;
    --iti-dialcode-color: #9A968E;
    --iti-dropdown-bg: #141414;
    --iti-hover-color: rgba(232, 185, 45, 0.18);
    --iti-icon-color: #9A968E;
    --iti-arrow-color: #9A968E;
}
.cflg .iti { display: block; width: 100%; }
.cflg .iti__country-container { z-index: 3; padding: 0; }

/* the flag area is a <button>: undo the theme's button styles */
.cflg .iti__selected-country,
.cflg .iti__selected-country:hover,
.cflg .iti__selected-country:focus {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0 16px 0 18px !important;
    color: var(--g-text) !important;
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid var(--g-line) !important;
    border-radius: 10px 0 0 10px !important;
    box-shadow: none !important;
    font: inherit;
    text-transform: none;
    outline: none;
}
.cflg .iti__selected-country:hover,
.cflg .iti__selected-country:focus-visible { background: #1A1A1A !important; }
.cflg .iti__selected-country-primary { padding: 0; background: transparent !important; }
.cflg .iti__selected-dial-code {
    margin-left: 10px;
    color: var(--g-text);
    font-size: 16px;
    font-weight: 500;
}
.cflg .iti__arrow { display: none; }

/* the site's own phone-field CSS paints the typed number dark – force it white */
.cflg .iti input.cflg__input,
.cflg .iti input.cflg__input:focus,
.cflg .iti input.cflg__input:hover {
    color: var(--g-text) !important;
    -webkit-text-fill-color: var(--g-text) !important;
    caret-color: var(--g-text) !important;
    background: var(--g-field) !important;
    opacity: 1 !important;
}
.cflg .iti input.cflg__input::placeholder {
    color: #8A867E !important;
    -webkit-text-fill-color: #8A867E !important;
    opacity: 1 !important;
}
.cflg .iti input.cflg__input:-webkit-autofill,
.cflg .iti input.cflg__input:-webkit-autofill:hover,
.cflg .iti input.cflg__input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--g-field) inset !important;
    -webkit-text-fill-color: var(--g-text) !important;
}

/* dropdown – inline on desktop, full-screen popup (.iti--container) on mobile */
.cflg .iti__dropdown-content,
.iti--container .iti__dropdown-content {
    color: #FFFFFF;
    background: #141414;
    border: 1px solid #2E2E2E;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}
.cflg .iti__country-list { max-height: 260px; }
.cflg .iti__country,
.iti--container .iti__country { color: #FFFFFF; }
.cflg .iti__country.iti__highlight,
.iti--container .iti__country.iti__highlight { background: rgba(232, 185, 45, 0.18); }
.cflg .iti__dial-code,
.iti--container .iti__dial-code { color: #9A968E; }

/* search box – the theme styles input[type=search], so reset it here */
.cflg .iti__search-input,
.iti--container .iti__search-input {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    color: #FFFFFF;
    background: #141414;
    border: 0;
    border-bottom: 1px solid #2E2E2E;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}
.cflg .iti__search-input-wrapper:has(.iti__search-icon) .iti__search-input,
.iti--container .iti__search-input-wrapper:has(.iti__search-icon) .iti__search-input { padding-left: 36px; }
.cflg .iti__search-input::placeholder,
.iti--container .iti__search-input::placeholder { color: #8A867E; }

/* --- reCAPTCHA --- */
.cflg .g-recaptcha { display: block; line-height: 0; }
.cflg__row.is-error .g-recaptcha > div { outline: 1px solid var(--g-error); border-radius: 3px; }

/* --- submit --- */
.cflg .cflg__btn {
    display: block;
    width: 100%;
    height: 56px;
    margin: 0;
    padding: 0 16px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #111;
    background: var(--g-gold);
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}
.cflg .cflg__btn:hover { background: var(--g-gold-hi); }
.cflg .cflg__btn:active { transform: translateY(1px); }
.cflg .cflg__btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.cflg .cflg__btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }

/* --- consent --- */
.cflg__consent {
    margin: 22px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--g-muted);
}
.cflg__consent strong { color: var(--g-text); font-weight: 700; }
.cflg .cflg__consent a { color: var(--g-gold-ink); text-decoration: underline; }

/* ---------------------------------------------------------------------
   DISCLAIMER FOOTER (black)
   --------------------------------------------------------------------- */
.cflg__footer {
    width: 100%;
    padding: 32px 20px 36px;
    background: var(--g-bg);
    border-top: 1px solid #1F1F1F;
}
.cflg__footer-inner { max-width: 1264px; margin: 0 auto; }
.cflg__footer p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; color: var(--g-muted); }
.cflg__footer p:last-child { margin-bottom: 0; }
.cflg__footer strong { color: var(--g-text); font-weight: 700; }

@media (max-width: 360px) {
    .cflg .g-recaptcha { transform: scale(0.92); transform-origin: left top; margin-bottom: -6px; }
}

/* ---------------------------------------------------------------------
   DESKTOP – hero fills the screen
   --------------------------------------------------------------------- */
@media (min-width: 1024px) {
    .cflg__hero {
        flex-direction: row;
        align-items: stretch;
        gap: clamp(32px, 3.6vw, 56px);
        max-width: 1440px;
        height: calc(100vh - var(--g-header));
        min-height: 680px;
        margin: 0 auto;
        padding: 0 var(--g-pad);
    }

    .cflg__media {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: clamp(20px, 4vh, 36px) 0 clamp(20px, 4vh, 40px);
    }

    .cflg__logo { flex: 0 0 auto; width: 175px; margin: 0; }

    .cflg__coin {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 12px 0;
    }
    .cflg__video {
        width: 100%;
        max-width: 860px;
        height: 100%;
        object-fit: contain;
        object-position: center;
        -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%);
                mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%);
    }
    .cflg__caption { position: static; flex: 0 0 auto; }

    .cflg__panel {
        flex: 0 0 400px;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
        padding: clamp(16px, 3vh, 40px) 0;
    }
    .cflg .cflg__headline { font-size: clamp(36px, 5.4vh, 48px) !important; }
    .cflg__intro { margin-bottom: clamp(18px, 3.6vh, 36px); }

    .cflg__footer { padding: 32px var(--g-pad) 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .cflg .cflg__btn,
    .cflg .cflg__input { transition: none; }
}