* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #eef4ff;
  color: #102a43;
}

a {
  color: inherit;
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  background: linear-gradient(135deg, #0d6efd, #0a4dc1);
  color: #fff;
  padding: 32px 0;
}

header h1 {
  margin: 0;
  font-size: clamp(1.9rem, 2.25vw, 2.8rem);
}

header p {
  margin: 14px 0 0;
  max-width: 860px;
  line-height: 1.7;
  opacity: 0.95;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.nav-links a,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.button-link:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

main {
  padding: 40px 0 60px;
}

.card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.section-title {
  margin-bottom: 24px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-size: 1.75rem;
  color: #0d3f72;
}

.section-title p {
  margin: 12px auto 0;
  max-width: 760px;
  line-height: 1.75;
  color: #52667b;
}

.form-grid {
  display: grid;
  gap: 20px;
}

.form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: block;
  margin-bottom: 10px;
  color: #1c3b5c;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: #102a43;
  background: #f8fbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

button {
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  background: #0d6efd;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

button:hover {
  background: #0a58ca;
  transform: translateY(-1px);
}

.note {
  margin-top: 18px;
  line-height: 1.6;
  color: #52667b;
}

footer {
  padding: 24px 0 40px;
  text-align: center;
  color: #5b7087;
  font-size: 0.95rem;
}

@media (max-width: 830px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links,
  .actions {
    justify-content: center;
  }

  header {
    padding: 28px 0;
  }
}
