.hth-f3-form{box-sizing:border-box;width:100%;max-width:720px;margin-inline:auto;background:#101010;border:1px solid #ac8d47;border-radius:16px;padding:clamp(18px,4vw,32px);color:#fff;font-family:Almarai,sans-serif;direction:rtl}.hth-f3-form *{box-sizing:border-box}.hth-f3-title{font-size:1.35rem;margin:0 0 12px;color:#e3c987}.hth-f3-description,.hth-f3-policy{color:#d8d8d8;font-size:.88rem;line-height:1.8}.hth-f3-field{margin:0 0 17px}.hth-f3-field>label{display:block;margin-bottom:7px;font-weight:600;color:#f9f9f9}.hth-f3-field input:not([type=checkbox]),.hth-f3-field select,.hth-f3-field textarea{min-width:0;max-width:100%;width:100%;background:#1d1d1d;border:1px solid #776e5b;border-radius:8px;padding:12px 10px;color:#fff;font-size:1rem;height:auto;line-height:1.5}.hth-f3-field option{color:#111;background:#fff}.hth-f3-field input:focus-visible,.hth-f3-field select:focus-visible,.hth-f3-field textarea:focus-visible{outline:2px solid #e3c987;outline-offset:1px}.hth-f3-field small{display:block;color:#c8c8c8;margin-top:6px;font-size:.78rem}.hth-f3-field .hth-f3-phone{display:flex;gap:8px;align-items:stretch}.hth-f3-field .hth-f3-phone .hth-f3-dial{width:42%;flex:none;font-size:.85rem}.hth-f3-field .hth-f3-phone input{flex:1;width:auto}.hth-f3-star{color:#e3c987}.hth-f3-check{display:flex;align-items:flex-start;gap:8px;line-height:1.5}.hth-f3-check input{width:auto;margin-top:4px}.hth-f3-submit{display:block;width:100%;border-radius:9px;border:1px solid #d5bb79;background:#c9a65b;color:#101010;padding:13px 15px;font-weight:700;cursor:pointer}.hth-f3-submit:disabled{opacity:.55;cursor:progress}.hth-f3-feedback{min-height:1.5em;color:#e5bd77}.hth-f3-feedback[data-state=success]{color:#94d59e}.hth-f3-feedback[data-state=error]{color:#ffc2b8}.hth-f3-trap{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(100%)}@media(max-width:480px){.hth-f3-field .hth-f3-phone{flex-wrap:wrap}.hth-f3-field .hth-f3-phone .hth-f3-dial{width:100%}.hth-f3-field .hth-f3-phone input{width:100%}}

/* F3 visual international dial picker; real bundled country flag sprite. */
.hth-f3-dial-native-hidden{display:none!important}
.hth-f3-field .hth-f3-phone .hth-f3-dial-picker{position:relative;width:42%;flex:none;min-width:0}
.hth-f3-dial-toggle{width:100%;height:100%;min-height:46px;display:flex;align-items:center;justify-content:center;gap:7px;background:#1d1d1d;border:1px solid #776e5b;border-radius:8px;padding:5px;color:#fff;cursor:pointer;direction:ltr}
.hth-f3-flag{display:inline-block;flex:none;width:36px;height:27px;background-image:url('flags-sprite.png');background-repeat:no-repeat;background-size:648px 378px;border-radius:3px;vertical-align:middle}
.hth-f3-dial-current{font-size:.91rem;font-weight:700;direction:ltr}
.hth-f3-dial-caret{color:#e3c987;font-size:1.1rem}
.hth-f3-dial-panel{position:absolute;top:calc(100% + 5px);left:0;z-index:10000;width:min(320px,85vw);border:1px solid #b89a55;border-radius:9px;background:#161616;box-shadow:0 10px 30px #000a;padding:9px;direction:rtl}
.hth-f3-dial-panel[hidden]{display:none!important}
.hth-f3-field .hth-f3-dial-search{display:block;width:100%;min-height:37px;height:37px;margin-bottom:7px;background:#242424;color:#fff;font-size:.85rem}
.hth-f3-dial-list{max-height:248px;overflow-y:auto;overscroll-behavior:contain}
.hth-f3-dial-item{display:flex;align-items:center;gap:9px;width:100%;text-align:right;border:0;border-radius:5px;background:transparent;color:#fff;padding:6px;cursor:pointer;font-family:inherit}
.hth-f3-dial-item:hover,.hth-f3-dial-item:focus-visible,.hth-f3-dial-item[aria-selected=true]{background:#3e3524;outline:0}
.hth-f3-dial-item[hidden]{display:none!important}
.hth-f3-dial-item-name{flex:1;font-size:.81rem}
.hth-f3-dial-item-code{font-size:.8rem;color:#e3c987;direction:ltr}
@media(max-width:480px){.hth-f3-field .hth-f3-phone .hth-f3-dial-picker{width:100%}.hth-f3-dial-toggle{justify-content:flex-start}}

/* Form locale is independent of wp-admin direction. */
.hth-f3-form[dir="rtl"]{direction:rtl!important;text-align:right!important}
.hth-f3-form[dir="ltr"]{direction:ltr!important;text-align:left!important}
.hth-f3-form[dir="rtl"] .hth-f3-field>label,.hth-f3-form[dir="rtl"] .hth-f3-title,.hth-f3-form[dir="rtl"] .hth-f3-description,.hth-f3-form[dir="rtl"] .hth-f3-policy,.hth-f3-form[dir="rtl"] .hth-f3-field small{text-align:right}
.hth-f3-form[dir="ltr"] .hth-f3-field>label,.hth-f3-form[dir="ltr"] .hth-f3-title,.hth-f3-form[dir="ltr"] .hth-f3-description,.hth-f3-form[dir="ltr"] .hth-f3-policy,.hth-f3-form[dir="ltr"] .hth-f3-field small{text-align:left}
.hth-f3-form input[type="email"],.hth-f3-form input[type="tel"]{direction:ltr!important;text-align:left!important;unicode-bidi:plaintext}
.hth-f3-preview-area[dir="rtl"] .hth-f3-form{margin-right:0;margin-left:auto}
.hth-f3-preview-area[dir="ltr"] .hth-f3-form{margin-left:0;margin-right:auto}

/* F3 submit: isolate its palette from WooCommerce/OceanWP/HTH general button rules. */
body .hth-f3-form button.hth-f3-submit,
body .hth-f3-form input.hth-f3-submit[type="submit"] {
  appearance:none!important;
  -webkit-appearance:none!important;
  background:#c9a65b!important;
  background-image:none!important;
  border:1px solid #d5bb79!important;
  color:#101010!important;
  box-shadow:none!important;
  text-shadow:none!important;
  border-radius:9px!important;
  font-family:Almarai,sans-serif!important;
  font-weight:700!important;
}
body .hth-f3-form button.hth-f3-submit:hover,
body .hth-f3-form button.hth-f3-submit:focus-visible {background:#deb966!important;color:#101010!important;border-color:#e9c87b!important;}
body .hth-f3-form button.hth-f3-submit:disabled {background:#c9a65b!important;color:#101010!important;opacity:.55!important;cursor:progress!important;}

/* F3 complete: do not let themed button display rules override the hidden attribute.
   Scope strictly to HTH Forms, preserving admin and other site buttons. */
body .hth-f3-form button.hth-f3-submit[hidden],
body .hth-f3-form input.hth-f3-submit[hidden],
body .hth-f3-form .hth-f3-field[hidden],
body .hth-f3-form .hth-f3-policy[hidden] { display:none!important; }
