/* ============ GLOBAL ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #232628;
  background: #ffffff;
  /* WHITE BG */
  scroll-behavior: smooth;
}

.page {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.bg-animation {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-animation::before,
.bg-animation::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.75;
}

.bg-animation::before {
  width: 340px;
  height: 340px;
  top: -80px;
  right: -40px;
  background: rgba(1, 36, 27, 0.15);
}

.bg-animation::after {
  width: 260px;
  height: 260px;
  bottom: -60px;
  left: -40px;
  background: rgba(1, 36, 27, 0.1);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #ffffff;
  overflow: hidden;
  background: url("assets/img/cover.webp") center center / cover no-repeat;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      rgba(1, 36, 27, 0.80),
      rgba(1, 36, 27, 0.95));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
  width: 100%;
}

/* Breadcrumb */
.breadcrumb nav {
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: #01241b;
}

/* Hero text */
.hero-content {
  max-width: 620px;
}

/* 
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(1, 36, 27, 0.40);
  margin-bottom: 14px;
}

.hero-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffffff;
} */

.hero h1 {
  margin: 0 0 25px;
  font-size: 2.5rem;
  line-height: 1.15;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
}

.hero p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* ============ FORM SECTION ============ */
.form-section {
  padding: 40px 16px 60px;
  display: flex;
  justify-content: center;
}

.form-card {
  position: relative;
  max-width: 960px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 32px 32px 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(209, 224, 218, 0.9);
  backdrop-filter: blur(10px);
}

/* subtle top accent bar */
.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 999px;
  background: #01241b;
}

/* header */
.form-card-header {
  margin-bottom: 22px;
}

.form-card-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 600;
  color: #102620;
}

.form-card-header p {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: #4a5550;
}

/* Form layout */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

.form-group {
  position: relative;
}

.field-label {
  font-size: 0.86rem;
  color: #4c5552;
  margin-bottom: 6px;
  display: inline-block;
}

/* Floating labels */
.floating input {
  width: 100%;
  padding: 16px 14px;
  font-size: 0.96rem;
  border-radius: 12px;
  border: 1px solid #cfd8dc;
  background: #fdfefe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating input:focus {
  border-color: #01241b;
  box-shadow: 0 0 0 3px rgba(1, 36, 27, 0.15);
  outline: none;
  background: #ffffff;
}

.floating label {
  position: absolute;
  left: 16px;
  top: 15px;
  font-size: 0.88rem;
  color: #7b8380;
  background: #ffffff;
  padding: 0 5px;
  pointer-events: none;
  transform-origin: left top;
  transition: all 0.18s ease;
}

.floating input:focus+label,
.floating input:not(:placeholder-shown)+label {
  top: -7px;
  left: 12px;
  font-size: 0.74rem;
  color: #01241b;
}

/* Phone input (intl-tel-input) */
.iti {
  width: 100%;
}

.iti input {
  width: 100%;
  padding: 14px 14px 14px 60px;
  border-radius: 12px;
  border: 1px solid #cfd8dc;
  font-size: 0.96rem;
  background: #fdfefe;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.iti input:focus {
  border-color: #01241b;
  box-shadow: 0 0 0 3px rgba(1, 36, 27, 0.15);
  outline: none;
}

/* Actions */
.form-actions {
  margin-top: 6px;
}

button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-image: linear-gradient(to right,
      #01241b,
      #013428,
      #01241b);
  color: white;
  border: none;
  padding: 14px 34px;
  font-size: 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(1, 36, 27, 0.35);
  filter: brightness(1.03);
}

/* Messages */
.form-message {
  margin-top: 6px;
  min-height: 24px;
}

.msg-success {
  color: #01241b;
  font-size: 0.9rem;
}

.msg-error {
  color: #b91c1c;
  font-size: 0.9rem;
}

/* ============ LOADING OVERLAY ============ */
#loadingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 20, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(7px);
}

.loading-inner {
  text-align: center;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
}

.spinner {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: #01241b;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 14px;
  box-shadow: 0 0 12px rgba(1, 36, 27, 0.4);
}

.loading-inner p {
  margin: 0;
  font-size: 0.98rem;
}

/* Spinner animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ FOOTER ============ */
.footer {
  margin-top: 10px;
}

/* ============ RESPONSIVE ============ */
@media screen and (max-width: 768px) {
  .hero {
    height: 280px;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .form-card {
    padding: 22px 18px 24px;
    border-radius: 18px;
  }

  .form-card::before {
    left: 16px;
    right: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  button[type="submit"] {
    width: 100%;
  }
}

@media screen and (min-width: 1024px) {
  .form-card {
    padding: 34px 40px 32px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }
}