body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Main ---------- */

main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 3rem 2rem;
}

.form-container {
  max-width: 600px;
  width: 100%;
}

.page-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* ---------- Form ---------- */

#submitForm {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label .req { color: var(--pink); }

.field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  background: var(--gray);
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s;
  resize: vertical;
  width: 100%;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.field select option {
  background: #1a1a1a;
  color: var(--white);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--pink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #444;
}

.field input[type="date"],
.field input[type="time"] {
  color-scheme: dark;
  max-width: 80%;
}



.field-hint {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.4;
}

.field-error {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pink);
}

.field-error.show {
  display: block;
}

.field input.invalid,
.field textarea.invalid,
.field select.invalid {
  border-color: var(--pink);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: end;
}

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

/* ---------- Radio buttons ---------- */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  user-select: none;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: var(--gray);
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.radio-label input[type="radio"]:checked + .radio-box {
  border-color: var(--pink);
}

.radio-label input[type="radio"]:checked + .radio-box::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--pink);
  border-radius: 50%;
  display: block;
}

.radio-label:hover .radio-box {
  border-color: var(--pink);
}

/* ---------- Submit button ---------- */

.submit-btn {
  background: var(--pink);
  border: none;
  border-radius: 6px;
  color: var(--black);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---------- Messages ---------- */

.success-msg {
  display: none;
  font-size: 0.9rem;
  color: var(--pink);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  background: rgba(252, 144, 224, 0.1);
  border: 1px solid var(--pink);
  border-radius: 6px;
  line-height: 1.5;
}

.success-msg.show {
  display: block;
}

.error-msg {
  display: none;
  font-size: 0.9rem;
  color: #ff6b6b;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid #ff6b6b;
  border-radius: 6px;
}

.error-msg.show {
  display: block;
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  main {
    padding: 2rem 1.5rem;
  }

  .row {
    gap: 0.75rem; /* Smaller gap on mobile */
  }

  .page-title {
    font-size: 1.6rem;
  }

  .date-field {
    max-width: 50%;
  }
}
