/* ==========================================================================
   Wonders Kids — Inner pages
   1. Page banner (title + breadcrumb) — reusable on any inner page
   2. Contact page (info cards, form card, map)
   Loaded via $extra_css. Form fields come from auth.css.
   ========================================================================== */

/* 1. PAGE BANNER =========================================================== */
.page-banner {
  position: relative; overflow: hidden; text-align: center;
  background: var(--hero-bg); padding: 90px 0 110px;
}
.page-banner::after { /* white scallop edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 108 22'%3E%3Cpath d='M0 22C14 2 40 0 54 0s40 2 54 22Z' fill='%23fff'/%3E%3C/svg%3E") 0 0 / 108px 22px repeat-x;
}
.page-banner__decor > * { position: absolute; pointer-events: none; }
.page-banner__balloon { width: 56px; top: 40px; left: max(20px, calc(50% - 520px)); animation: float 6s ease-in-out infinite; }
.page-banner__cloud   { width: 150px; top: 26px; right: max(20px, calc(50% - 420px)); animation: float 9s ease-in-out infinite; }
.page-banner__star    { width: 50px; bottom: 60px; left: max(20px, calc(50% - 380px)); animation: float 7s ease-in-out infinite; }
.page-banner__zigzag  { width: 90px; bottom: 56px; right: max(20px, calc(50% - 560px)); }
.page-banner__sun     { width: 64px; top: 90px; right: max(20px, calc(50% - 600px)); animation: spin 20s linear infinite; }
.page-banner__trail   { width: 220px; top: -60px; left: -70px; }
.page-banner__inner { position: relative; z-index: 1; }
.page-banner__title {
  font-size: 56px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 18px;
}
.js .page-banner__title, .js .breadcrumb { opacity: 0; transform: translateY(20px); animation: rise .8s var(--ease) .1s forwards; }
.js .breadcrumb { animation-delay: .25s; }
.breadcrumb {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px;
  padding: 9px 20px; border-radius: 50px; background: #fff; list-style: none; margin: 0;
  box-shadow: 0 10px 30px -14px rgba(22, 20, 57, .25);
  font-family: var(--font-heading); font-weight: 500; font-size: 15px;
}
.breadcrumb li { display: inline-flex; align-items: center; color: var(--primary); }
.breadcrumb li + li::before {
  content: ""; width: 7px; height: 7px; margin: 0 12px 0 8px; border-radius: 50%; background: var(--yellow);
}
.breadcrumb a { color: var(--heading); transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }

/* 2. CONTACT =============================================================== */
.contact { padding-top: 90px; }
.contact__grid { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }

/* info cards */
.contact__info { display: grid; gap: 18px; }
.info-card {
  display: flex; gap: 18px; padding: 24px; border-radius: 20px; background: #fff;
  border: 1px solid #EEEEF4; box-shadow: 0 14px 40px -24px rgba(22, 20, 57, .25);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.info-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 24px 50px -24px rgba(87, 81, 225, .45); }
.info-card__icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  transition: transform .4s var(--ease);
}
.info-card:hover .info-card__icon { transform: rotate(-8deg) scale(1.06); }
.info-card__icon .wk-icon { width: 24px; height: 24px; }
.info-card__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.info-card__title { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.info-card__body p, .info-card__body > a:not(.info-card__link) { font-size: 15.5px; line-height: 1.6; color: var(--body); overflow-wrap: anywhere; }
.info-card__body > a:not(.info-card__link):hover { color: var(--primary); }
.info-card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 14.5px; color: var(--primary);
}
.info-card__link .wk-icon { width: 16px; height: 16px; transition: transform .2s; }
.info-card__link:hover .wk-icon { transform: translateX(4px); }

.social-card {
  position: relative; overflow: hidden; padding: 24px; border-radius: 20px; color: #fff;
  background: var(--grad-brand, var(--primary));
}
.social-card__swirl { position: absolute; right: -40px; top: -20px; width: 220px; color: rgba(255,255,255,.14); }
.social-card__title { position: relative; font-family: var(--font-heading); font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.social-card__list { position: relative; display: flex; gap: 10px; }
.social-card__list a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff; transition: background .25s, color .25s, transform .25s var(--ease);
}
.social-card__list a:hover { background: var(--yellow); color: var(--heading); transform: translateY(-3px); }
.social-card__list .wk-icon { width: 18px; height: 18px; }

/* form card */
.contact-form-card {
  position: relative; padding: 44px 48px; border-radius: 24px; background: #fff;
  box-shadow: 0 30px 80px -30px rgba(22, 20, 57, .28), 0 0 0 1px rgba(22, 20, 57, .04);
}
.contact-form-card__plane { position: absolute; top: -22px; right: 40px; width: 56px; animation: float 6s ease-in-out infinite; }
.contact-form-card .badge { margin-bottom: 14px; }
.contact-form-card__title { font-size: 36px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.contact-form-card__text { font-size: 15.5px; margin-bottom: 28px; }
.req { color: #E5484D; }

.field__input--textarea {
  height: auto; min-height: 150px; padding: 16px 22px; border-radius: 22px; resize: vertical; line-height: 1.6;
  font-family: var(--font-body);
}
.field__input--select { appearance: none; cursor: pointer; padding-right: 46px; }
.field__chev { position: absolute; right: 20px; width: 17px; height: 17px; color: #8D9DB5; pointer-events: none; }
.field__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.field__count { margin: 6px 18px 0 auto; font-size: 12.5px; color: #8D8CA0; white-space: nowrap; }
.field__count.is-near { color: #C98A00; }
.contact-form-card__submit { margin-top: 8px; padding-inline: 38px; }
.contact-form-card .auth-success { padding: 40px 0; }

/* spam honeypot — hidden from people */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* map */
.contact-map { padding-bottom: 110px; }
.contact-map__frame {
  position: relative; border-radius: 28px; overflow: hidden; background: #E9E9F2;
  box-shadow: 0 30px 80px -30px rgba(22, 20, 57, .3);
  border: 8px solid #fff; outline: 2px dashed #D6D6DE; outline-offset: 8px;
}
.contact-map__frame iframe { display: block; width: 100%; height: 480px; border: 0; }
.map-card {
  position: absolute; left: 24px; bottom: 24px; max-width: 470px;
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px;
  background: rgba(255,255,255,.96); box-shadow: 0 20px 40px -16px rgba(22, 20, 57, .35);
}
@supports (backdrop-filter: blur(10px)) {
  .map-card { background: rgba(255,255,255,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.map-card__icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; box-shadow: 0 0 0 6px rgba(87, 81, 225, .15);
}
.map-card__icon .wk-icon { width: 22px; height: 22px; }
.map-card__title { font-family: var(--font-heading); font-weight: 700; color: var(--heading); font-size: 16px; line-height: 1.3; }
.map-card__text { font-size: 13.5px; line-height: 1.45; color: var(--body); }
.map-card__btn { flex-shrink: 0; height: 44px; padding: 0 20px; font-size: 14.5px; }
.map-card__btn .wk-icon { width: 16px; height: 16px; }

/* responsive */
@media (max-width: 1199px) {
  .contact__grid { grid-template-columns: 340px 1fr; gap: 30px; }
  .contact-form-card { padding: 38px 34px; }
}
@media (max-width: 991px) {
  .page-banner { padding: 70px 0 90px; }
  .page-banner__title { font-size: 44px; }
  .page-banner__trail { display: none; }
  .contact { padding-top: 70px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { grid-template-columns: 1fr 1fr; }
  .contact-map__frame iframe { height: 400px; }
}
@media (max-width: 767px) {
  .page-banner__title { font-size: 36px; }
  .page-banner__cloud, .page-banner__star { display: none; }
  .contact__info { grid-template-columns: 1fr; }
  .contact-form-card { padding: 32px 22px; border-radius: 20px; }
  .contact-form-card__title { font-size: 28px; }
  .contact-form-card__submit { width: 100%; }
  .contact-map { padding-bottom: 80px; }
  .contact-map__frame { border-width: 5px; border-radius: 22px; outline-offset: 5px; }
  .contact-map__frame iframe { height: 340px; }
  .map-card { position: static; max-width: none; border-radius: 0; flex-wrap: wrap; box-shadow: none; background: #fff; }
  .map-card__btn { width: 100%; }
}



/* 3. SHARED: empty state + pagination (blog, gallery…) ===================== */
.empty-state {
  max-width: 520px; margin: 10px auto 0; padding: 50px 30px; text-align: center;
  border-radius: 26px; background: #fff; border: 2px dashed #E1E1EA;
}
.empty-state__icon {
  width: 72px; height: 72px; border-radius: 22px; display: inline-grid; place-items: center; margin-bottom: 18px;
}
.empty-state__icon .wk-icon { width: 32px; height: 32px; }
.empty-state h3 { font-size: 22px; margin-bottom: 8px; }
.empty-state p { margin-bottom: 22px; }
.empty-state p:last-child { margin-bottom: 0; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 60px; }
.pagination__btn {
  min-width: 48px; height: 48px; padding: 0 14px; border-radius: 50px; display: inline-grid; place-items: center;
  font-family: var(--font-heading); font-weight: 600; color: var(--heading); background: #fff;
  border: 1px solid #E4E4EE; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.pagination__btn .wk-icon { width: 18px; height: 18px; }
.pagination__btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.pagination__btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 10px 20px -8px rgba(87, 81, 225, .7); }
.pagination__dots { color: #A3A3B5; padding: 0 4px; }