/*
  LaVi Bloom Academy - Contact page layer (scoped to body.lavi-contact).
  Loaded after style.css and lavi-home.css. Sections are appended here one at a time.
*/

/* =====================================================================
   CONTACT BANNER (Kiddino .breadcumb-wrapper, Bloom-pink variant)
   ===================================================================== */
.lavi-contact .lv-contact-banner {
  position: relative;
  padding: 60px 0 52px;
  background: linear-gradient(120deg, #c23872 0%, #b0305f 55%, #98284f 100%);
  overflow: hidden;
}
.lavi-contact .lv-contact-banner .breadcumb-content { position: relative; z-index: 2; max-width: 720px; }
.lavi-contact .lv-contact-banner .breadcumb-title {
  font-size: clamp(40px, 6vw, 70px);
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.1;
}
.lavi-contact .lv-contact-banner .breadcumb-text { font-size: 19px; color: #fff; margin: 0; max-width: 640px; line-height: 1.6; }
.lavi-contact .lv-contact-banner .breadcumb-menu-wrap { margin: 26px 0 0; min-height: 0; }
/* breadcrumb pill: white on the pink band, "Home / Contact" */
.lavi-contact .lv-contact-banner .breadcumb-menu { display: inline-block; border-radius: 50px; padding: 12px 28px; background-color: #fff; }
.lavi-contact .lv-contact-banner .breadcumb-menu li,
.lavi-contact .lv-contact-banner .breadcumb-menu a { color: var(--vs-secondary-color); }
.lavi-contact .lv-contact-banner .breadcumb-menu a:hover { color: var(--theme-color); }
.lavi-contact .lv-contact-banner .breadcumb-menu li:not(:last-child):after { content: "/"; margin-left: 12px; margin-right: 8px; color: var(--theme-color2); }

/* right-hand illustration: transparent cut-out child, anchored bottom-right inside the banner (never over the text) */
.lavi-contact .lv-contact-banner__child {
  position: absolute; z-index: 1; right: max(4%, calc(50% - 620px)); bottom: 0; display: block; line-height: 0; pointer-events: none;
  width: clamp(260px, 38vw, 560px);
}
.lavi-contact .lv-contact-banner__child img { display: block; width: 100%; height: auto; object-fit: contain; }

/* entrance */
.lavi-contact .lv-contact-banner .breadcumb-content > * { animation: lv-con-rise 0.7s ease both; }
.lavi-contact .lv-contact-banner .breadcumb-text { animation-delay: 0.1s; }
.lavi-contact .lv-contact-banner .breadcumb-menu-wrap { animation-delay: 0.2s; }
@keyframes lv-con-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lavi-contact .lv-contact-banner .breadcumb-content > * { animation: none; }
}

@media (max-width: 991px) {
  .lavi-contact .lv-contact-banner { padding: 56px 0 48px; }
  .lavi-contact .lv-contact-banner__child { width: clamp(190px, 30vw, 250px); right: 2%; }
}
@media (max-width: 575px) {
  .lavi-contact .lv-contact-banner { padding: 44px 0 40px; }
  .lavi-contact .lv-contact-banner .breadcumb-text { font-size: 17px; }
  .lavi-contact .lv-contact-banner__child { width: 168px; right: 0; }
}

/* =====================================================================
   SHARED HEADINGS
   ===================================================================== */
.lavi-contact .sec-title { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; margin-top: 0; color: var(--vs-secondary-color); }
.lavi-contact .sec-text { font-size: 18px; line-height: 1.7; max-width: 640px; }
.lavi-contact #enquire { scroll-margin-top: 90px; }
.lavi-contact [hidden] { display: none !important; }

/* =====================================================================
   CONTACT INFORMATION (deep purple / magenta panel, ordered rows with rounded icon discs)
   ===================================================================== */
.lavi-contact .lv-cinfo { background: #fff; overflow: hidden; }
.lavi-contact .lv-cinfo #cinfo-intro .sec-text { max-width: 520px; }
/* when no verified details exist the panel stays hidden and the intro is centred */
.lavi-contact .lv-cinfo.lv-cinfo--solo #cinfo-row { justify-content: center; text-align: center; }
.lavi-contact .lv-cinfo.lv-cinfo--solo #cinfo-intro .sec-text { margin-left: auto; margin-right: auto; }

.lavi-contact .lv-cpanel {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #48165f 0%, #6d2275 55%, #a8316b 100%);
  border-radius: 36px 36px 120px 36px; padding: 44px 44px 40px;
  box-shadow: 0 24px 54px rgba(72, 22, 95, 0.28);
}
.lavi-contact .lv-cpanel::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid rgba(181, 138, 53, 0.3); pointer-events: none;
}
.lavi-contact .lv-cpanel > * { position: relative; z-index: 1; }
.lavi-contact .lv-cpanel__title { color: #fff; font-size: 28px; margin: 0 0 24px; }
.lavi-contact .lv-cpanel__list { margin: 0; padding: 0; display: grid; gap: 0; }
.lavi-contact .lv-crow { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.lavi-contact .lv-crow--first { border-top: 0; padding-top: 4px; }
.lavi-contact .lv-crow__icon {
  flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 22px;
}
.lavi-contact .lv-crow__icon--green { background: #23543b; }
.lavi-contact .lv-crow__body { min-width: 0; }
.lavi-contact .lv-crow__label { display: block; font-family: var(--title-font); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #f4ead3; margin-bottom: 4px; }
.lavi-contact .lv-crow__value { display: block; color: #fff; font-style: normal; font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; text-decoration: none; }
.lavi-contact a.lv-crow__value:hover { color: var(--theme-color2); text-decoration: underline; }
.lavi-contact a.lv-crow__value:focus-visible { outline: 3px solid var(--theme-color2); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 575px) {
  .lavi-contact .lv-cpanel { padding: 30px 22px 26px; border-radius: 28px 28px 70px 28px; }
  .lavi-contact .lv-cpanel__title { font-size: 24px; }
  .lavi-contact .lv-crow { gap: 14px; }
  .lavi-contact .lv-crow__icon { width: 48px; height: 48px; font-size: 19px; }
  .lavi-contact .lv-crow__value { font-size: 17px; }
}

/* =====================================================================
   ENQUIRY FORM (Kiddino form-style3 layout2, white card with side image)
   ===================================================================== */
.lavi-contact .lv-cform { overflow: hidden; }
.lavi-contact .lv-cform__form {
  background: #fff; border: 2px solid #e6d9ee; border-radius: 30px; padding: 36px 36px 30px;
  box-shadow: 0 18px 44px rgba(72, 22, 95, 0.08); margin-bottom: 0;
}
.lavi-contact .lv-cform__form .form-group { margin-bottom: 22px; }
.lavi-contact .lv-cform__form label { font-weight: 500; color: var(--vs-secondary-color); margin-bottom: 6px; display: block; }
.lavi-contact .lv-cform__form .required { font-size: 13px; color: var(--theme-color); font-weight: 400; }
.lavi-contact .lv-cform__form .opt { font-size: 13px; color: #7a6d83; font-weight: 400; }
.lavi-contact .lv-cform__form input[type="text"],
.lavi-contact .lv-cform__form input[type="tel"],
.lavi-contact .lv-cform__form input[type="email"],
.lavi-contact .lv-cform__form select { height: 56px; border-radius: 12px; border: 1px solid #d5c6df; width: 100%; }
.lavi-contact .lv-cform__form select { padding: 0 20px; }
.lavi-contact .lv-cform__form textarea { min-height: 130px; border-radius: 12px; border: 1px solid #d5c6df; padding: 16px 20px; }
.lavi-contact .lv-cform__form input:focus-visible,
.lavi-contact .lv-cform__form select:focus-visible,
.lavi-contact .lv-cform__form textarea:focus-visible { outline: 3px solid var(--theme-color2); outline-offset: 1px; }
.lavi-contact .lv-cform__form .is-invalid { border-color: var(--error-color); }
.lavi-contact .lv-ferr { display: block; margin-top: 6px; color: #b0233b; font-size: 14px; line-height: 1.4; }
.lavi-contact .lv-ferr:empty { display: none; }
/* honeypot, visually and accessibly hidden */
.lavi-contact .lv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* consent checkbox: the template hides native checkboxes, so show the real control again here only */
.lavi-contact .lv-cform__form .lv-cconsent { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 12px; }
.lavi-contact .lv-cform__form .lv-cconsent input[type="checkbox"] {
  display: block; visibility: visible; opacity: 1; position: static; flex: 0 0 22px; width: 22px; height: 22px;
  margin: 3px 0 0; padding: 0; accent-color: var(--theme-color); cursor: pointer;
}
.lavi-contact .lv-cform__form .lv-cconsent input[type="checkbox"] ~ label {
  display: block; flex: 1 1 0; min-width: 0; width: auto; max-width: none; margin: 0; padding-left: 0; position: static;
  font-size: 15px; line-height: 1.5; cursor: pointer; white-space: normal;
}
.lavi-contact .lv-cform__form .lv-cconsent input[type="checkbox"] ~ label::before { content: none; display: none; }
.lavi-contact .lv-cform__form .lv-cconsent .lv-ferr { flex: 0 0 100%; padding-left: 34px; }

.lavi-contact .lv-cstatus { margin: 16px 0 0; font-size: 16px; line-height: 1.5; }
.lavi-contact .lv-cstatus:empty { display: none; }
.lavi-contact .lv-cstatus.is-info,
.lavi-contact .lv-cstatus.is-error,
.lavi-contact .lv-cstatus.is-success { padding: 12px 16px; border-radius: 10px; border-left: 4px solid var(--theme-color2); background: var(--smoke-color); color: var(--vs-secondary-color); }
.lavi-contact .lv-cstatus.is-error { border-left-color: var(--error-color); }
.lavi-contact .lv-cstatus.is-success { border-left-color: #23543b; background: #e4eee8; }

/* side image: arch frame with a gold ring (brand colours instead of the template's yellow-hexagon artwork) */
.lavi-contact .lv-cform__media { position: relative; max-width: 420px; margin: 0 auto; padding: 0 0 26px 26px; }
.lavi-contact .lv-cform__media img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 220px 220px 36px 36px; border: 8px solid #fff; box-shadow: 0 18px 44px rgba(72, 22, 95, 0.16);
}
.lavi-contact .lv-cform__ring {
  position: absolute; left: 0; bottom: 0; width: 170px; height: 170px; border-radius: 50%;
  border: 26px solid rgba(181, 138, 53, 0.4); z-index: 0;
}
@media (max-width: 991px) { .lavi-contact .lv-cform__media { max-width: 340px; } }
@media (max-width: 575px) {
  .lavi-contact .lv-cform__form { padding: 24px 18px 20px; border-radius: 24px; }
  .lavi-contact .lv-cform__form .vs-btn { width: 100%; }
}

/* =====================================================================
   LOCATION MAP (Kiddino map-style1; section stays hidden until a verified map is configured)
   ===================================================================== */
.lavi-contact .lv-cmap { background: #fff; }
.lavi-contact .lv-cmap .map-style1 { border-radius: 40px; box-shadow: 0 16px 40px rgba(72, 22, 95, 0.12); }
.lavi-contact .lv-cmap iframe { display: block; width: 100%; height: 460px; border: 0; }
@media (max-width: 767px) { .lavi-contact .lv-cmap .map-style1 { border-radius: 26px; } .lavi-contact .lv-cmap iframe { height: 360px; } }

/* =====================================================================
   VISUAL-TEST FIXES
   ===================================================================== */
/* form section: when stacked, show the form first and the photo after it (the row is reversed for desktop) */
@media (max-width: 991px) {
  .lavi-contact .lv-cform .row { flex-direction: row; }
  .lavi-contact .lv-cform .row > .col-lg-7 { order: 1; }
  .lavi-contact .lv-cform .row > .col-lg-5 { order: 2; }
}

/* keep the intro text clear of the child illustration on narrower screens */
@media (max-width: 1199px) { .lavi-contact .lv-contact-banner .breadcumb-text { max-width: 440px; } }

/* banner is at least as tall as the (bigger) child illustration, so it is never cropped at the top */
@media (min-width: 768px) { .lavi-contact .lv-contact-banner { min-height: calc(clamp(260px, 38vw, 560px) * 0.68 + 12px); } }

/* phones: hide the banner picture */
@media (max-width: 575px) { .lavi-contact .lv-contact-banner__child { display: none; } }
