@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --color-peach: #fca08a;
  --color-brown: #3d1e0f;
  --color-placeholder: #e8a08a;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--color-brown);
  background-color: #c8c2ba;
}

/* ── Full-bleed background image ── */
.background-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #c8c2ba url('/assets/bg.png') center top / cover no-repeat;
}

/* Opacity layer – sits on top of the bg image to fade it */
.background-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #c8c2ba;
  opacity: 0.45;
}

/* ── NO harsh white gradient – very subtle fade so form text is readable ── */
.gradient-overlay {
  position: fixed;
  inset: 0;
  /* gentle transparent-to-white at the very bottom only */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0.25) 75%,
    rgba(255, 255, 255, 0.55) 90%,
    rgba(255, 255, 255, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* ── Main layout ── */
.content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  gap: 60px;
}

/* ── Logo ── */
header {
  padding-top: 0;
}

.logo {
  height: clamp(80px, 15vh, 180px);
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  transition: height 0.3s ease;
}

/* ── Hero area: headline + tagline ── */
.hero-content {
  flex: 1;
  display: flex;
  width: 100%;
  max-width: 900px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Headline – Epilogue Black 96/96 -4.8px */
.headline {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: clamp(32px, 8vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--color-brown);
  margin-bottom: 28px;
  max-width: 900px;
}

.headline .highlight {
  color: var(--color-peach);
  font-style: italic;
}

/* Tagline pill */
.tagline-pill {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 14px 32px;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-brown);
}

/* ── Action area: form + disclaimer ── */
.action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 48px;
}

/* Glass form container */
.glass-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 12px;
  border-radius: 100px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 800px;
}

/* Input fields */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

/* Phone input with country code prefix */
.phone-group {
  position: relative;
}

.country-code {
  position: absolute;
  left: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-brown);
  pointer-events: none;
  z-index: 1;
}

.phone-group input {
  padding-left: 58px !important;
}

.input-icon {
  position: absolute;
  left: 20px;
  color: var(--color-placeholder);
  pointer-events: none;
  opacity: 0.9;
}

.input-group input {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 16px 20px 16px 48px;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-brown);
  width: 240px;
  outline: none;
  transition: all 0.25s ease;
}

.input-group input::placeholder {
  color: var(--color-placeholder);
  font-weight: 500;
}

.input-group input:focus {
  box-shadow: 0 0 0 2px var(--color-peach);
}

/* Submit button */
.submit-button {
  background: var(--color-peach);
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.submit-button:hover {
  background: #e8805c;
}

.submit-button:active {
  transform: scale(0.97);
}

/* Disclaimer */
.disclaimer {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-brown);
  opacity: 0.7;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #fff;
  color: var(--color-brown);
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid #4caf50;
}

.toast.error {
  border-left: 4px solid #f44336;
}

/* ── Responsive ── */

/* Tablets and below */
@media (max-width: 992px) {
  .content-wrapper {
    gap: 48px;
    padding: 32px 20px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .content-wrapper {
    gap: 40px;
    justify-content: flex-start; /* Better for scrolling if content is tall */
    padding-top: 40px;
  }

  .hero-content {
    flex: none;
    width: 100%;
    padding: 0;
  }

  .tagline-pill {
    font-size: 16px;
    padding: 10px 24px;
  }

  .glass-container {
    flex-direction: column;
    border-radius: 24px;
    padding: 16px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.45);
  }

  .input-group, 
  .input-group input, 
  .submit-button {
    width: 100%;
  }

  .submit-button {
    padding: 16px;
  }
}

/* Very Small Screens */
@media (max-width: 380px) {
  .headline {
    letter-spacing: -0.04em;
  }

  .tagline-pill {
    font-size: 14px;
    padding: 8px 16px;
  }

  .glass-container {
    padding: 12px;
  }
}

/* Landscape orientation or very short screens */
@media (max-height: 600px) and (orientation: landscape) {
  .content-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px;
  }

  .logo {
    height: 60px;
  }

  .hero-content {
    width: 50%;
    align-items: flex-start;
    text-align: left;
  }

  .headline {
    text-align: left;
    margin-bottom: 12px;
  }

  .action-area {
    width: 40%;
    padding-bottom: 0;
  }

  .glass-container {
    margin-bottom: 12px;
  }
}

