:root {
  --purple-dark: #3a1742;
  --purple-deep: #2b1030;
  --pink: #e0409c;
  --pink-soft: #f4a6cf;
  --orange: #f2895c;
  --cream: #f6efdd;
  --cream-2: #f0e6cd;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(58, 23, 66, 0.15);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--purple-deep);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* Hero */
.hero {
  width: 100%;
  line-height: 0;
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Form section */
.form-section {
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 55%, #f2dfd0 100%);
  padding: 56px 20px 72px;
  display: flex;
  justify-content: center;
}

.form-wrapper {
  width: 100%;
  max-width: 640px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px 36px;
  position: relative;
  overflow: hidden;
}

.form-wrapper::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--pink-soft) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.form-intro {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}

.tag {
  display: inline-block;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  color: var(--white);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.form-intro h1 {
  font-size: 1.65rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--purple-dark);
  font-weight: 700;
}

.form-intro h1 em {
  font-family: 'Caveat', cursive;
  font-style: normal;
  color: var(--pink);
  font-size: 1.15em;
}

.form-intro p {
  margin: 0;
  color: #6b5470;
  font-size: 0.98rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  border: 2px solid #e9dfe6;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--purple-deep);
  background: #fdfbf7;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(224, 64, 156, 0.15);
}

input.invalid {
  border-color: #d64545;
}

.error {
  color: #d64545;
  font-size: 0.78rem;
  min-height: 1em;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #6b5470;
  cursor: pointer;
}

.checkbox input {
  margin-top: 3px;
  accent-color: var(--pink);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

button#submit-btn {
  border: none;
  background: linear-gradient(90deg, var(--pink) 0%, var(--orange) 100%);
  color: var(--white);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 20px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 8px 20px rgba(224, 64, 156, 0.35);
}

button#submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(224, 64, 156, 0.4);
}

button#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-msg {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
  margin: 4px 0 0;
}

.form-msg.success {
  color: #1e7d4a;
}

.form-msg.error {
  color: #d64545;
}

.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  color: #8a7a8f;
  background: var(--cream-2);
}

@media (max-width: 560px) {
  .form-wrapper {
    padding: 30px 22px 28px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .form-intro h1 {
    font-size: 1.4rem;
  }
}
