* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #202123 0, #050816 45%, #000000 100%);
  color: #e5e7eb;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.card-narrow {
  max-width: 520px;
  text-align: center;
}

.header-block {
  margin-bottom: 20px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(15, 118, 110, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(34, 197, 94, 0.35);
  margin-bottom: 12px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
}

.page-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.page-text {
  margin: 0 0 12px;
  line-height: 1.8;
  color: #d1d5db;
}

.muted {
  color: #9ca3af;
}

.contact-form {
  margin-top: 18px;
}

.field {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.required {
  color: #f97373;
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(55, 65, 81, 0.95);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: rgba(34, 197, 94, 0.85);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.field-hint,
.contact-info {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.7;
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981, #22c55e);
  color: #041016;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.35), 0 0 0 1px rgba(16, 185, 129, 0.45);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-1px);
}

.inline-link {
  color: #6ee7b7;
  text-decoration: none;
}

.inline-link:hover,
.inline-link:focus {
  text-decoration: underline;
}

.status-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
}

.success-icon {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.error-icon {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.alert-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.10);
}

.alert-success {
  color: #d1fae5;
}

.status-icon-inline {
  width: 48px;
  height: 48px;
  margin: 0;
  flex: 0 0 auto;
  font-size: 24px;
}

.alert-title {
  margin: 0 0 4px;
  font-size: 18px;
}

.alert-text {
  margin: 0;
  line-height: 1.8;
  color: #d1d5db;
}

.contact-info {
  margin: 18px 0 0;
  text-align: center;
}

.contact-info-label {
  display: block;
  margin-bottom: 6px;
}

.contact-mail-link {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.2px;
}

@media (max-width: 480px) {
  .card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .page-title {
    font-size: 21px;
  }

  .alert-box {
    flex-direction: column;
    text-align: center;
  }
}
