*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  color: #1a2744;
  min-height: 100vh;
}

header {
  background: #1a2744;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

header h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

main {
  display: flex;
  justify-content: center;
  padding: 48px 16px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 36px 32px;
  width: 100%;
  max-width: 500px;
}

.card h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.card-subtitle {
  color: #5a6a7e;
  font-size: 14px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #1a2744;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd6de;
  border-radius: 6px;
  font-size: 15px;
  color: #1a2744;
  background: #fff;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #1a2744;
  box-shadow: 0 0 0 3px rgba(26,39,68,0.1);
}

.info-message {
  margin-top: 8px;
  font-size: 13px;
  color: #5a6a7e;
  background: #f0f4fa;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 3px solid #1a2744;
}

button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #1a2744;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
  margin-top: 8px;
}

button[type="submit"]:hover { background: #253a5e; }
button[type="submit"]:disabled { opacity: 0.7; cursor: not-allowed; }

.spinner {
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Confirmation view */
.confirmation-icon {
  width: 56px;
  height: 56px;
  background: #e6f4ea;
  color: #1e7e34;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 16px;
}

#confirmation-view h2 { text-align: center; margin-bottom: 12px; }
#confirmation-view p { text-align: center; color: #3d4f65; font-size: 15px; line-height: 1.6; margin-bottom: 24px; }

.btn-secondary {
  display: block;
  margin: 0 auto;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid #1a2744;
  color: #1a2744;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:hover { background: #f0f2f5; }
