/* =========================
   GLOBAL / PAGE
========================= */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #1a2428 0%, #28636a 50%, #1f3d42 100%);
  min-height: 100vh;
  padding: 40px 20px;
  color: #e0e0e0;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* =========================
   CARD / HEADER
========================= */
.form-card {
  background: rgba(30, 30, 45, 0.95);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #28636a 0%, #3a8891 50%, #4da5af 100%);
}

h1 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #28636a 0%, #4da5af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  text-align: center;
  color: #a0a0b0;
  margin-bottom: 40px;
  font-size: 15px;
}

/* =========================
   SECTIONS
========================= */
.form-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #4da5af;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #28636a, #4da5af);
  border-radius: 2px;
}

/* =========================
   GRID / GROUPS
========================= */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Conditional fields (show/hide with JS by toggling .active) */
.form-group.conditional {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-group.conditional.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #b0b0c0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================
   INPUTS / SELECT / TEXTAREA
========================= */
input[type="text"],
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #e0e0e0;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

/* placeholder colors */
input::placeholder,
textarea::placeholder {
  color: #6a6a7a;
}

/* hover/focus states */
input:hover,
select:hover,
textarea:hover {
  border-color: rgba(40, 99, 106, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #28636a;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(40, 99, 106, 0.2);
}

/* select arrow */
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 fill='%23a0a0b0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 45px;
  cursor: pointer;
}

select option {
  background: #1e1e2d;
  color: #e0e0e0;
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

/* Optional: remove number spinners for clean matching UI */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* =========================
   FILE UPLOAD (CUSTOM UI)
========================= */
.file-upload-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  left: -9999px;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: rgba(40, 99, 106, 0.1);
  border: 2px dashed rgba(40, 99, 106, 0.4);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #a0a0b0;
  font-weight: 500;
  text-align: center;
  user-select: none;
}

.file-upload-label:hover {
  background: rgba(40, 99, 106, 0.15);
  border-color: #28636a;
  color: #4da5af;
}

.file-upload-label svg {
  width: 24px;
  height: 24px;
}

/* =========================
   RADIO / CHECKBOX GROUPS
========================= */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.radio-option:hover,
.checkbox-option:hover {
  background: rgba(40, 99, 106, 0.1);
  border-color: rgba(40, 99, 106, 0.4);
}

.radio-option input,
.checkbox-option input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #28636a;
}

/* Highlight selected pill (works in modern browsers) */
.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
  background: linear-gradient(
    135deg,
    rgba(40, 99, 106, 0.2),
    rgba(77, 165, 175, 0.2)
  );
  border-color: #28636a;
  color: #fff;
  box-shadow: 0 4px 15px rgba(40, 99, 106, 0.3);
}

/* =========================
   SUBMIT BUTTON
========================= */
.submit-wrapper {
  text-align: center;
  margin-top: 40px;
}

.submit-btn {
  padding: 16px 48px;
  background: linear-gradient(135deg, #28636a 0%, #3a8891 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(40, 99, 106, 0.4);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(40, 99, 106, 0.5);
}

.submit-btn:active {
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .form-card {
    padding: 32px 24px;
  }

  h1 {
    font-size: 26px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 20px 12px;
  }

  .form-card {
    padding: 24px 16px;
  }

  h1 {
    font-size: 22px;
  }

  .section-title {
    font-size: 16px;
  }
}
