/* ============================================================
   WHITE WAVE – Bleaching Experts  |  style.css
   Primary: #259BC8  |  Accent: #C8956C (copper/gold "WAVE")
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #259BC8;
  color: #fff;
  min-height: 100vh;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 560px;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 60px 0 48px;
}

.logo-main {
  width: 240px;
  max-width: 80%;
  margin-bottom: 44px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.18));
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 28px;
  letter-spacing: .01em;
}

.hero-title--bold {
  font-weight: 700;
}

.hero-desc {
  font-size: clamp(.85rem, 1.5vw, 1rem);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto 40px;
  opacity: .92;
}

.cta-text {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 400;
}

.cta-bracket {
  font-weight: 700;
  font-size: 1.15em;
  letter-spacing: .04em;
}

.arrow-down {
  margin: 8px auto 0;
  animation: bounce 2s infinite;
  width: 36px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── FORM SECTION ────────────────────────────────────────── */
.form-section {
  padding: 8px 0 64px;
}

.ww-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Field group (floating label + underline) ── */
.field-group {
  position: relative;
  margin-bottom: 28px;
}

.field-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
  font-size: 1rem;
  padding: 22px 0 8px;
  outline: none;
  transition: border-color .25s;
  caret-color: #fff;
}

/* remove browser autofill yellow */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 1000px #259BC8 inset;
  transition: background-color 9999s ease-in-out;
}

.field-label {
  position: absolute;
  top: 18px;
  left: 0;
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  pointer-events: none;
  transition: top .2s, font-size .2s, color .2s;
}

/* float label when focused OR has content */
.field-input:focus ~ .field-label,
.field-input:not(:placeholder-shown) ~ .field-label {
  top: 2px;
  font-size: .72rem;
  color: rgba(255,255,255,.55);
}

.field-input:focus {
  border-bottom-color: #fff;
}

/* animated bottom line on focus */
.field-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width .3s ease;
}

.field-input:focus ~ .field-label ~ .field-line,
.field-input:focus + .field-label + .field-line {
  width: 100%;
}

/* target sibling correctly */
.field-input:focus ~ .field-line {
  width: 100%;
}

/* ── Consent checkbox ── */
.consent-group {
  margin: 16px 0 32px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(255,255,255,.9);
}

.consent-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255,255,255,.7);
  background: transparent;
  display: inline-block;
  margin-top: 2px;
  position: relative;
  transition: background .2s;
}

.consent-checkbox:checked + .consent-box {
  background: rgba(255,255,255,.25);
}

.consent-checkbox:checked + .consent-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ── Submit button ── */
.btn-submit {
  width: 100%;
  padding: 18px 0;
  background: #fff;
  color: #259BC8;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
}

.btn-submit:hover {
  background: rgba(255,255,255,.9);
}

.btn-submit:active {
  transform: scale(.99);
}

.btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ── Form message ── */
.form-message {
  display: none;
  padding: 14px 20px;
  border-radius: 3px;
  margin-bottom: 24px;
  font-size: .95rem;
  font-weight: 500;
}

.form-message.success {
  display: block;
  background: green;
  border: 1px solid green;
}

.form-message.error {
  display: block;
  background: red;
  border: 1px solid red;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 32px 0 56px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.footer-label {
  font-size: .7rem;
  letter-spacing: .12em;
  opacity: .65;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.logo-footer {
  width: 180px;
  max-width: 70%;
  opacity: .9;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.15));
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero {
    padding: 40px 0 32px;
  }

  .logo-main {
    width: 180px;
    margin-bottom: 32px;
  }

  .hero-title {
    font-size: 1rem;
  }

  .cta-text {
    font-size: 1rem;
  }

  .btn-submit {
    font-size: 1rem;
    padding: 16px 0;
  }
}

/* ── No-JS warning ──────────────────────────────────────────── */
.noscript-warning {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(200,80,60,.35);
  border: 1px solid rgba(255,150,130,.5);
  font-size: .9rem;
  line-height: 1.5;
  text-align: center;
}
