@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --ff-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --brand-primary: #cc127b;
  --brand-primary-hover: #a80f65;
  --brand-primary-light: rgba(204, 18, 123, 0.08);

  --text-main: #1b365d;
  --text-muted: #576577;
  --text-light: #8d99ae;

  --bg-page: #eef0f3;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-input-focus: #fcfcfd;

  --border-color: #d1d7df;
  --border-focus: #cc127b;

  --danger-color: #d92d20;
  --danger-bg: #fef3f2;
  --danger-border: #fecdca;

  --success-color: #039855;
  --success-bg: #ecfdf3;
  --success-border: #a6f4c5;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 4px 20px -2px rgba(27, 54, 93, 0.08), 0 2px 6px -1px rgba(27, 54, 93, 0.04);
  --shadow-sm: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
}

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

body {
  font-family: var(--ff-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem;
}

.container {
  width: 100%;
  max-width: 680px;
  margin: auto 0;
}

.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
}

@media (max-width: 640px) {
  .card {
    padding: 1.5rem;
  }
}

.header {
  margin-bottom: 2rem;
  text-align: left;
}

.header h1 {
  font-family: var(--ff-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.header p {
  color: var(--text-muted);
  font-size: 0.975rem;
}

.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 1.75rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.label-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block;
  margin-top: 0.15rem;
}

.required-badge {
  color: var(--brand-primary);
  font-weight: 700;
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  background-color: var(--bg-input-focus);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-primary-light);
}

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

/* Radio Cards / Custom Options */
.radio-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.radio-card {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafbfc;
}

.radio-card:hover {
  border-color: var(--brand-primary);
  background-color: var(--brand-primary-light);
}

.radio-card input[type="radio"] {
  accent-color: var(--brand-primary);
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.75rem;
  cursor: pointer;
}

.radio-card span {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Checkbox Style */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--brand-primary);
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.45;
  cursor: pointer;
  margin-bottom: 0;
}

/* Conditional Sections */
.conditional-section {
  background-color: #fafbfc;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.25s ease-in-out;
}

.conditional-section.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alert Boxes */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.alert-danger {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-family: var(--ff-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--brand-primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(204, 18, 123, 0.25);
  text-decoration: none;
}

.btn:hover {
  background-color: var(--brand-primary-hover);
  box-shadow: 0 4px 8px rgba(204, 18, 123, 0.35);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(204, 18, 123, 0.4);
}

.btn:disabled {
  background-color: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

/* Success View */
.success-container {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--success-bg);
  color: var(--success-color);
  margin-bottom: 1.25rem;
}

.success-icon-wrapper svg {
  width: 36px;
  height: 36px;
}

.success-container h1 {
  font-family: var(--ff-heading);
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.success-container p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 440px;
  margin: 0 auto;
}

.footer-note {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}
