/* Influencer Hub landing page: fits the existing form plumbing (intl-tel-input, unobtrusive
   validation, reCAPTCHA, submit spinner) into the v4 design. Loaded after v4.min.css. */

/* fonts used by v4.min.css */
@font-face { font-family: "Inter Tight"; src: url("../fonts/InterTight-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Arabic: Awan Zaman Medium, Arabic-only subset, not preloaded. One file maps every weight so browsers
   don't fake a bold; size-adjust makes it match the English size (tune that value, not per-element sizes). */
@font-face { font-family: "Awan Zaman"; src: url("../fonts/AwanZaman-arabic.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; size-adjust: 120%;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

/* mobile number: intl-tel-input dropdown inside the v4 field */
.ih-form .iti { display: block !important; width: 100%; }
.ih-form .iti input[type=tel] { width: 100%; }
.iti__country-name { color: #000 !important; }
.iti--show-selected-dial-code.iti--show-flags .iti__selected-dial-code { color: #000 !important; font-size: .75rem; }
.iti--allow-dropdown .iti__flag-container,
.iti--show-selected-dial-code .iti__flag-container { right: auto !important; left: 0 !important; }
.iti__country-list { z-index: 20; }
/* phone numbers are left-to-right in both languages: keep the whole picker LTR so in Arabic its
   country dropdown opens over the field (not off the card to the left) with left-aligned rows */
.ih-form .iti, .ih-form .iti__dropdown-content { direction: ltr; text-align: left; }
/* on phones the picker opens a full-screen popup attached to <body>, outside the form */
.iti--container, .iti--container .iti__dropdown-content { direction: ltr; text-align: left; }
/* the plugin flips these gaps whenever the page is RTL ([dir="rtl"] rules, loaded after this file);
   'html' makes these win so the gaps stay on the right */
html .ih-form .iti__flag-box, html .ih-form .iti__country-name,
html .iti--container .iti__flag-box, html .iti--container .iti__country-name { margin-left: 0; margin-right: 8px; }

/* country dropdown: same look as the text fields, caret on the trailing side */
.ih-select { position: relative; }
.ih-form .ih-select select { width: 100%; padding: 0 44px 0 16px; border: 1px solid var(--line, #E9E9E9); appearance: none; -webkit-appearance: none; background: #fff; color: #21234A; font-weight: 500; cursor: pointer; outline: 0; }
.ih-form .ih-select select:focus { border-color: #FF4632; }
.ih-select .icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #21234A; pointer-events: none; }
[dir="rtl"] .ih-form .ih-select select { padding: 0 16px 0 44px; }
[dir="rtl"] .ih-select .icon { right: auto; left: 16px; }
.ih-form-grid [hidden] { display: none !important; }

/* server + client validation messages */
.ih-form .field-validation-error { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; color: #FF4632; }
.ih-form .field-validation-valid { display: none; }
.ih-form input.input-validation-error { border-color: #FF4632; }

/* selected platform chip: white text on the brand red was too low-contrast (3.4:1) to read.
   Blush fill + red border + navy text (about 11:1) keeps the red as the accent. */
body.ih .ih-chip input:checked + span { background: #FFDBDE; border-color: #FF4632; color: #21234A; box-shadow: inset 0 0 0 1px #FF4632; }
body.ih .ih-chip input:checked + span::after { border-color: #FF4632; background: #fff; box-shadow: inset 0 0 0 4px #FF4632; }

/* platform fields: plain text, keep the v4 two-column grid */
.ih-plat_urls .tf-field input { width: 100%; }

/* reCAPTCHA widget in place of the v4 mock checkbox */
.ih-recaptcha { margin-top: 28px; min-height: 78px; }
@media (max-width: 360px) { .ih-recaptcha .g-recaptcha { transform: scale(.88); transform-origin: 0 0; } }
[dir="rtl"] .ih-recaptcha .g-recaptcha { transform-origin: 100% 0; }

/* submit spinner added by showBtnSpinner() */
.ih-submit[disabled] { opacity: .8; pointer-events: none; }
.spinner-border { display: inline-block; width: 1rem; height: 1rem; vertical-align: -.125em; border: .2em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ih-spin .75s linear infinite; }
.spinner-border-sm { width: 1rem; height: 1rem; border-width: .2em; }
.me-1 { margin-inline-end: .25rem; }
@keyframes ih-spin { to { transform: rotate(360deg); } }

/* language links are anchors here (the v4 prototype used buttons) */
a.ih-lang { text-decoration: none; }
