@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=Inter:wght@300&display=swap');

/* =========================================================
   BASE PAGE
   ========================================================= */

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  background: #0b0b0b;
  color: #f2f2f2;
}

/* =========================================================
   WRAPPER
   ========================================================= */

.wrap {
  width: min(760px, 92vw);
  padding: 22px;

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.wrap h1{margin: 0;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.02em;
  color: #c9b2ff;
  font-size: 3rem;}

.wrap sub{
  margin: 8px 0 0;
  font-size: 1rem;
  opacity: 1;
}

/* =========================================================
   FIELDS
   ========================================================= */

.field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.field > span {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* =========================================================
   INPUTS
   ========================================================= */

input,
select,
textarea {
  padding: 10px 12px;

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);

  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;

  font-size: 0.95rem;
}

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

/* =========================================================
   FORM TYPE SELECT (DISTINCT LOOK)
   ========================================================= */

#type {
  /* make it stand out from other fields */
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;

  font-weight: 600;
  border-radius: 999px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* custom dropdown arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.9) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.9) 50%, transparent 50%),
    linear-gradient(
      to right,
      rgba(255,255,255,0.14),
      rgba(255,255,255,0.14)
    );
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;

  padding-right: 40px;
}

/* Dropdown options (browser-dependent support) */
#type option {
  background: #0b0b0b;
  color: #ffffff;
}

/* Focus states */

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

/* =========================================================
   RADIO GROUPS
   ========================================================= */

.radios {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 12px;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);

  cursor: pointer;
  user-select: none;
}

.radio input {
  accent-color: #ffffff;
}

/* =========================================================
   BUTTON
   ========================================================= */

button {
  margin-top: 10px;
  padding: 10px 14px;

  border-radius: 10px;
  border: 0;

  background: #ffffff;
  color: #000000;

  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #eaeaea;
}

.return-btn {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;

  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  text-decoration: none;

  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;

  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.return-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateX(-2px);
}

/* =========================================================
   MESSAGE / STATUS
   ========================================================= */

.msg {
  margin-top: 12px;
  min-height: 1.2em;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* =========================================================
   ADDITIVE: SUCCESS MESSAGE
   ========================================================= */

.msg.success {
  color: #22c55e;
}
