/* ===========================================================
   TiCi Technologies — Lead Capture Popup Modal
   Theme: Dark Navy + Purple
   Version: Modern 2026 UI

   Existing JS classes preserved:
   .is-open
   .has-error
   .is-error
   .is-success
   :disabled

   Used by:
   - Get a Quote
   - Request a Free Consultation
=========================================================== */

/* ===========================================================
   OVERLAY
=========================================================== */

.lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(155, 108, 255, 0.14),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 85%,
      rgba(104, 75, 210, 0.1),
      transparent 32%
    ),
    rgba(5, 4, 22, 0.82);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  opacity: 0;

  transition: opacity 0.3s ease;
}

.lead-modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

/* ===========================================================
   MODAL CONTAINER
=========================================================== */

.lead-modal {
  position: relative;

  width: 100%;
  max-width: 680px;
  max-height: 90vh;

  overflow-y: auto;

  padding: 40px;

  border: 1px solid rgba(155, 108, 255, 0.15);

  border-radius: 24px;

  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(155, 108, 255, 0.08),
      transparent 30%
    ),
    linear-gradient(145deg, #12102b 0%, #0a081d 100%);

  color: #fff;

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(155, 108, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  transform: translateY(20px) scale(0.98);

  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  scrollbar-width: thin;
  scrollbar-color: rgba(155, 108, 255, 0.35) transparent;
}

.lead-modal-overlay.is-open .lead-modal {
  transform: translateY(0) scale(1);
}

/* ===========================================================
   TOP PURPLE ACCENT LINE
=========================================================== */

.lead-modal::before {
  content: "";

  position: absolute;

  top: 0;
  left: 12%;
  right: 12%;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    #8356e8,
    #b88cff,
    #9b6cff,
    transparent
  );

  box-shadow: 0 0 20px rgba(155, 108, 255, 0.55);
}

/* ===========================================================
   CLOSE BUTTON
=========================================================== */

.lead-modal-close {
  position: absolute;

  top: 18px;
  right: 18px;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.045);

  color: rgba(255, 255, 255, 0.65);

  font-size: 15px;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.3s ease;
}

.lead-modal-close:hover {
  color: #fff;

  background: rgba(155, 108, 255, 0.13);

  border-color: rgba(155, 108, 255, 0.45);

  transform: rotate(90deg);
}

/* ===========================================================
   HEADING
=========================================================== */

.lead-modal h3 {
  margin: 0 55px 10px 0;

  padding-right: 0;

  font-family: "Jost", sans-serif;

  font-size: clamp(28px, 4vw, 38px);

  font-weight: 600;

  line-height: 1.15;

  letter-spacing: -0.8px;

  color: #fff;
}

/* ===========================================================
   HEADING PURPLE ACCENT
=========================================================== */

.lead-modal h3::after {
  content: "";

  display: block;

  width: 42px;
  height: 3px;

  margin-top: 14px;

  border-radius: 20px;

  background: linear-gradient(90deg, #8356e8, #b88cff);

  box-shadow: 0 0 12px rgba(155, 108, 255, 0.35);
}

/* ===========================================================
   DESCRIPTION
=========================================================== */

.lead-modal p.lead-modal-sub {
  max-width: 540px;

  margin: 0 0 28px;

  color: rgba(224, 220, 240, 0.65);

  font-family: "Open Sans", sans-serif;

  font-size: 14px;

  line-height: 1.75;
}

/* ===========================================================
   FORM
=========================================================== */

.lead-modal .form-row {
  margin-bottom: 17px;
}

.lead-modal .form-row.two-col {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;
}

/* ===========================================================
   LABEL
=========================================================== */

.lead-modal label {
display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.84);
    font-family: "Jost", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.lead-modal label .req {
  color: #b88cff;
}

/* ===========================================================
   INPUT / SELECT / TEXTAREA
=========================================================== */

.lead-modal input[type="text"],
.lead-modal input[type="email"],
.lead-modal input[type="tel"],
.lead-modal select,
.lead-modal textarea {
      width: 100%;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    height: 48px;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* ===========================================================
   PLACEHOLDER
=========================================================== */

.lead-modal input::placeholder,
.lead-modal textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

/* ===========================================================
   SELECT
=========================================================== */

.lead-modal select {
  appearance: none;
  -webkit-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.55) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 50%, transparent 50%);

  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;

  padding-right: 40px;
}

/* ===========================================================
   INPUT FOCUS
=========================================================== */

.lead-modal input:focus,
.lead-modal select:focus,
.lead-modal textarea:focus {
  outline: none;

  background: rgba(155, 108, 255, 0.045);

  box-shadow:
    0 0 0 3px rgba(155, 108, 255, 0.09),
    0 8px 25px rgba(155, 108, 255, 0.06);
}

/* ===========================================================
   TEXTAREA
=========================================================== */

.lead-modal textarea {
  resize: vertical;

  min-height: 110px;

  line-height: 1.6;
}

/* ===========================================================
   FIELD ERROR
=========================================================== */

.lead-modal .field-error {
  color: #ff8d98;

  font-size: 12px;

  margin-top: 6px;

  display: none;

  line-height: 1.4;
}

/* Error field */

.lead-modal .form-row.has-error input,
.lead-modal .form-row.has-error select,
.lead-modal .form-row.has-error textarea {
  border-color: rgba(255, 91, 105, 0.75);

  background: rgba(255, 70, 85, 0.035);

  box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.05);
}

/* Show error */

.lead-modal .form-row.has-error .field-error {
  display: block;
}

/* ===========================================================
   ALERT
=========================================================== */

.lead-modal-alert {
  display: none;

  padding: 12px 15px;

  border-radius: 11px;

  font-size: 13px;

  line-height: 1.5;

  margin-bottom: 18px;
}

/* Error alert */

.lead-modal-alert.is-error {
  display: block;

  background: rgba(255, 70, 85, 0.08);

  border: 1px solid rgba(255, 70, 85, 0.2);

  color: #ff9da6;
}

/* Success alert */

.lead-modal-alert.is-success {
  display: block;

  background: rgba(155, 108, 255, 0.08);

  border: 1px solid rgba(155, 108, 255, 0.2);

  color: #cdb9ff;
}

/* ===========================================================
   SUBMIT BUTTON
=========================================================== */

.lead-modal-submit {
  position: relative;

  width: 100%;

  min-height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  margin-top: 5px;

  border: none;

  border-radius: 12px;

  background: linear-gradient(100deg, #8356e8 0%, #9b6cff 50%, #b88cff 100%);

  color: #fff;

  font-family: "Jost", sans-serif;

  font-size: 15px;

  font-weight: 600;

  letter-spacing: 0.2px;

  cursor: pointer;

  overflow: hidden;

  box-shadow: 0 12px 30px rgba(155, 108, 255, 0.25);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

/* ===========================================================
   BUTTON SHINE
=========================================================== */

.lead-modal-submit::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 75%
  );

  transform: translateX(-120%);

  transition: transform 0.65s ease;
}

.lead-modal-submit:hover::before {
  transform: translateX(120%);
}

/* Button hover */

.lead-modal-submit:hover {
  transform: translateY(-2px);

  box-shadow: 0 16px 40px rgba(155, 108, 255, 0.38);
}

/* Button active */

.lead-modal-submit:active {
  transform: translateY(0);
}

/* Button disabled */

.lead-modal-submit:disabled {
  opacity: 0.55;

  cursor: not-allowed;

  transform: none;

  box-shadow: none;
}

/* Arrow */

.lead-modal-submit i {
  font-size: 13px;

  transition: transform 0.25s ease;
}

.lead-modal-submit:hover i {
  transform: translateX(4px);
}

/* ===========================================================
   SUCCESS STATE
=========================================================== */

.lead-modal-success-state {
  text-align: center;

  padding: 35px 10px 20px;
}

/* Success icon */

.lead-modal-success-state i {
  width: 76px;
  height: 76px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin: 0 auto 22px;

  border: 1px solid rgba(155, 108, 255, 0.3);

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(155, 108, 255, 0.18),
    rgba(155, 108, 255, 0.02)
  );

  color: #b88cff;

  font-size: 34px;

  box-shadow: 0 0 50px rgba(155, 108, 255, 0.14);
}

/* Success heading */

.lead-modal-success-state h3 {
  margin-right: 0;

  padding-right: 0;

  color: #fff;
}

/* Success paragraph */

.lead-modal-success-state p.lead-modal-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ===========================================================
   MODAL SCROLLBAR
=========================================================== */

.lead-modal::-webkit-scrollbar {
  width: 5px;
}

.lead-modal::-webkit-scrollbar-track {
  background: transparent;
}

.lead-modal::-webkit-scrollbar-thumb {
  background: rgba(155, 108, 255, 0.3);

  border-radius: 10px;
}

.lead-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(155, 108, 255, 0.5);
}

/* ===========================================================
   MOBILE — 575px
=========================================================== */

@media (max-width: 575px) {
  .lead-modal-overlay {
    padding: 0;

    align-items: flex-end;
  }

  .lead-modal {
    width: 100%;

    max-width: 100%;

    max-height: 94vh;

    padding: 30px 20px 22px;

    border-radius: 22px 22px 0 0;

    transform: translateY(30px);
  }

  .lead-modal-overlay.is-open .lead-modal {
    transform: translateY(0);
  }

  /* Close */

  .lead-modal-close {
    top: 14px;

    right: 14px;

    width: 38px;

    height: 38px;
  }

  /* Heading */

  .lead-modal h3 {
    margin-right: 45px;

    font-size: 28px;
  }

  /* Description */

  .lead-modal p.lead-modal-sub {
    font-size: 13px;

    line-height: 1.65;

    margin-bottom: 23px;
  }

  /* Two columns become one */

  .lead-modal .form-row.two-col {
    grid-template-columns: 1fr;

    gap: 0;
  }

  .lead-modal .form-row {
    margin-bottom: 15px;
  }

  /* Inputs */

  .lead-modal input[type="text"],
  .lead-modal input[type="email"],
  .lead-modal input[type="tel"],
  .lead-modal select {
    min-height: 48px;

    padding: 12px 14px;
  }

  /* Textarea */

  .lead-modal textarea {
    min-height: 105px;
  }

  /* Submit */

  .lead-modal-submit {
    min-height: 52px;
  }

  /* Success */

  .lead-modal-success-state {
    padding: 30px 5px 15px;
  }
}

/* ===========================================================
   SMALL MOBILE — 380px
=========================================================== */

@media (max-width: 380px) {
  .lead-modal {
    padding: 27px 16px 18px;

    border-radius: 20px 20px 0 0;
  }

  .lead-modal h3 {
    font-size: 25px;
  }

  .lead-modal-close {
    width: 35px;

    height: 35px;

    font-size: 14px;
  }

  .lead-modal p.lead-modal-sub {
    font-size: 12.5px;
  }

  .lead-modal label {
    font-size: 12px;
  }

  .lead-modal input[type="text"],
  .lead-modal input[type="email"],
  .lead-modal input[type="tel"],
  .lead-modal select,
  .lead-modal textarea {
    font-size: 13px;
  }
}
