/* ============================================================
   GLOBAL / RESET
   ============================================================ */

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

/* ============================================================
   VARIABLES
   ============================================================ */

:root {
  --secondary: #f98014;
  --primary: #052950;
  --text-muted: #9ea3ad;
  --general-border: 1px solid #d9dfe8;
  --hover-border: 1px solid #5b7191;
  --general-radius: 20px;
  --translate-hover: translateY(-6px);
  --translate-active: translateY(-3px);
  /* only visual props — animating `all` can force layout/paint work;
     each needs its own duration (commas split transitions, and a
     property without a duration falls back to 0s) */
  --general-transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease, text-decoration-color 0.25s ease;
  --general-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  /* soft white glow behind cards/lists; strengthens on hover */
  --white-shadow: 0 0 22px rgba(255, 255, 255, 0.2);
  --white-shadow-hover: 0 0 32px rgba(255, 255, 255, 0.45);
  --flip-duration: 0.65s;
  --badge-fade: 0.3s;
}

/* skip-to-content link: hidden until focused (keyboard users) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;

  &:focus-visible {
    top: 12px;
  }
}

/* visible focus ring for every interactive element (keyboard nav) */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

body {
  margin: 0;
  padding-top: 100px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* ============================================================
   BACKGROUND
   ============================================================ */

/* full-screen background image (replaces the old background video). The
   image is oversized with a slight blur and slowly drifts behind the
   content, so the background feels alive without any video file. */
.bg-image-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  /* fallback while (or if) the image isn't there yet: keep the white
     hero text readable instead of a blank white page */
  background: #052950;

  .bg-image {
    position: absolute;
    /* extra bleed so the drift can travel far without exposing edges */
    inset: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    filter: blur(3px);
    will-change: transform;
    animation: bg-drift 18s ease-in-out infinite alternate;
  }

  .bg-veil {
    position: absolute;
    inset: 0;
    /* white wash: lightens the image slightly so content pops */
    background: rgba(184, 184, 184, 0.15);
  }
}

/* pan + zoom (Ken Burns): the background visibly glides sideways and
   slightly upward while slowly zooming in, then reverses. The bleed
   from inset/width keeps the edges hidden at every point of the drift. */
@keyframes bg-drift {
  from {
    transform: scale(1.05) translate(0, 0);
  }

  to {
    transform: scale(1.1) translate(-6%, -2%);
  }
}

/* ============================================================
   SHARED / UTILITIES
   ============================================================ */

/* a full-width page section */
.page {
  display: flex;
  flex-wrap: wrap-reverse;
  overflow-wrap: anywhere;
  /* uniform 4% breathing room: adjacent sections land ~100–115px apart
     on typical desktop widths (96–128px target) */
  padding: 4%;
  gap: 1%;

  & > * {
    flex: 1;
  }
}

/* section intro text block */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow-wrap: anywhere;
  /* comfortable line lengths for headline + description on wide screens */
  max-width: 640px;
  /* breathing room between kicker, headline, copy and CTAs */
  gap: 18px;
  padding: 2% 1%;

  .number {
    margin: 0;
    font-size: 50px;
    line-height: 1;
    color: var(--secondary);
  }

  .subtitle {
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    font-size: 18px;
  }

  .title {
    font-size: 44px;
    margin: 0;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  }

  .description {
    font-size: medium;
    line-height: 1.6;
    max-width: 60ch;
    color: var(--text-muted);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  }

  button {
    border: none;
    padding: 10px 20px;
    background-color: #f98014;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: larger;
    width: fit-content;
  }

  /* hero call-to-action row: primary (quote form) + secondary (services) */
  .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;

    .cta-arrow {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.25);
      color: #fff;
      font-size: 0.75rem;
      transition: transform 0.3s ease;
    }

    &:hover .cta-arrow {
      transform: rotate(45deg);
    }
  }

  /* ghost/outline secondary CTA (an <a> styled as a button) */
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--general-transition);

    &:hover {
      transform: var(--translate-hover);
      background: rgba(255, 255, 255, 0.16);
      box-shadow: var(--general-shadow);
    }

    &:active {
      opacity: 0.7;
      transform: var(--translate-active);
    }
  }
}

.list {
  display: flex;
  flex-wrap: wrap;

  p {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 2% 2%;

    span:first-of-type {
      color: var(--secondary);
    }

    span:last-of-type {
      color: var(--primary);
    }
  }
}

/* square icon badge */
.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  grid-row: 1 / 3;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 40px;
  background: transparent;

  /* bordered box: brand | pill nav | CTA (stays white over the video) */
  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 8px 10px 8px 20px;
    background: #fff;
    border: 1px solid #111;
    border-radius: 18px;
  }

  .brand {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;

    span {
      font-size: 20px;
      color: #fff;
      background-color: #052950;
      border-radius: 8px;
      padding: 6px 8px;
      margin-right: 5px;
    }
  }

  /* the drawer heading only appears inside the mobile menu panel, and
     the phone button only appears on small screens (next to the toggle) */
  .nav-drawer-title,
  .nav-phone {
    display: none;
  }

  /* light-gray pill holding the nav links */
  .nav-pill {
    display: flex;
    align-items: center;
    padding: 4px;
    background: #f1f3f6;
    border-radius: 999px;

    ul {
      display: flex;
      gap: 2px;
      list-style: none;
      margin: 0;
      padding: 0;

      li a {
        display: block;
        padding: 9px 16px;
        border-radius: 999px;
        text-decoration: none;
        color: #3a3f47;
        font-size: 0.95rem;
        font-weight: 500;
        white-space: nowrap;
        transition: var(--general-transition);

        /* the active link (current section) looks like it's hovering */
        &:hover,
        &.active {
          background: #fff;
          color: #000;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
      }
    }
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* black pill CTA with a white arrow circle */
  .nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    padding: 9px 10px 9px 22px;
    background: #111;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--general-transition);

    &:hover {
      background: #333;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }

    .cta-arrow {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: #fff;
      color: #111;
      font-size: 0.85rem;
      transition: transform 0.3s ease;
    }

    &:hover .cta-arrow {
      transform: rotate(45deg);
    }
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: #052950;
  padding: 15px 40px;

  hr {
    color: #b4c3cf;
    width: 100%;
    margin: 5px 0;
  }

  .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }      h2,
      .brand {
        margin: 0;
        font-size: 18px;
        color: #ffffff;

        span {
          background-color: #f98014;
          border-radius: 18%;
          padding: 8px;
        }
      }


  p {
    color: #b4c3cf;
    font-size: 14px;
  }

  nav {
    ul {
      list-style: none;
      margin: 0;
      padding: 0;

      li {
        a {
          position: relative;
          padding: 5px 5px;
          text-decoration: none;
          display: block;
          color: #b4c3cf;
          font-size: 14px;
          transition: color 0.3s ease;

          /* hover: text brightens and an accent underline sweeps in */
          &::after {
            content: "";
            position: absolute;
            left: 5px;
            right: 5px;
            bottom: 3px;
            height: 2px;
            background: var(--secondary);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.35s ease;
          }

          &:hover {
            color: #fff;

            &::after {
              transform: scaleX(1);
            }
          }
        }

        p {
          color: #b4c3cf;
          font-size: 14px;
        }
      }
    }
  }

  /* top row: the links stack vertically */
  .container:first-of-type {
    nav {
      ul {
        display: flex;
        flex-direction: column;
      }
    }
  }

  /* bottom row: the social links sit side by side */
  .container:last-of-type {
    align-items: center;

    nav {
      ul {
        display: flex;
        flex-direction: row;
        gap: 10px;
      }
    }
  }

  /* social profiles: placeholder chips until real URLs are provided */
  .social-link {
    display: inline-block;
    padding: 5px 12px;
    font-size: 14px;
    color: #8fa1af;
    border: 1px dashed rgba(180, 195, 207, 0.5);
    border-radius: 999px;
    cursor: default;
    text-transform: capitalize;
  }
}

/* ============================================================
   HOME
   ============================================================ */

.home {

  .image {
    border-radius: var(--general-radius);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
      border-radius: inherit;
      max-width: 80%;
      height: auto;
    }
  }
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  .content {
    .list {
      > p {
        flex: 0 0 calc((100% - 10px) / 2);
        span:last-of-type {
          color: #fff;
          text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
        }
      }
    }
  }

  .stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    > div {
      flex: 0 0 calc((100% - 10px) / 2);
    }

    div {
      background-color: #fff;
      border: var(--general-border);
      border-radius: var(--general-radius);
      box-shadow: var(--white-shadow);
      padding: 0 5%;
      display: flex;
      flex-direction: column;
      justify-content: center;

      .stat-value {
        font-size: 2.5rem;
        color: var(--secondary);
      }

      p {
        font-size: 1.1rem;
        color: var(--text-muted);
      }
    }
  }
}

/* card-flip back button: fades in only once the flip (0.65s) has
   finished, so it never pops in mid-turn */
@keyframes badge-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */

.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
  /* side inset aligned with the .page sections for one clear grid */
  padding: 4%;

  .content {
    align-items: center;
    text-align: center; 
  }

  .card-holder {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;

    > div {
      flex: 0 0 calc((100% - 45px) / 4);
    }

    /* flat wrapper: gives the 3D depth and takes the hover lift, while
       the .card inside does the actual 180° rotation. The back arrow
       button also lives here, outside the rotation, so it stays flat
       and hoverable in every state. */
    /* the wrapper sizes the card with min-height, so the card grows
       whenever the back content needs more room (content-driven sizing) */
    .flip-card {
      position: relative;
      display: flex;
      min-height: 600px;
      border-radius: var(--general-radius);
      perspective: 1400px;
      box-shadow: var(--white-shadow);
      transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

      /* the card element itself IS the whole panel — the grid that stacks
         the two faces — and it rotates as one rigid piece: white panel,
         border and faces all turn together. There is no inner wrapper, so
         nothing else could appear to rotate. */
      .card {
        position: relative;
        display: grid;
        flex: 1;
        min-height: inherit;
        width: 100%;
        background: #fff;
        border: var(--general-border);
        border-radius: var(--general-radius);
        transform-style: preserve-3d;
        -webkit-transform-style: preserve-3d;
        transition:
          transform var(--flip-duration) cubic-bezier(0.4, 0, 0.2, 1),
          border-color 0.25s ease;

        /* both faces share the same grid cell */
        .flip-face {
          grid-area: 1 / 1;
          display: flex;
          flex-direction: column;
          backface-visibility: hidden;
          -webkit-backface-visibility: hidden;
        }

        /* front face: image + bottom gradient + always-visible title */
        .flip-front {
            position: relative;
            overflow: hidden;
            border-radius: var(--general-radius);

            img {
              border-radius: var(--general-radius);
              width: 100%;
              flex: 1;
              min-height: 0;
              object-fit: cover;
              transition:
                filter 0.4s ease,
                transform 0.6s ease;
            }

            /* bottom gradient keeps the title readable over any image */
            &::before {
              content: "";
              position: absolute;
              inset: auto 0 0 0;
              height: 45%;
              background: linear-gradient(to top, rgba(5, 41, 80, 0.8), transparent);
              z-index: 1;
              pointer-events: none;
            }

            /* hover veil */
            &::after {
              content: "";
              position: absolute;
              inset: 0;
              background: rgba(5, 41, 80, 0.55);
              opacity: 0;
              transition: opacity 0.4s ease;
            }

            .flip-title {
              position: absolute;
              left: 0;
              right: 0;
              bottom: 18px;
              z-index: 2;
              display: flex;
              align-items: flex-start;
              text-align: left;
              padding: 0 18px;
              pointer-events: none;

              h3 {
                margin: 0;
                color: #fff;
                font-size: 1.25rem;
                line-height: 1.25;
                text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
              }
            }
          }

          /* back face: the original card content */
          .flip-back {
            position: relative;
            transform: rotateY(180deg);
            -webkit-transform: rotateY(180deg);
            padding: 6% 7%;
            overflow-y: auto;
            border-radius: var(--general-radius);

            /* tighter sizing so the back face fits */
            .icon {
              width: 40px;
              height: 40px;
              font-size: 1rem;
            }

            .description {
              display: flex;
              flex-direction: column;

              span {
                color: #eef3f8;
                background: #052950;
              }

              h3 {
                font-size: 18px;
                margin: 10px 0 0;
              }

              p {
                color: #5e636d;
                line-height: 1.45;
                margin: 8px 0 0;
              }
            }

            hr {
              width: 100%;
              margin: 1.2rem 0;
              border: none;
              border-top: 1px solid #d9dfe8;
            }

            .list {
              flex-direction: column;

              p {
                padding: 8px 0;
              }
            }
          }
        }

      /* flip buttons: open (front, bottom-right) / back (bottom-left).
         Base styles live on the flat wrapper so both the front badge
         (inside the rotating card) and the back badge (outside it)
         share them. */
      .flip-badge {
        position: absolute;
        bottom: 14px;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: var(--primary);
        color: #fff;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        transition:
          transform 0.3s ease,
          background 0.25s ease;

        &:hover {
          background: var(--secondary);
          transform: scale(1.08);
        }

        &:focus-visible {
          outline: 3px solid var(--secondary);
          outline-offset: 2px;
        }
      }

      /* the front button sits bottom-right in EVERY state: its position
         must not depend on the flip, or the instant the flip starts it
         would lose its right-anchor and jump to its static position
         (bottom-left) mid-rotation — the desktop-only glitch. */
      .flip-front .flip-badge {
        right: 14px;
      }

      /* the front button fades in only after the card has flipped back
         to the front (mirror of the back button). The :not(.flipped)
         part stops matching while the card is flipped, which restarts
         the animation on every unflip. */
      &:not(.flipped) .flip-front .flip-badge {
        animation: badge-fade-in var(--badge-fade) ease var(--flip-duration) both;
      }

      /* the back button is a flat child of the wrapper (outside the 3D
         rotation), shown only while the card is flipped. opacity: 0 is
         the resting state so the delayed fade-in animation can never
         flash it at full opacity for a frame while it sets up. */
      .flip-back-badge {
        left: 14px;
        display: none;
        opacity: 0;
      }

      /* flipped state: the card itself rotates 180° */
      &.flipped .card {
        transform: rotateY(180deg);
        -webkit-transform: rotateY(180deg);
      }

      /* the back button fades in only after the flip has finished, so
         it never appears mid-turn */
      &.flipped .flip-back-badge {
        display: flex;
        animation: badge-fade-in var(--badge-fade) ease var(--flip-duration) both;
      }

      /* hover on the front face only: gently blur/zoom the image; the
         title stays visible above the bottom gradient */
      &:not(.flipped):hover .flip-front {
        img {
          filter: blur(6px) brightness(0.75);
          transform: scale(1.06);
        }

        &::after {
          opacity: 1;
        }
      }
    }
  }
}

/* ============================================================
   WHY US
   ============================================================ */

.why {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  height: fit-content;
  /* side inset aligned with the .page sections for one clear grid */
  padding: 4%;

  .content {
    align-items: center;
    text-align: center;
  }

  .list {
    flex-direction: row;
    gap: 15px;

    > p {
      flex: 0 0 calc((100% - 45px) / 3);
      background-color: #fff;
      border: 1px solid var(--secondary);
      border-radius: var(--general-radius);
      box-shadow: var(--white-shadow);
      gap: 10px;
    }

    p {
      span:first-of-type {
        /* exact tint of the --secondary accent */
        background-color: rgba(249, 128, 20, 0.15);
      }
    }
  }
}

/* ============================================================
   PROCESS
   ============================================================ */

.process {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
  /* side inset aligned with the .page sections for one clear grid */
  padding: 4%;

  .content {
    align-items: center;
    text-align: center;
  }

  .card-holder {
    display: flex;
    align-items: center stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;

    > div {
      flex: 0 0 calc((100% - 45px) / 4);
    }

    div {
      display: flex;
      flex-direction: row;
      flex: 1 1;
      gap: 20px;

      .card {
        padding: 7% 3%;
        background: #1e3f75;
        border: 1px solid #5b7191;
        border-radius: var(--general-radius);
        box-shadow: var(--white-shadow);
        display: grid;
        grid-template-rows: repeat(3, 0.5fr);

        .number {
          font-weight: bolder;
        }

        .title {
          color: #fff;
        }

        .description {
          color: #999999;
        }
      }

      .arrow {
        align-self: center;
        font-size: 28px;
        color: var(--secondary);
      }
    }
  }
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  /* dark panel closes the section rhythm (white cards → dark blue),
     leading into the matching footer */
  padding: 5% 4%;

  .card-holder {
    flex-direction: column;
    flex: auto 0 calc((100% - 45px) / 3);
    gap: 15px;

    .card {
      display: grid;
      grid-template-columns: 60px 1fr;
      grid-template-rows: auto auto;
      column-gap: 18px;
      padding: 22px;
      border: 1px solid #dfe6ef;
      border-radius: 18px;
      background: #fff;
      box-shadow: var(--white-shadow);

      span {
        background: #eef3f8;
        color: var(--primary);
      }

      h3 {
        text-transform: uppercase;
        font-size: 0.8rem;
        color: #777;
        margin-bottom: 4px;
      }

      p {
        font-size: 1.1rem;
        font-weight: 600;
        color: #052950;
      }

      a {
        font-size: 1.1rem;
        font-weight: 600;
        color: #052950;
        text-decoration: underline;
        text-decoration-color: rgba(5, 41, 80, 0.3);
        text-underline-offset: 4px;
        transition: color 0.3s ease, text-decoration-color 0.3s ease;

        &:hover {
          color: var(--secondary);
          text-decoration-color: var(--secondary);
        }
      }

      /* address card: opens Google Maps built from the real address */
      .map-link {
        grid-column: 2;
        justify-self: start;
        align-self: start;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 12px;
        padding: 8px 14px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--primary);
        text-decoration: none;
        border: 1px solid #dfe6ef;
        border-radius: 999px;
        background: #f4f7fb;
        transition: background 0.3s ease, color 0.3s ease,
          border-color 0.3s ease;

        .icon {
          background: transparent;
          color: inherit;
          font-size: 0.75rem;
        }

        &:hover {
          color: #fff;
          background: var(--secondary);
          border-color: var(--secondary);
        }
      }

      /* embedded map: spans the full card width under the address */
      .map-embed {
        grid-column: 1 / -1;
        width: 100%;
        height: 220px;
        margin-top: 14px;
        border: 1px solid #dfe6ef;
        border-radius: 12px;
        background: #eef3f8;
      }
    }
  }
}

/* ============================================================
   MODAL / POPOUT
   ============================================================ */

.popout {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  padding: 20px;

  /* open state */
  &.active {
    display: flex;
  }

  .form {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    padding: 35px;
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.205);

    .description {
      margin-bottom: 30px;

      h2 {
        font-size: 2rem;
        color: #052950;
        margin-bottom: 8px;
      }

      p {
        color: #777;
      }
    }

    form {
      display: flex;
      flex-direction: column;
      gap: 24px;

      .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
      }

      .input-group {
        display: flex;
        flex-direction: column;
        gap: 10px;

        label {
          font-weight: 600;
          color: #052950;
        }

        span {
          color: #5e636d;
          margin-left: 20px;
          display: none;
        }

        input,
        textarea {
          width: 100%;
          border: 1px solid #d8dee7;
          border-radius: 14px;
          padding: 15px 18px;
          font-size: 1rem;
          outline: none;
          background: #fff;
        }

        textarea {
          resize: vertical;
          min-height: 170px;
        }
        input.right-input,
        textarea.right-input {
          border-color: #007006 !important;
          box-shadow: 0 0 4px 1px rgba(0, 112, 6, 0.35);
        }

        input.wrong-input,
        textarea.wrong-input {
          border: solid 1px rgb(136, 7, 7) !important;
          box-shadow: 0 0 4px 1px rgba(136, 7, 7, 0.35);
        }

        input.missing-input,
        textarea.missing-input {
          border-color: #e0a800 !important;
          box-shadow: 0 0 4px 1px rgba(224, 168, 0, 0.35);
        }

        span.right-result {
          color: #007006 !important;
        }

        span.wrong-result {
          color: #880707 !important;
        }

        span.missing-result {
          color: #b8860b !important;
        }
      }

      .button-group {
        display: flex;
        gap: 15px;
        margin-top: 10px;

        button {
          border: none;
          border-radius: 14px;
          padding: 16px 26px;
          cursor: pointer;
          font-size: 1rem;
          font-weight: 600;
        }

        button[type="submit"] {
          flex: 1;
          background-color: #052950;
          color: #fff;
          display: flex;
          justify-content: center;
          align-items: center;
          gap: 10px;
        }

        button[type="reset"] {
          background: #eef3f8;
          color: #555;
        }
      }

      .form-error {
        margin: 0;
        text-align: center;
        color: #880707;
      }
    }

    /* close button */
    .close {
      position: absolute;
      top: 18px;
      right: 18px;
      border: none;
      background: transparent;
      padding: 0;
      cursor: pointer;

      .icon {
        background: #eef3f8;
        color: var(--primary);
      }
    }

    /* success screen */
    .form-success {
      text-align: center;
      padding: 20px 0;

      span {
        font-size: 3rem;
        color: #007006;
      }

      h3 {
        color: #052950;
        margin: 10px 0 5px;
      }

      p {
        color: #777;
        margin: 0 0 20px;
      }
    }

    .success-close {
      border: none;
      border-radius: 14px;
      padding: 14px 26px;
      background: #eef3f8;
      color: #555;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
    }
  }
}

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

/* utility: hide any element */
.hidden {
  display: none !important;
}
