* {
  box-sizing: border-box;
}

:root {
  --mint: #eafcec;
  --sky: #eef7fb;
  --green: #12a878;
  --green-dark: #0e9368;
  --blue: #1c8fe5;
  --ink: #17351f;
  --ink-soft: #5b7a63;
  --card: #ffffff;
  --border: #dfeee2;
  --error: #c0392b;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background-color: var(--mint);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(46, 204, 140, 0.35), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(28, 143, 229, 0.22), transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(18, 168, 120, 0.25), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(120, 90, 220, 0.18), transparent 55%),
    linear-gradient(135deg, #eafcec 0%, #f3fff0 40%, #eef7fb 100%);
  background-attachment: fixed;
}

nav {
  width: calc(100% - 60px);
  max-width: 1100px;
  height: 58px;
  margin: 18px auto;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  box-shadow: 0 10px 30px rgba(0, 80, 40, 0.08);
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.logo {
  font-family: "Baloo 2", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.logo span {
  color: var(--green);
}

.logo-link:hover .logo {
  transform: translateY(-1px);
}

.nav-button {
  text-decoration: none;
  background: var(--green);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.15s ease;
}

.nav-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.container {
  width: calc(100% - 40px);
  max-width: 720px;
  margin: 45px auto 90px;
}

/* Hero */

.hero {
  text-align: center;
  margin-bottom: 34px;
}

h1 {
  margin: 0 0 10px;
  font-family: "Baloo 2", "Inter", sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.intro {
  margin: 0 auto;
  max-width: 480px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 15.5px;
}

/* Form card */

.form-card {
  background: var(--card);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 80, 40, 0.1);
  border: 1px solid rgba(18, 168, 120, 0.08);
}

.field {
  margin-bottom: 22px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #254b30;
}

input,
textarea,
select {
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fbfefb;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9db5a1;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #c3e2cb;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(18, 168, 120, 0.12);
  background: white;
}

textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}

.select-wrapper {
  position: relative;
}

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.required {
  color: var(--green);
  font-weight: 700;
}

#custom-event-wrapper {
  display: none;
  margin-top: 14px;
  padding: 16px 16px 4px;
  border-left: 3px solid var(--green);
  background: #f6fdf7;
  border-radius: 0 12px 12px 0;
}

.contact-box {
  background: var(--sky);
  border: 1.5px dashed #c4dfe8;
  border-radius: 20px;
  padding: 22px 24px;
  margin-top: 8px;
  margin-bottom: 26px;
}

.contact-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #254b30;
}

.contact-description {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.contact-fields {
  position: relative;
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  color: #9fb8a5;
  font-size: 12px;
  font-weight: 600;
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cfe4d4;
}

.contact-error {
  display: none;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff0f0;
  color: var(--error);
  font-size: 13px;
  font-weight: 500;
}

button[type="submit"] {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: white;
  font-family: "Baloo 2", "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(18, 168, 120, 0.25);
  transition: 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

button[type="submit"] svg {
  width: 18px;
  height: 18px;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(18, 168, 120, 0.3);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* Accessible focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  nav {
    width: calc(100% - 30px);
    padding: 0 18px;
  }

  .container {
    width: calc(100% - 25px);
    margin-top: 30px;
  }

  .form-card {
    padding: 26px 20px;
    border-radius: 22px;
  }

  h1 {
    font-size: 27px;
  }

  .nav-button {
    padding: 9px 16px;
  }
}