:root {
  --accent: #FF98A2;
  --dark: #1A2E5F;
  --blue: #247EE4;
  --bg: #EEFEFF;
  --error: #E4497E;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.header {
  position: relative;
  background: var(--dark);
  padding: 32px 20px 40px;
}

.header-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.logo {
  display: block;
  height: 22px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.header h1 {
  color: #FFFFFF;
  font-size: 28px;
  margin: 0 0 8px;
}

.subtitle {
  color: #C7D2E8;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.main {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px 20px;
  margin-top: -36px;
  box-shadow: 0 8px 30px rgba(26, 46, 95, 0.08);
}

.field {
  margin-bottom: 18px;
  flex: 1;
}

.row {
  display: flex;
  gap: 12px;
}

.row .field {
  min-width: 0;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

input, select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1.5px solid #DCE6F0;
  border-radius: 10px;
  background: #FBFDFF;
  color: var(--dark);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder {
  color: #9FB0C9;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 152, 162, 0.25);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231A2E5F' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field.has-error input {
  border-color: var(--error);
  background: #FFF4F6;
}

.hint {
  font-size: 12.5px;
  color: var(--error);
  margin-top: 5px;
  min-height: 0;
  display: none;
}

.field.has-error .hint {
  display: block;
}

.form-error {
  background: #FFF4F6;
  color: var(--error);
  border: 1px solid #FFD1DB;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  background: var(--accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 8px;
  transition: filter 0.15s, transform 0.05s;
}

.submit-btn:hover {
  filter: brightness(0.97);
}

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

.submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.privacy {
  font-size: 12.5px;
  color: #6B7A99;
  line-height: 1.5;
  margin: 18px 0 0;
  text-align: center;
}

.privacy a {
  color: var(--blue);
  text-decoration: none;
}

.privacy a:hover {
  text-decoration: underline;
}

.footnote {
  font-size: 12px;
  color: #9FAFC9;
  text-align: center;
  margin: 10px 0 0;
}

.success-card {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  width: 56px;
  height: 56px;
  line-height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  font-size: 26px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.success-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.success-card p {
  color: #5C6C8A;
  margin: 0;
  font-size: 15px;
}

@media (max-width: 480px) {
  .row {
    flex-direction: column;
    gap: 0;
  }
  .header h1 {
    font-size: 24px;
  }
  .card {
    padding: 22px 16px;
  }
}
