/* =========================
   Contact Form — Final Aligned Version
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0f1216;
  --surface: #151a20;
  --surface2: #1b222b;
  --text: #f3f5f7;
  --muted: rgba(243, 245, 247, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #6eced1;
  --accentDeep: #3fa6a3;

  --radius: 16px;
  --radiusLg: 22px;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

/* Page */
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(
      900px 520px at 18% 18%,
      rgba(110, 206, 209, 0.16),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 85% 22%,
      rgba(63, 166, 163, 0.12),
      transparent 62%
    ),
    linear-gradient(180deg, var(--bg), #0b0d10);
  color: var(--text);
}

/* Header */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.projectHeader {
  padding: 56px 0 32px;
}

.btnNav {
  display: inline-block;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.display {
  font-family: Fraunces, serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 10px;
}

.lead {
  max-width: 70ch;
  color: var(--muted);
}

/* Layout */
.demo {
  padding: 32px 20px 80px;
}

.form-container {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(
    180deg,
    rgba(21, 26, 32, 0.96),
    rgba(27, 34, 43, 0.94)
  );
  border-radius: var(--radiusLg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Form */
form > * + * {
  margin-top: 18px;
}

.hidden {
  display: none;
}

.input-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.input-field,
.message-field {
  position: relative;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 14px 14px 14px 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

textarea {
  height: 160px;
  padding-left: 14px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(110, 206, 209, 0.4);
  box-shadow: 0 0 0 2px rgba(110, 206, 209, 0.2);
}

#package {
  background: rgba(110, 206, 209, 0.08);
  border-color: rgba(110, 206, 209, 0.26);
  font-weight: 700;
}

.input-field i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(110, 206, 209, 0.6);
}

/* Notes */
.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}
/* ===============================
   Select — Contact Form Demo (Dark)
   =============================== */

.demo select,
.form-container select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;

  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;

  color: #f3f5f7;
  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.14);

  appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #bbb 50%),
    linear-gradient(135deg, #bbb 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.demo select:focus,
.form-container select:focus {
  outline: none;
  border-color: rgba(110, 206, 209, 0.55);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(110, 206, 209, 0.25);
}

/* Disabled placeholder option */
.demo select option[disabled] {
  color: rgba(255, 255, 255, 0.45);
}
/* ===============================
   FIX: Dark demo select options
   =============================== */

/* Force readable option list */
.demo select option,
.form-container select option {
  color: #111; /* readable text */
  background: #ffffff; /* default dropdown background */
}

/* Optional: hover/highlight state */
.demo select option:checked,
.form-container select option:checked {
  background: #e9f6f6;
  color: #0b0d10;
}
