/* ==========================================================================
   WordPress + plugin integration for the We Were Invited theme
   ========================================================================== */

/* Admin bar: keep the sticky header below it */
.admin-bar .site-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .site-header { top: env(safe-area-inset-top, 0px); } }

/* Menu items generated by WordPress */
.nav__list li { list-style: none; }
.nav__list .current-menu-item > a::after,
.nav__list .current_page_parent > a::after,
.nav__list .current-page-ancestor > a::after { transform: scaleX(1); }

/* Pages you create yourself (simple text pages) */
.wwi-entry > * + * { margin-top: 1.05em; }
.wwi-entry img { height: auto; }
.alignwide { max-width: min(1100px, 100%); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: var(--fs-small); color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Pagination on Travel Notes */
.wwi-pagination { margin-top: 40px; }
.wwi-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wwi-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--blue-deep); text-decoration: none; font: 700 14px/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; }
.wwi-pagination .page-numbers.current, .wwi-pagination a.page-numbers:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--paper); }

/* ---------- Flo Forms: inquiry form inside the airmail reply card ---------- */
.wwi-flo .flo-form { max-width: none; margin: 0; }
.wwi-flo .flo-form .form-style1 { display: flex; flex-wrap: wrap; gap: 20px; }
.wwi-flo .flo-form .field-row { display: block; width: 100%; min-height: 0; margin: 0; }
.wwi-flo .flo-form .field-row.width-50 { width: calc(50% - 10px); }
@media (max-width: 640px) { .wwi-flo .flo-form .field-row.width-50 { width: 100%; } }
.wwi-flo .flo-form .field-box { display: grid; gap: 7px; }
.wwi-flo .flo-form .main-label { display: block; margin: 0 0 7px; font: 700 13px/1.2 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-deep); }
.wwi-flo .flo-form input[type="text"], .wwi-flo .flo-form input[type="email"], .wwi-flo .flo-form select, .wwi-flo .flo-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #C5CEDC; border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: 400 16px/1.4 var(--f-body); box-shadow: none;
}
.wwi-flo .flo-form textarea { min-height: 140px; resize: vertical; }
.wwi-flo .flo-form input:focus, .wwi-flo .flo-form select:focus, .wwi-flo .flo-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76, 97, 147, .18); }
/* radio / checkbox choices become pills (same look as the prototype) */
.wwi-flo .flo-form .field-box.radio_button, .wwi-flo .flo-form .field-box.checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
.wwi-flo .flo-form .field-box label.error { width: 100%; }
.wwi-flo .flo-form .the-choice { display: inline-flex; }
.wwi-flo .flo-form label.choice { position: relative; display: inline-flex; margin: 0; }
.wwi-flo .flo-form label.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wwi-flo .flo-form label.choice .choice__text { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; border: 1px solid #C5CEDC; border-radius: 999px; background: var(--white); font-size: 15px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.wwi-flo .flo-form label.choice input:checked + .choice__text { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--paper); }
.wwi-flo .flo-form label.choice input:focus-visible + .choice__text { outline: 2px solid var(--blue); outline-offset: 2px; }
.wwi-flo .flo-form label.error { color: #A4423A; font-size: 14px; border: 0; margin: 4px 0 0; }
.wwi-flo .flo-form input.error, .wwi-flo .flo-form textarea.error { border-color: #A4423A; }
.wwi-flo .flo-form .submit-row { width: 100%; padding-top: 8px; display: flex; align-items: center; gap: 16px; }
.wwi-flo .flo-form .flo-submit-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px; border-radius: 999px;
  border: 1.5px solid var(--blue) !important; background: var(--blue) !important; color: var(--white) !important;
  font: 700 15px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.wwi-flo .flo-form .flo-submit-button:hover { background: var(--blue-deep) !important; border-color: var(--blue-deep) !important; }
.wwi-flo .flo-form .flo-section-break { width: 100%; border: 0; border-top: 1px dashed #B9C4D6; }
.wwi-flo .flo-form .message-field-content { color: var(--muted); }
.wwi-flo .flo-response, .wwi-flo .flo-form .response { width: 100%; }
.wwi-form-fallback { padding: 18px 20px; border-radius: var(--radius); background: var(--airmail); color: var(--blue-deep); }

/* jQuery UI datepicker (Flo Forms date field) */
.ui-datepicker { z-index: 60 !important; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); font: 400 14px/1.4 var(--f-body); }
.ui-datepicker .ui-datepicker-header { background: var(--airmail); border: 0; border-radius: 4px; color: var(--blue-deep); }
.ui-datepicker td a.ui-state-default { border: 0; background: transparent; text-align: center; border-radius: 4px; color: var(--ink); }
.ui-datepicker td a.ui-state-active, .ui-datepicker td a.ui-state-hover { background: var(--blue-deep); color: var(--paper); }

/* Minimal Photo Privacy: its full policy sits inside our privacy page */
.page-privacy .mpp-policy, .page-privacy [class*="mpp-policy"] { margin-top: 1.5em; }
