/* =========================================================
   PHONE FIELDS: THE COUNTRY / DIAL-CODE PICKER (assets/js/phone-picker.js)
   The plugin ships its own look; these rules make it sit in the site's forms
   - same height and border as .form-control, the green focus ring - and keep
   its list above every modal and floating control.
   ========================================================= */
.iti { width: 100%; }
.input-group.has-iti { flex-wrap: nowrap; }
.input-group.has-iti > .iti { flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group.has-iti > .iti > .form-control { border-radius: var(--radius-sm, 10px) !important; }
.input-group.has-iti > .invalid-feedback { position: absolute; top: 100%; left: 0; }

.iti__selected-country-primary { background: rgba(55, 85, 52, .06); border-radius: var(--radius-sm, 10px) 0 0 var(--radius-sm, 10px); }
.iti__selected-country-primary:hover,
.iti__country-container:focus-within .iti__selected-country-primary { background: rgba(107, 144, 113, .16); }
.iti__selected-dial-code { color: var(--ggs-forest, #375534); font-weight: 600; }
.iti input.is-badnumber { border-color: #c0392b; }

/* The list renders on <body>: above Bootstrap modals (1055) and the fixed
   floating buttons. */
.iti--container { z-index: 2100; }
.iti__dropdown-content {
  z-index: 2100; border: 1px solid var(--ggs-line, rgba(15, 42, 29, .10)); border-radius: 12px; background: #fff;
  box-shadow: 0 18px 44px rgba(15, 42, 29, .22); font-family: 'Inter', system-ui, sans-serif; overflow: hidden;
}
.iti__search-input { padding: 12px 15px; border: 0; border-bottom: 1px solid var(--ggs-line, rgba(15, 42, 29, .10)); font-size: 14px; }
.iti__search-input:focus { outline: 0; }
.iti__country { padding: 9px 14px; font-size: 14px; }
.iti__country.iti__highlight { background: var(--ggs-cream, #E3EED4); }
.iti__dial-code { color: var(--ggs-body, #4a5a51); }
.iti__country-list { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ggs-sage, #6B9071) rgba(107, 144, 113, .18); }
.iti--container:not(.iti--fullscreen-popup) .iti__country-list { max-height: min(320px, 42vh); }
.iti--container:not(.iti--fullscreen-popup) .iti__dropdown-content { min-width: 20rem; }
.iti--fullscreen-popup.iti--container { z-index: 2100; }
.iti--fullscreen-popup .iti__dropdown-content { border-radius: 14px; box-shadow: 0 24px 60px rgba(15, 42, 29, .45); }
.iti--fullscreen-popup .iti__country-list { flex: 1 1 auto; min-height: 0; max-height: none; }
.iti--fullscreen-popup .iti__search-input { flex: none; padding: 15px 18px; font-size: 16px; }

/* Publication Queries modal: the "About: <journal>" line under the title. */
.pq-route { margin: .35rem 0 0; font-size: .82rem; font-weight: 700; color: var(--ggs-mist, #AEC3B0); letter-spacing: .02em; }
.pq-confirm { padding: .75rem .9rem; border-radius: var(--radius-sm, 10px); background: var(--ggs-cream, #E3EED4); font-size: .86rem; }
.pq-confirm .form-check-input { margin-top: .2rem; }

/* Publication Queries modal (journals-publications.php): the site's .ggs-modal
   skin, plus the kicker above the title and the confirmation box. */
.pq-modal .modal-header { align-items: flex-start; }
.pq-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ggs-mist, #AEC3B0); }
.pq-modal .form-label { font-size: .86rem; font-weight: 600; color: var(--ggs-darkest, #0F2A1D); }
.pq-modal .req { color: #c0392b; }
.pq-modal .form-feedback.ok  { background: rgba(107, 144, 113, .16); color: var(--ggs-forest, #375534); }
.pq-modal .form-feedback.err { background: rgba(192, 57, 43, .10); color: #8f2b20; }
.pq-modal .modal-footer { justify-content: space-between; border-top: 1px solid var(--ggs-line, rgba(15, 42, 29, .10)); padding: 14px 28px; font-size: .86rem; }
.pq-modal .is-invalid { border-color: #c0392b; }
