/* ==========================================================================
   Launching Customers Section — Plain Planning
   Block A (CTA) + Block B (Contact Form) + Block C (Footer)
   Mobile-first, responsive
   ========================================================================== */


/* --------------------------------------------------------------------------
   BLOCK A: CTA SECTION
   -------------------------------------------------------------------------- */

/* Subtle background gradient animation */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.lc {
  background: #133b4e;
  padding: 80px 24px;
  text-align: center;
}

.lc__container {
  max-width: 720px;
  margin: 0 auto;
}

/* Eyebrow */
.lc__eyebrow {
  text-transform: uppercase;
  color: #0097b2;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Headline */
.lc__title {
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.15;
  margin-bottom: 24px;
}

/* Body */
.lc__body {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* CTA Row */
.lc__cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CTA Button */
.lc__cta-button {
  display: inline-block;
  background: #0097b2;
  color: #ffffff;
  padding: 18px 48px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  text-align: center;
}

.lc__cta-button:hover {
  background: #00aac9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 151, 178, 0.4);
}

.lc__cta-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0, 151, 178, 0.3);
}

.lc__cta-button:focus-visible {
  outline: 2px solid #0097b2;
  outline-offset: 3px;
}

/* CTA Note */
.lc__cta-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 400;
  margin-top: 12px;
}

/* Badges */
.lc__badges {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.lc__badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.lc__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lc__badge-icon svg {
  width: 20px;
  height: 20px;
  transition: opacity 0.2s ease;
}

.lc__badge:hover {
  color: rgba(255, 255, 255, 0.9);
}

.lc__badge:hover .lc__badge-icon svg {
  opacity: 0.9;
}


/* --------------------------------------------------------------------------
   BLOCK A: Scroll-reveal pre-animation states
   -------------------------------------------------------------------------- */

/* All animatable elements in Block A start hidden */
.lc [data-animate="lc"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Eyebrow: fade-in + slide-up 20px, 600ms, delay 0ms */
.lc .lc__eyebrow[data-animate="lc"] {
  transform: translateY(20px);
  transition-duration: 0.6s;
  transition-delay: 0ms;
}

/* Headline: fade-in + slide-up 25px, 700ms, delay 100ms */
.lc .lc__title[data-animate="lc"] {
  transform: translateY(25px);
  transition-duration: 0.7s;
  transition-delay: 100ms;
}

/* Body: fade-in + slide-up 20px, 600ms, delay 200ms */
.lc .lc__body[data-animate="lc"] {
  transform: translateY(20px);
  transition-duration: 0.6s;
  transition-delay: 200ms;
}

/* CTA Row: fade-in + slide-up 15px + scale from 0.95, 500ms, delay 300ms */
.lc .lc__cta-row[data-animate="lc"] {
  transform: translateY(15px) scale(0.95);
  transition-duration: 0.5s;
  transition-delay: 300ms;
}

/* Badges: fade-in + slide-up 15px, 500ms, delay 500ms */
.lc .lc__badges[data-animate="lc"] {
  transform: translateY(15px);
  transition-duration: 0.5s;
  transition-delay: 500ms;
}

/* Visible state for Block A elements */
.lc [data-animate="lc"].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}


/* --------------------------------------------------------------------------
   CONTACT MODAL OVERLAY
   -------------------------------------------------------------------------- */

/* Full-screen fixed container */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* Initial state: invisible and non-interactive */
  visibility: hidden;
  pointer-events: none;
}

/* When open, become interactive */
.contact-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* Semi-transparent dark backdrop */
.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 42, 56, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
}

/* Modal panel — the white card */
.contact-modal__panel {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 80px rgba(14, 42, 56, 0.25), 0 8px 24px rgba(14, 42, 56, 0.1);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
}

/* Scrollbar styling for the modal panel */
.contact-modal__panel::-webkit-scrollbar {
  width: 6px;
}

.contact-modal__panel::-webkit-scrollbar-track {
  background: transparent;
}

.contact-modal__panel::-webkit-scrollbar-thumb {
  background: rgba(19, 59, 78, 0.15);
  border-radius: 3px;
}

.contact-modal__panel::-webkit-scrollbar-thumb:hover {
  background: rgba(19, 59, 78, 0.25);
}

/* Close button */
.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(19, 59, 78, 0.06);
  color: #133b4e;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-modal__close:hover {
  background: rgba(19, 59, 78, 0.12);
  transform: scale(1.05);
}

.contact-modal__close:active {
  transform: scale(0.95);
}

.contact-modal__close:focus-visible {
  outline: 2px solid #0097b2;
  outline-offset: 2px;
}

.contact-modal__close svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Modal content area */
.contact-modal__content {
  padding: 40px 32px 40px;
}

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

/* --------------------------------------------------------------------------
   BLOCK B: CONTACT FORM (within modal)
   -------------------------------------------------------------------------- */

/* Title */
.lc-form__title {
  color: #133b4e;
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 8px;
}

/* Subtitle */
.lc-form__subtitle {
  color: rgba(19, 59, 78, 0.6);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 40px;
}

/* Form */
.lc-form__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form rows: single column on mobile */
.lc-form__row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Field */
.lc-form__field {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lc-form__field label {
  font-size: 14px;
  font-weight: 500;
  color: #133b4e;
  margin-bottom: 6px;
}

.lc-form__field input,
.lc-form__field select,
.lc-form__field textarea {
  border: 1.5px solid rgba(19, 59, 78, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  color: #133b4e;
  background: #f8fafb;
  width: 100%;
  height: 50px;
  line-height: 1.25;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

/* Custom select arrow */
.lc-form__field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23133b4e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.lc-form__field textarea {
  resize: none;
  min-height: 0;
  /* Match the height of single-line input fields: same padding, single line of text */
  height: 50px;
  overflow: hidden;
}

/* Placeholder */
.lc-form__field input::placeholder,
.lc-form__field textarea::placeholder {
  color: rgba(19, 59, 78, 0.35);
}

/* Default selected option styling for select (acts as placeholder) */
.lc-form__field select:invalid {
  color: rgba(19, 59, 78, 0.35);
}

.lc-form__field select option {
  color: #133b4e;
}

/* Focus state */
.lc-form__field input:focus,
.lc-form__field select:focus,
.lc-form__field textarea:focus {
  border-color: #0097b2;
  box-shadow: 0 0 0 3px rgba(0, 151, 178, 0.1);
  outline: none;
}

/* Error state */
.lc-form__field input.has-error,
.lc-form__field select.has-error,
.lc-form__field textarea.has-error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Submit button */
.lc-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #0097b2;
  color: #ffffff;
  padding: 18px 48px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
}

.lc-form__submit:hover {
  background: #00aac9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 151, 178, 0.4);
}

.lc-form__submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(0, 151, 178, 0.3);
}

.lc-form__submit:focus-visible {
  outline: 2px solid #0097b2;
  outline-offset: 3px;
}

/* Submit text and spinner */
.lc-form__submit-text {
  transition: opacity 0.2s ease;
}

.lc-form__submit-spinner {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Loading state */
.lc-form__submit.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.lc-form__submit.is-loading .lc-form__submit-text {
  opacity: 0;
}

.lc-form__submit.is-loading .lc-form__submit-spinner {
  opacity: 1;
}


/* --------------------------------------------------------------------------
   BLOCK B: Form title/subtitle spacing within modal
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   BLOCK B: Success State
   -------------------------------------------------------------------------- */

.lc-form__success {
  text-align: center;
  padding: 48px 0;
}

.lc-form__success-icon {
  margin-bottom: 24px;
}

.lc-form__success h3 {
  color: #133b4e;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 8px;
}

.lc-form__success p {
  color: rgba(19, 59, 78, 0.7);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* Animated checkmark SVG */
.lc-checkmark {
  display: block;
  margin: 0 auto;
}

.lc-checkmark__circle {
  stroke-dasharray: 189; /* circumference of r=30: 2*PI*30 ~ 188.5 */
  stroke-dashoffset: 189;
  transform-origin: center;
}

.lc-checkmark__check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
}

/* When success is visible, animate the checkmark */
.lc-form__success.is-animating .lc-checkmark__circle {
  animation: checkCircleDraw 0.6s ease-out forwards;
}

.lc-form__success.is-animating .lc-checkmark__check {
  animation: checkMarkDraw 0.4s ease-out 0.6s forwards;
}

.lc-form__success.is-animating .lc-checkmark {
  animation: checkBounce 0.5s ease-out 0.9s forwards;
  transform: scale(0.9);
}

@keyframes checkCircleDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes checkMarkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes checkBounce {
  0%   { transform: scale(0.9); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1.0); }
}

/* Form fade out animation */
.lc-form__form.is-hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s ease 0.1s;
  padding: 0;
  margin: 0;
}

/* Success fade in */
.lc-form__success.is-showing {
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* --------------------------------------------------------------------------
   BLOCK B: Error State
   -------------------------------------------------------------------------- */

.lc-form__error {
  text-align: center;
  padding: 24px;
  margin-top: 20px;
  background: rgba(231, 76, 60, 0.06);
  border: 1px solid rgba(231, 76, 60, 0.15);
  border-radius: 10px;
}

.lc-form__error p {
  color: #c0392b;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.lc-form__error a {
  color: #c0392b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lc-form__error a:hover {
  color: #e74c3c;
}


/* --------------------------------------------------------------------------
   BLOCK C: FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background: #133b4e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 24px;
}

.site-footer__container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__copy {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.site-footer__social svg {
  width: 20px;
  height: 20px;
}

.site-footer__social:hover {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__social:focus-visible {
  outline: 2px solid #0097b2;
  outline-offset: 3px;
  border-radius: 4px;
}


/* --------------------------------------------------------------------------
   RESPONSIVE: Tablet (768px+)
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {

  /* Block A */
  .lc {
    padding: 96px 32px;
  }

  .lc__body {
    font-size: 18px;
  }

  .lc__cta-button {
    width: auto;
  }

  /* Badges: horizontal flex row */
  .lc__badges {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
  }

  /* Modal: larger padding on tablet */
  .contact-modal__content {
    padding: 48px 48px 48px;
  }

  /* Two fields per row */
  .lc-form__row {
    flex-direction: row;
    gap: 20px;
  }

  /* Textarea matches input field height in row layout */
  .lc-form__row .lc-form__field textarea {
    flex: none;
  }

  /* Submit button: auto width on tablet+ */
  .lc-form__submit {
    width: auto;
    min-width: 240px;
  }

  /* Block C: horizontal layout */
  .site-footer__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }
}


/* --------------------------------------------------------------------------
   RESPONSIVE: Desktop (1024px+)
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {

  /* Block A */
  .lc {
    padding: 120px 32px;
  }

  .lc__body {
    font-size: 18px;
  }

  /* Modal: even spacing on desktop */
  .contact-modal {
    padding: 40px;
  }

  .contact-modal__panel {
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
  }
}


/* --------------------------------------------------------------------------
   REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  /* No background gradient animation */
  .lc {
    animation: none;
  }

  /* All scroll reveals: instant appearance */
  .lc [data-animate="lc"] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Modal: no animation, show instantly */
  .contact-modal__panel {
    transition: none !important;
  }

  .contact-modal__backdrop {
    transition: none !important;
  }

  /* No checkmark draw animation — show static checkmark */
  .lc-checkmark__circle {
    stroke-dashoffset: 0;
    animation: none !important;
  }

  .lc-checkmark__check {
    stroke-dashoffset: 0;
    animation: none !important;
  }

  .lc-checkmark {
    transform: scale(1);
    animation: none !important;
  }

  /* Form transitions: reduced to simple opacity changes */
  .lc-form__form.is-hidden {
    transition: opacity 0.15s ease;
  }

  .lc-form__success.is-showing {
    animation-duration: 0.01s;
    animation-delay: 0s;
  }

  /* No button hover lift */
  .lc__cta-button:hover,
  .lc-form__submit:hover {
    transform: none;
  }
}
