/* ══════════════════════════════════════════════
   Footer / Demo Request Section
   ══════════════════════════════════════════════ */

footer {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 120%;
  transform: rotate(180deg);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

/* Dark overlay to darken the green background image */
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg,
      var(--color-bg) 0%,
      rgba(0, 0, 0, 0.85) 25%,
      rgba(10, 30, 20, 0.7) 60%,
      var(--color-bg) 100%);
  pointer-events: none;
}

/* ── Main Content Grid ── */
.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4em;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10em 2em 4em 2em;
}

/* ═══════════════════════
   Left Column: Info
   ═══════════════════════ */
.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.8em;
}

.footer-info .callout {
  margin-bottom: 0;
}

.footer-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 60px);
  color: var(--color-text);
  line-height: 110%;
  letter-spacing: -1.5px;
  margin: 0;
}

.footer-desc {
  font-size: 14px !important;
  line-height: 180%;
  color: rgba(255, 255, 255, 0.5) !important;
  max-width: 420px;
}

/* ── Benefits List ── */
.footer-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  padding: 0;
  margin: 0.5em 0 0 0;
}

.footer-benefits li {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.footer-benefits li span {
  font-size: 14px !important;
  font-weight: 500;
  color: var(--color-text) !important;
}

.benefit-icon {
  font-size: 20px;
  color: var(--color-primary-light);
  flex-shrink: 0;
}

/* ── Social Icons ── */
.footer-socials {
  display: flex;
  gap: 0.7em;
  margin-top: 1em;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.3s ease;
}

.social-icon:hover {
  background: rgba(26, 88, 65, 0.2);
  border-color: rgba(45, 138, 95, 0.35);
  transform: translateY(-2px);
}

.social-icon ion-icon {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.social-icon:hover ion-icon {
  color: var(--color-primary-light);
}

/* ═══════════════════════
   Right Column: Form
   ═══════════════════════ */
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

/* ── Form Group ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Two-column row ── */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}

/* ── Inputs, Select, Textarea ── */
input,
textarea,
select {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text);
  padding: 1em 1.2em;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(45, 138, 95, 0.5);
  box-shadow: 0 0 0 3px rgba(26, 88, 65, 0.15);
}

/* ── Custom Select ── */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1em 1.2em;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.custom-select.open .custom-select-trigger {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(45, 138, 95, 0.5);
  box-shadow: 0 0 0 3px rgba(26, 88, 65, 0.15);
  border-radius: 10px 10px 0 0;
}

.custom-select-value {
  font-size: 14px !important;
}

.custom-select-value.placeholder {
  color: rgba(255, 255, 255, 0.25) !important;
}

.custom-select-arrow {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--color-primary-light);
}

/* Dropdown panel */
.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-bg-secondary);
  border: 1px solid rgba(45, 138, 95, 0.25);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.custom-select.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 0.85em 1.2em;
  font-family: var(--font-primary);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgba(26, 88, 65, 0.15);
  color: #fff;
  padding-left: 1.5em;
}

.custom-select-option.selected {
  background: rgba(26, 88, 65, 0.2);
  color: var(--color-primary-light);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Submit Button ── */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  width: 100%;
  padding: 1.1em 2em;
  margin-top: 0.5em;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: var(--color-primary);
  border: 1px solid rgba(45, 138, 95, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.4s ease, border-color 0.4s ease,
    box-shadow 0.4s ease, transform 0.3s ease, gap 0.3s ease;
}

.submit-btn span {
  font-size: inherit !important;
  font-weight: inherit;
  letter-spacing: inherit;
}

.submit-btn ion-icon {
  font-size: 16px;
  color: #fff;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  background: var(--color-primary-light);
  border-color: rgba(45, 138, 95, 0.5);
  box-shadow: 0 4px 30px rgba(26, 88, 65, 0.35),
    0 0 60px rgba(26, 88, 65, 0.1);
  transform: translateY(-2px);
  gap: 1em;
}

.submit-btn:hover ion-icon {
  transform: translateX(3px);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 15px rgba(26, 88, 65, 0.25);
}

/* ── Privacy Text ── */
.form-privacy {
  text-align: center;
  font-size: 11px !important;
  line-height: 160%;
  color: rgba(255, 255, 255, 0.3) !important;
  margin-top: 0.3em;
}

/* ═══════════════════════
   Copyright
   ═══════════════════════ */
.footer-copyright {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em 2em 3em 2em;
  display: flex;
  justify-content: space-between;
}

.footer-copyright p {
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════
   Responsive
   ═══════════════════════ */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3em;
    padding: 8em 1.5em 3em 1.5em;
  }

  .footer-info {
    text-align: center;
    align-items: center;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-benefits {
    align-items: flex-start;
    text-align: left;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-copyright {
    padding: 2em 1.5em 10em 1.5em;
  }
}

@media (max-width: 600px) {
  .footer-content {
    padding: 6em 1em 2em 1em;
    gap: 2.5em;
  }

  .footer-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 1.2em;
  }

  .footer-copyright {
    padding: 1.5em 1em 8em 1em;
  }
}