/*
Theme Name: ESI Indonesia
Theme URI: https://rombak.media/esi
Author: Rombak
Author URI: https://rombak.media
Description: Custom theme for ESI Indonesia — Energy Savings Insurance. Bilingual (EN/ID). Visual style mirrors GoSafe ESI Europe.
Version: 2.0.0
License: Private
Text Domain: esi-indonesia
*/

/* ============================================================
   BRAND TOKENS — CSS Custom Properties
   ============================================================ */

:root {
  /* Colors */
  --color-blue:        #008BD2;
  --color-blue-deep:   #005681;
  --color-teal:        #2AA79B;
  --color-teal-deep:   #1F8F86;
  --color-lime:        #A6C63A;
  --color-lime-dark:   #6A7D0A;
  --color-gold:        #F3B71A;
  --color-black:       #000000;
  --color-graphite:    #333333;
  --color-grey-cool:   #BDBDBD;
  --color-grey-light:  #F2F2F2;
  --color-grey-mid:    #EBEBEB;
  --color-white:       #FFFFFF;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Roboto Condensed', sans-serif;

  /* Spacing scale (8px base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  16px;
  --space-4:  24px;
  --space-5:  32px;
  --space-6:  48px;
  --space-7:  64px;
  --space-8:  80px;
  --space-9:  96px;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 40px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-med:  300ms ease;
  --transition-slow: 500ms ease;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-nav:  0 2px 16px rgba(0, 0, 0, 0.10);

  /* Border radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.25;
  color: var(--color-graphite);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
}

h1 { font-weight: 700; }
h2, h3, h4, h5, h6 { font-weight: 400; }

p {
  margin: 0;
}

button {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  border: none;
  background: none;
  padding: 0;
}

/* ============================================================
   TYPOGRAPHY UTILITY CLASSES (matching GoSafe structure)
   ============================================================ */

.headlines {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 700;
  font-size: 50px;
  line-height: 1;
}

.headlines--big {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 700;
  font-size: 84px;
  line-height: 1.1;
}

.highlights {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
}

.highlights--bold {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
}

.text {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}

.text--bold {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

/* Color modifiers */
.text--white  { color: var(--color-white); }
.text--teal   { color: var(--color-teal); }
.text--lime   { color: var(--color-lime); }
.text--grey   { color: #666666; }

/* Background modifiers */
.bg--grey-light { background-color: var(--color-grey-light); }
.bg--teal       { background-color: var(--color-teal); }
.bg--white      { background-color: var(--color-white); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container--wide {
  max-width: 1400px;
}

.flex {
  display: flex;
}

/* ============================================================
   CTA / BUTTON STYLES (matching GoSafe .cta class)
   ============================================================ */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  border-radius: 15px;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  background-color: var(--color-teal);
  color: var(--color-white);
  border: 2px solid var(--color-teal);
}

.cta:hover {
  background-color: var(--color-teal-deep);
  border-color: var(--color-teal-deep);
  color: var(--color-white);
}

.cta--white {
  background-color: #2AA79B;
  color: #FFFFFF;
  border-color: #2AA79B;
}

.cta--white:hover {
  background-color: var(--color-grey-light);
  border-color: var(--color-grey-light);
  color: var(--color-teal-deep);
}

.cta--outline {
  background-color: var(--color-white);
  color: var(--color-teal);
  border-color: var(--color-teal);
}

.cta--outline:hover {
  background-color: var(--color-teal);
  color: var(--color-white);
}

/* Small CTA — used inside document cards on the Downloads page */
.cta--sm {
  font-size: 14px;
  padding: 8px 20px;
  border-radius: var(--radius-md);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-3);
  background: var(--color-teal);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-3);
}

*:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
}

/* ============================================================
   MOBILE BREAKPOINTS
   ============================================================ */

@media (max-width: 990px) {
  :root {
    --container-pad: 24px;
  }
}

@media (max-width: 578px) {
  :root {
    --container-pad: 20px;
  }

  .headlines        { font-size: 36px; }
  .headlines--big   { font-size: 60px; }
  .highlights       { font-size: 20px; }
  .highlights--bold { font-size: 20px; }
  .text             { font-size: 15px; }
  .text--bold       { font-size: 15px; }
}

/* ============================================================
   HOME — PARTNERS SECTION
   ============================================================ */

.home-partners {
  padding-top: var(--space-9); /* 96px — breathing room above */
}

/* ============================================================
   HOME — WHO IS IT FOR SECTION
   ============================================================ */

.home-why {
  position: relative;
  overflow: hidden;
  padding-bottom: var(--space-9); /* 96px — keeps decor from touching next section */
}

.home-why__decor {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 340px;   /* fixed size — does not stretch to container */
  height: auto;
  pointer-events: none;
}

/* ============================================================
   CONTACT PAGE — HERO
   ============================================================ */

.contact-hero {
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--color-grey-mid);
}

.contact-hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grey-cool);
  margin-bottom: var(--space-2);
}

.contact-hero__title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.contact-hero__intro {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-graphite);
  max-width: 560px;
}

/* ============================================================
   CONTACT PAGE — DETAILS SECTION
   ============================================================ */

.contact-section {
  padding: var(--space-7) 0;
}

.contact-section__heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-graphite);
  margin-bottom: var(--space-6);
}

/* Two-column grid: details left, map right */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: start;
}

/* Contact items list */
.contact-details__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Each row: icon box + text */
.contact-details__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

/* Grey rounded icon box */
.contact-details__icon-box {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-grey-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-graphite);
}

/* Text content beside icon box */
.contact-details__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px; /* align text baseline with icon center */
}

/* Caps label above value (EMAIL, ADDRESS, SOCIAL & WEB) */
.contact-details__label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grey-cool);
}

/* Actual value text */
.contact-details__value {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-graphite);
  font-style: normal; /* override browser default on <address> */
}

/* Clickable email link */
.contact-details__value--link {
  color: var(--color-teal);
  text-decoration: underline;
}
.contact-details__value--link:hover {
  color: var(--color-teal-deep);
}

/* Placeholder values (pending from BASE) */
.contact-details__value--placeholder {
  color: var(--color-grey-cool);
}

/* "(Pending from BASE)" note */
.contact-details__note {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-grey-cool);
  font-style: italic;
}

/* Social / web pill buttons */
.contact-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.contact-social__btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1.5px solid var(--color-teal);
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-teal);
  text-decoration: none;
  line-height: 1.4;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.contact-social__btn:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

/* Placeholder state — URL not yet set (points to #) */
.contact-social__btn[aria-disabled="true"] {
  border-color: var(--color-grey-cool);
  color: var(--color-grey-cool);
  cursor: not-allowed;
}
.contact-social__btn[aria-disabled="true"]:hover {
  background: transparent;
  color: var(--color-grey-cool);
}

/* ============================================================
   CONTACT PAGE — MAP PLACEHOLDER
   ============================================================ */

.contact-map__placeholder {
  width: 100%;
  height: 340px;
  background: var(--color-grey-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4);
}

.contact-map__placeholder-text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grey-cool);
  line-height: 1.8;
}

.contact-map__placeholder-sub {
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* ============================================================
   CONTACT PAGE — PARTNERS SECTION
   ============================================================ */

.contact-partners {
  background-image: url('/wp-content/themes/esi-indonesia/assets/images/partners-bg-3.png');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: var(--space-8) 0 420px;
  text-align: center;
}

.contact-partners::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.contact-partners .container {
  position: relative;
  z-index: 1;
}

.contact-partners__eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2);
}

.contact-partners__heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-7);
}

/* Three logo items in a row */
.contact-partners__logos {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

/* Individual logo item */
.partner-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: 180px;
}

/* Logo container box — grey bg until real logo is loaded */
.partner-logo-item__img-wrap {
  width: 160px;
  height: 90px;
  background: var(--color-grey-mid);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Actual logo image, fills the box */
.partner-logo-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-3);
}

/* Role / organisation name below logo */
.partner-logo-item__role {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  color: #ffffff;
  text-align: center;
}

/* Attribution text at bottom of partners section */
.contact-partners__attribution {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
}

/* ============================================================
   CONTACT PAGE — RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .contact-hero__title {
    font-size: 36px;
  }

  /* Stack contact details and map vertically on mobile */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  /* Shorter map placeholder on mobile */
  .contact-map__placeholder {
    height: 220px;
  }

  .contact-partners__logos {
    gap: var(--space-4);
  }

  .partner-logo-item {
    max-width: 140px;
  }

  .partner-logo-item__img-wrap {
    width: 130px;
    height: 75px;
  }
}

/* ============================================================
   CONTACT PAGE — GRAVITY FORMS NOTICE
   Shown when GF is not yet installed
   ============================================================ */

.contact-form__notice {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-grey-cool);
  font-style: italic;
  padding: var(--space-4) 0;
}

/* ============================================================
   DOWNLOADS GATE MODAL
   Fixed overlay with blurred backdrop. Appears on first visit.
   ============================================================ */

/* Prevent body scroll while modal is open */
body.dlgate-open {
  overflow: hidden;
}

/* Full-screen backdrop.
   Hidden by default — the modal is now opened on demand when a visitor
   clicks a "Download" button (see page-downloads.php), not on page load. */
.dlgate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Shown when JS adds .is-open after a Download click */
.dlgate-overlay.is-open {
  display: flex;
  animation: dlgate-in 0.25s ease;
}

.dlgate-overlay--closing {
  animation: dlgate-out 0.22s ease forwards;
}

@keyframes dlgate-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes dlgate-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* The dark card — asymmetric corners matching the Figma spec (TL:110 TR:32 BR:110 BL:32) */
.dlgate-modal {
  background: #2D2D2D;
  border-radius: 110px 32px 110px 32px;
  display: flex;
  max-width: 620px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}

/* Close × button — top-right corner of the whole card */
.dlgate-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color var(--transition-fast);
  z-index: 1;
}

.dlgate-modal__close:hover {
  color: #ffffff;
}

/* ── Left panel ── */
.dlgate-modal__left {
  flex: 0 0 260px;
  padding: 44px 20px 36px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dlgate-modal__headline {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;   /* Regular */
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
}

/* ── Logo mark: two overlapping wing shapes ── */
.dlgate-modal__mark {
  position: relative;
  width: 100px;
  height: 124px;
  margin-top: var(--space-4);
}

.dlgate-mark-img {
  position: absolute;
  width: 68px;
  height: auto;
}

.dlgate-mark-img--outline {
  left: 0;
  top: 0;
  z-index: 0;
}

.dlgate-mark-img--fill {
  left: 28px;
  top: 20px;
  z-index: 1;
}

/* ── Right panel ── */
.dlgate-modal__right {
  flex: 1;
  padding: 44px 36px 36px 20px;
}

/* ── Form fields ── */
.dlgate-field {
  margin-bottom: 10px;
}

.dlgate-input {
  display: block;
  width: 100%;
  background: #ffffff;
  border: none;
  border-radius: 999px;   /* pill shape */
  padding: 11px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-graphite);
  outline: none;
  transition: box-shadow var(--transition-fast);
}

.dlgate-input:focus {
  box-shadow: 0 0 0 2px rgba(42, 167, 155, 0.6);
}

.dlgate-input::placeholder {
  color: #aaaaaa;
}

/* ── Privacy checkbox — circular ── */
.dlgate-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 2px;
  cursor: pointer;
}

.dlgate-privacy__check {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.dlgate-privacy__check:checked {
  background: var(--color-teal);
  border-color: var(--color-teal);
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3l2 2 4-4' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px;
}

.dlgate-privacy__check:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.dlgate-privacy__text {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.5;
}

.dlgate-privacy__text a {
  color: rgba(255, 255, 255, 0.80);
  text-decoration: underline;
}

.dlgate-required-note {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 16px;
}

/* ── Submit button — white outline, pill-shaped, auto-width ── */
.dlgate-submit {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 10px 28px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.dlgate-submit:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.dlgate-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .dlgate-modal {
    flex-direction: column;
    border-radius: 32px 16px 32px 16px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .dlgate-modal__left {
    flex: none;
    padding: 36px 28px 24px 32px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-4);
  }

  .dlgate-modal__headline {
    font-size: 17px;
    flex: 1;
  }

  .dlgate-modal__mark {
    width: 64px;
    height: 80px;
    margin-top: 0;
    flex-shrink: 0;
  }

  .dlgate-mark-img {
    width: 44px;
  }

  .dlgate-mark-img--fill {
    left: 18px;
    top: 13px;
  }

  .dlgate-modal__right {
    padding: 0 28px 36px 28px;
  }
}

/* ============================================================
   GRAVITY FORMS — DOWNLOADS GATE MODAL OVERRIDES
   Scoped to .dlgate-modal__right so the Contact page form
   is unaffected. Maps GF's markup to the existing dlgate design.
   ============================================================ */

/* ── Step 1: Override GF Orbital theme CSS custom properties ──
   The Orbital theme reads these vars for all its styling.
   Setting them here wins before any cascade fight. */
.dlgate-modal__right .gform_wrapper {
  --gf-input-bg:                 #ffffff;
  --gf-input-color:              #333333;
  --gf-input-border-color:       transparent;
  --gf-input-border-width:       0px;
  --gf-input-border-style:       solid;
  --gf-input-border-radius:      999px;
  --gf-input-padding:            11px 18px;
  --gf-input-font-size:          14px;
  --gf-input-height:             auto;
  --gf-input-placeholder-color:  #aaaaaa;
  --gf-input-placeholder-opacity: 1;
  --gf-color-primary:            #2aaaa0;
  --gf-field-label-color:        transparent; /* hides labels via their own var */
  --gf-field-description-color:  transparent;
  --gf-checkbox-size:            16px;
  --gf-checkbox-border-radius:   50%;
  --gf-checkbox-border-color:    rgba(255,255,255,0.45);
  --gf-checkbox-bg:              transparent;
  --gf-checkbox-checked-bg:      #2aaaa0;
  --gf-checkbox-checked-border-color: #2aaaa0;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Step 2: Structural resets ──
   Kill GF Orbital's grid row-gap (the main cause of the tall gaps)
   and tighten field spacing to the compact mockup look. */
.dlgate-modal__right .gform_wrapper > form { margin: 0 !important; padding: 0 !important; }
.dlgate-modal__right .gform_body          { padding: 0 !important; }
.dlgate-modal__right .gform_fields        {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;     /* override GF's CSS grid */
  grid-row-gap: 0 !important;
  row-gap: 0 !important;
  gap: 0 !important;
}
.dlgate-modal__right .gfield              { margin: 0 0 8px !important; padding: 0 !important; }
.dlgate-modal__right .ginput_container    { margin: 0 !important; }

/* ── Step 3: Hide field labels — placeholders carry the info ── */
.dlgate-modal__right .gfield_label          { display: none !important; }
.dlgate-modal__right .gfield_required       { display: none !important; }
.dlgate-modal__right .gform_required_legend { display: none !important; }

/* ── Step 4: Text / email / tel inputs — broad selectors catch all GF layouts ── */
.dlgate-modal__right input[type="text"],
.dlgate-modal__right input[type="email"],
.dlgate-modal__right input[type="tel"] {
  width: 100% !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 8px 18px !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #333333 !important;
  outline: none !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  transition: box-shadow var(--transition-fast) !important;
}
.dlgate-modal__right input[type="text"]:focus,
.dlgate-modal__right input[type="email"]:focus,
.dlgate-modal__right input[type="tel"]:focus {
  box-shadow: 0 0 0 2px rgba(42,167,155,0.6) !important;
}
.dlgate-modal__right input[type="text"]::placeholder,
.dlgate-modal__right input[type="email"]::placeholder,
.dlgate-modal__right input[type="tel"]::placeholder {
  color: #aaaaaa !important;
  opacity: 1 !important;
}

/* ── Step 5: Consent checkbox ── */
.dlgate-modal__right .gfield--type-consent .ginput_container_consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin-top: 4px !important;
}
.dlgate-modal__right .gfield--type-consent input[type="checkbox"],
.dlgate-modal__right input[type="checkbox"] {
  flex-shrink: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin: 2px 0 0 !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255,255,255,0.45) !important;
  background: transparent !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.dlgate-modal__right .gfield--type-consent input[type="checkbox"]:checked,
.dlgate-modal__right input[type="checkbox"]:checked {
  background-color: #2aaaa0 !important;
  border-color: #2aaaa0 !important;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3l2 2 4-4' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 9px !important;
}
.dlgate-modal__right .gfield--type-consent label {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  color: rgba(255,255,255,0.80) !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  margin: 0 !important;
}
.dlgate-modal__right .gfield--type-consent label a {
  color: rgba(255,255,255,0.80) !important;
  text-decoration: underline !important;
}

/* ── Step 6: Validation messages ── */
/* Hide the error-summary box at the top (all GF versions) */
.dlgate-modal__right .gform_submission_error,
.dlgate-modal__right .gform_validation_errors,
.dlgate-modal__right .validation_error,
.dlgate-modal__right h2.gform_submission_error { display: none !important; }

.dlgate-modal__right .gfield_validation_message,
.dlgate-modal__right .validation_message {
  color: #ff9999 !important;
  font-size: 11px !important;
  margin: 3px 0 0 14px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
}

/* ── Step 7: Footer / submit row ── */
.dlgate-modal__right .gform_footer,
.dlgate-modal__right .gform_page_footer {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;   /* note stacks above the button */
  align-items: flex-start !important;
}

/* "* Required fields" note above the ACCESS button (matches mockup) */
.dlgate-modal__right .gform_footer::before {
  content: "* Required fields";
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}

/* ── Step 8: Submit button — white outline pill ── */
.dlgate-modal__right .gform_button,
.dlgate-modal__right input.gform_button[type="submit"],
.dlgate-modal__right button[type="submit"] {
  display: inline-block !important;
  background: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255,255,255,0.75) !important;
  border-radius: 999px !important;
  padding: 10px 28px !important;
  font-family: var(--font-heading) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.dlgate-modal__right .gform_button:hover,
.dlgate-modal__right input.gform_button[type="submit"]:hover,
.dlgate-modal__right button[type="submit"]:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: #ffffff !important;
}

/* Hide GF's ajax spinner */
.dlgate-modal__right .gform_ajax_spinner { display: none !important; }

/* Confirmation message after submit */
.dlgate-modal__right .gform_confirmation_wrapper {
  color: rgba(255,255,255,0.90) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}


/* ============================================================
   WHATSAPP FLOATING BUTTON
   Fixed bottom-right on every page.
   ============================================================ */

.esi-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esi-whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.esi-whatsapp-btn img {
  width: 30px;
  height: 30px;
  display: block;
}
