/* ==========================================================================
   ACL — WordPress additions to style.css
   01 Admin bar · 02 Header bits · 03 Contact Form 7 · 04 Phone & country fields · 05 Content fallback
   ========================================================================== */

/* ---------- 01. ADMIN BAR ---------- */
.admin-bar .header{ inset-block-start:32px; }
@media (max-width:782px){ .admin-bar .header{ inset-block-start:46px; } }
@media (max-width:600px){ #wpadminbar{ position:fixed; } }

/* ---------- 02. HEADER ---------- */
a.lang-switch{ text-decoration:none; }

/* ---------- 03. CONTACT FORM 7 ---------- */
/* CF7's own stylesheet is disabled; these are the parts of it the form needs. */
.wpcf7 .screen-reader-response{
  position:absolute; overflow:hidden; clip:rect(1px,1px,1px,1px); clip-path:inset(50%);
  height:1px; width:1px; margin:-1px; padding:0; border:0; word-wrap:normal !important;
}
.wpcf7 .hidden-fields-container, .wpcf7 form .wpcf7-hidden{ display:none; }
.wpcf7-form-control-wrap{ position:relative; display:block; }
.wpcf7-spinner{ display:none; }

/* modal: the scroll area is CF7's wrapper, not the form itself */
.modal__dialog>.wpcf7{
  flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch;
  padding:24px clamp(22px,3.4vw,44px) 32px; scrollbar-width:thin; scrollbar-color:var(--gold) #10214a; scrollbar-gutter:stable;
}
.modal__dialog>.wpcf7::-webkit-scrollbar{ width:7px; }
.modal__dialog>.wpcf7::-webkit-scrollbar-thumb{ background:var(--gold); border-radius:12px; }
.modal__dialog>.wpcf7::-webkit-scrollbar-track{ background:#10214a; }
.modal__dialog>.wpcf7>.rfq-form{ padding:0; overflow:visible; }

/* picker inside the CF7 wrapper */
.wpcf7 .svc-picker{ display:grid; }

/* invalid fields */
.wpcf7 .wpcf7-not-valid{ border-color:#FF6B5A !important; }
.wpcf7-not-valid-tip{ display:block; margin-block-start:7px; font-style:normal; font-size:.8rem; color:#FF9A8B; }
.field--picker .wpcf7-not-valid-tip{ margin-block-start:10px; }

/* submit button: CF7 renders an <input> */
.wpcf7 input.wpcf7-submit{ border:0; cursor:pointer; font-family:var(--font-display); -webkit-appearance:none; appearance:none; }
.wpcf7 input.wpcf7-submit:disabled{ opacity:.6; cursor:progress; }
.wpcf7 form.submitting input.wpcf7-submit{ opacity:.7; cursor:progress; }

/* response box: matches the static site's success / error notes */
.wpcf7 form .wpcf7-response-output{
  margin:14px 0 0; padding:.9em 1.1em; border-radius:12px; text-align:center; font-weight:600; font-size:.92rem;
  background:rgba(255,107,90,.12); border:1px solid rgba(255,107,90,.45); color:#FFB4A8;
}
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output{ display:none; }
.wpcf7 form.sent .wpcf7-response-output{
  background:rgba(212,162,41,.14); border-color:rgba(212,162,41,.4); color:var(--gold-light);
}
.contact__panel--light .wpcf7 form.sent .wpcf7-response-output{ color:var(--gold-deep); }

/* ---------- 04. PHONE & COUNTRY FIELDS ---------- */
/* "Country & Phone Field Contact Form 7" (intl-tel-input + country-select) */
.field .intl-tel-input, .field .country-select{ display:block; width:100%; direction:ltr; }
/* intl-tel-input sizes its own left padding for the dial code; only the country picker needs room for its flag */
.field .intl-tel-input input{ text-align:left; }
.field .country-select input{ padding-left:56px !important; text-align:left; }
html[dir="rtl"] .field .country-select input{ direction:rtl; text-align:right; padding-right:1em !important; }
.intl-tel-input .flag-container, .country-select .flag-dropdown{ z-index:3; }
.intl-tel-input .selected-flag, .country-select .selected-flag{ border-radius:12px 0 0 12px; }
.country-select .selected-flag{ padding-left:12px !important; width:48px !important; }
.intl-tel-input .selected-flag:hover, .intl-tel-input .selected-flag:focus,
.country-select .selected-flag:hover, .country-select .selected-flag:focus{ background:rgba(212,162,41,.14) !important; }
.intl-tel-input .selected-flag .iti-arrow, .country-select .selected-flag .arrow{ border-top-color:var(--gold-light); }
.intl-tel-input .country-list, .country-select .country-list{
  background:#0D1B3C; color:var(--text-light); border:1px solid rgba(212,162,41,.35); border-radius:12px;
  box-shadow:0 24px 50px -20px rgba(0,0,0,.6); max-height:260px; z-index:20; white-space:nowrap;
  width:min(320px,78vw); overflow-x:hidden;
  scrollbar-width:thin; scrollbar-color:var(--gold) #10214a;
}
.intl-tel-input .country-list .country-name, .country-select .country-list .country-name{ overflow:hidden; text-overflow:ellipsis; }
/* Arabic pages: country names are Arabic (see inc/cf7.php), so the list reads right-to-left */
html[dir="rtl"] .intl-tel-input .country-list, html[dir="rtl"] .country-select .country-list{ direction:rtl; text-align:right; }
html[dir="rtl"] .intl-tel-input .country-list .flag-box, html[dir="rtl"] .country-select .country-list .flag{ margin-right:0; margin-left:10px; }
html[dir="rtl"] .intl-tel-input .country-list .dial-code{ direction:ltr; unicode-bidi:isolate; }
.intl-tel-input .country-list .country, .country-select .country-list .country{ padding:8px 12px; }
.intl-tel-input .country-list .country.highlight, .country-select .country-list .country.highlight{ background:rgba(212,162,41,.16); }
.intl-tel-input .country-list .dial-code, .country-select .country-list .dial-code{ color:var(--text-muted); }
.intl-tel-input .country-list .divider, .country-select .country-list .divider{ border-color:rgba(233,238,249,.12); }
.intl-tel-input .selected-dial-code{ color:#fff; }

/* ---------- 05. CONTENT FALLBACK (pages without an ACL template) ---------- */
.page-hero--plain{ min-height:auto; padding-block:clamp(130px,16vw,180px) clamp(50px,6vw,80px); }
.wp-content{ max-width:820px; }
.wp-content img{ max-width:100%; height:auto; border-radius:var(--radius); }
