/* ============================= */
/* RESET */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6c63ff;
  --primary-light: #8f88ff;
  --bg-dark: #0f1221;
  --card-bg: rgba(20, 24, 45, 0.65);
  --border-light: rgba(255,255,255,0.08);
  --text-light: #ffffff;
  --text-muted: rgba(255,255,255,0.65);
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system;
  background: radial-gradient(circle at top, #c300ff, #05070d 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(15px, 4vw, 50px);
  color: var(--text-light);
}

/* ============================= */
/* FORM CONTAINER */
/* ============================= */

.form-container {
  width: 100%;
  max-width: 520px;
  padding: clamp(22px, 4vw, 40px);
  border-radius: 24px;
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 70px rgba(0,0,0,0.6);
  position: relative;
}

/* ============================= */
/* TITLES */
/* ============================= */

#formTitle {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  margin-bottom: 6px;
}

#formDesc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* ============================= */
/* QUESTIONS */
/* ============================= */

.question {
  margin-bottom: 22px;
}

.question label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.question span {
  color: #ff4d6d;
}

/* ============================= */
/* INPUT FIELDS */
/* ============================= */

input,
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.05);
  color: var(--text-light);
  font-size: 0.9rem;
  transition: 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.25);
  background: rgba(255,255,255,0.08);
}

textarea {
  resize: none;
  min-height: 100px;
}

/* ============================= */
/* RADIO OPTIONS */
/* ============================= */

.options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.options input {
  display: none;
}

.options label {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 0.85rem;
}

.options label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: transparent;
  transition: 0.2s;
}

.options input:checked + label::before {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 10px rgba(108,99,255,0.6);
}

/* ============================= */
/* BUTTON */
/* ============================= */

button {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
  margin-top: 10px;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* ============================= */
/* LOADER */
/* ============================= */

.loader {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 25, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  z-index: 100;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loader p {
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none;
}

/* ============================= */
/* RESPONSIVE BREAKPOINTS */
/* ============================= */

/* Mobile */
@media (max-width: 480px) {
  .options {
    flex-direction: column;
    gap: 12px;
  }
}

/* Tablet */
@media (min-width: 768px) {
  .form-container {
    max-width: 600px;
  }
}

/* Large Screens */
@media (min-width: 1200px) {
  .form-container {
    max-width: 650px;
  }
}
