/* ===== Additional Form Styles for Enhanced Contact Form ===== */

/* Required/Optional indicators */
.required {
  color: rgba(255, 107, 107, 0.85);
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 15px;
}

/* Select dropdown styling */
.field select {
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  outline: none;
  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='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.field select:focus {
  border-color: rgba(139, 108, 255, 0.40);
  box-shadow: 0 0 0 3px rgba(139, 108, 255, 0.14);
}

.field select option {
  background: var(--bg1);
  color: var(--text);
  padding: 8px;
}

/* Fieldset styling */
.fieldset {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: rgba(255, 255, 255, 0.01);
}

.fieldset legend {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  padding: 0 8px;
  font-weight: 500;
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: background 0.12s ease;
}

.checkbox-label:hover {
  background: rgba(255, 255, 255, 0.02);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--violet);
  border-radius: 4px;
}

.checkbox-label span {
  color: var(--text);
  font-size: 17px;
}

/* Textarea styling updates */
.field textarea {
  font-family: var(--font);
  line-height: 1.5;
}

.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Form success message styling */
.form-success {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(139, 108, 255, 0.35);
  background: rgba(139, 108, 255, 0.08);
  border-radius: var(--radius-sm);
  color: rgba(207, 196, 255, 0.95);
  font-weight: 500;
}

/* Mobile responsiveness for form */
@media (max-width: 920px) {
  .checkbox-group {
    gap: 10px;
  }
  
  .checkbox-label {
    padding: 8px;
  }
  
  .field select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .field input,
  .field textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
