:root {
  --font-heading: "Marcellus", serif;
  --font-body: "Montserrat", sans-serif;

  --villa-950: #2d4438;
  --villa-900: #3F5E4E;
  --villa-700: #5a7b69;
  --villa-600: #7e9477;
  --villa-300: #a4b494;

  --bg: #f8f9f8;
  --white: #ffffff;
  --text: #2d3a31;

  --shadow: 0 22px 70px rgba(63, 94, 78, 0.12);
  --shadow-soft: 0 12px 30px rgba(63, 94, 78, 0.08);
  --ring: 0 0 0 4px rgba(164, 180, 148, 0.22);

  --grad-primary: linear-gradient(90deg, var(--villa-700) 0%, var(--villa-900) 100%);
  --grad-panel: linear-gradient(135deg, rgba(90, 123, 105, 0.92), rgba(63, 94, 78, 0.92));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

/* ✅ Page must not exceed viewport */
.waves-page {
  padding: 46px 16px;
  /* max-height: 100vh;
  overflow: hidden; */
}

/* ✅ keep width as finalized, but set 40/60 columns */
.waves-shell {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 40% 60%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);

  /* fit inside viewport considering padding (46 top + 46 bottom) */
  /* height: calc(100vh - 92px); */
}

/* LEFT VISUAL */
.waves-visual {
  position: relative;
  height: 100%;
}

/* keep your image path fix */
.waves-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../images/home/815706698.webp") center/cover no-repeat;
  transform: scale(1.02);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.55), rgba(63, 94, 78, 0.35));
  z-index: 1;
}

.visual-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px 34px 34px;
  color: #fff;
}

.visual-eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 10px;
}

.visual-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.05;
  margin: 0 0 12px;
  color: #fff;
}

.visual-sub {
  margin: 0 0 18px;
  max-width: 46ch;
  line-height: 1.7;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
}

.visual-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 12px;
  letter-spacing: 0.6px;
}

/* RIGHT CARD */
.waves-card {
  background: var(--white);
  position: relative;
  overflow-y: auto;
  /* ✅ scroll only right side if needed */
}

/* top gradient line */
.waves-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 6px;
  width: 100%;
  background: var(--grad-primary);
}

.card-head {
  padding: 34px 34px 10px;
  text-align: center;
  /* ✅ for centered logo */
}

/* ✅ logo on right top center */
.card-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px auto;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  justify-content: center;
  text-align: center;
}

.card-mark {
  width: 10px;
  height: 42px;
  border-radius: 999px;
  background: var(--grad-primary);
  margin-top: 6px;
}

.card-eyebrow {
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(30, 43, 56, 0.55);
  margin-bottom: 10px;
}

.card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 400;
  color: var(--text);
}

.card-desc {
  margin: 10px 0 0;
  color: rgba(30, 43, 56, 0.70);
  font-size: 14px;
  line-height: 1.7;
}

.waves-form {
  padding: 18px 34px 34px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  margin-top: 14px;
}

label {
  font-size: 12px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: rgba(30, 43, 56, 0.65);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f7f7;
  padding: 16px 16px;
  border-radius: 12px;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease, transform .15s ease;
}

textarea {
  resize: vertical;
  min-height: 190px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(164, 180, 148, 0.55);
  box-shadow: var(--ring);
  background: #fff;
}

select:disabled {
  color: rgba(30, 43, 56, 0.75);
  background: #f2f2f2;
  cursor: not-allowed;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .75;
  cursor: pointer;
}

input[type="date"]:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
}

.btn-submit {
  margin-top: 20px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 15px 22px;
  border: none;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: var(--shadow-soft);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(17, 122, 132, 0.22);
}

.btn-submit:active {
  transform: translateY(0);
  opacity: .96;
}

.form-foot {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(30, 43, 56, 0.60);
  font-size: 12.5px;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .waves-page {
    max-height: none;
    overflow: visible;
    padding: 20px 12px;
  }

  .waves-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .waves-visual {
    min-height: 360px;
  }

  .waves-card {
    overflow: visible;
  }

  .form-foot {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .card-title {
    font-size: 34px;
  }

  .visual-title {
    font-size: 32px;
  }

  .card-head,
  .waves-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .visual-content {
    padding: 20px;
  }
}

/* ===== REQUIRED STAR ===== */
.req {
  color: #d93025;
  font-weight: 700;
  margin-left: 2px;
}

/* ===== INLINE FIELD ERRORS ===== */
.field-error {
  display: block;
  min-height: 16px;
  font-size: 12px;
  margin-top: 2px;
  color: #d93025;
  letter-spacing: 0.2px;
}

/* highlight invalid fields */
.is-invalid {
  border-color: rgba(217, 48, 37, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.12) !important;
  background: #fff !important;
}

/* ===== SUBMIT STATUS (below button) ===== */
.form-status {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.form-status.success {
  background: rgba(25, 135, 84, 0.08);
  border-color: rgba(25, 135, 84, 0.22);
  color: #146c43;
}

.form-status.error {
  background: rgba(217, 48, 37, 0.08);
  border-color: rgba(217, 48, 37, 0.22);
  color: #b3261e;
}

.form-status.info {
  background: rgba(63, 94, 78, 0.10);
  border-color: rgba(63, 94, 78, 0.22);
  color: #2d4438;
}



.btn-submit:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  pointer-events: none;
  /* 🔥 cannot click even if forced */
}

.btn-submit.is-loading {
  cursor: progress;
}

/* ===== SUCCESS OVERLAY ===== */
.waves-shell.is-hidden {
  display: none !important;
}

.success-overlay {
  display: none;
  width: min(1140px, 100%);
  margin: 0 auto;
  height: calc(100vh - 92px);
  /* waves-page padding 46*2 */
  align-items: center;
  justify-content: center;
}

.success-overlay.show {
  display: flex;
}

.success-card {
  width: min(640px, 92%);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 34px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* top gradient line like waves */
.success-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--grad-primary);
}

.success-icon {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  margin: 10px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 135, 84, 0.10);
  border: 1px solid rgba(25, 135, 84, 0.22);
}

.success-icon i {
  font-size: 42px;
  color: #198754;
  /* ✅ green */
}

.success-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 46px;
  margin: 0 0 10px;
  color: var(--text);
}

.success-text {
  margin: 0 auto 16px;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(30, 43, 56, 0.75);
}

.success-meta {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(30, 43, 56, 0.65);
}

.success-meta i {
  color: var(--villa-900);
  margin-right: 6px;
}

/* subtle entrance animation */
.success-overlay.show .success-card {
  animation: success-pop .45s ease-out;
}

@keyframes success-pop {
  0% {
    transform: translateY(14px) scale(.98);
    opacity: 0;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Mobile */
@media (max-width: 980px) {
  .success-overlay {
    height: auto;
    padding: 20px 0;
  }

  .success-title {
    font-size: 34px;
  }
}