/* ========================================
   FORM COMPONENTS
   ======================================== */

/* Form Controls */
.form-control {
  width: 100%;
  padding: 0.375rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-main);
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Inter', sans-serif;
}

/* Select specific styling */
select.form-control {
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 600;
}

/* Form Control Sizes */
.form-control-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.form-control-xs {
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  height: auto;
  line-height: 1.2;
}

/* Dropdown option styling to match button text */
.form-control-xs option {
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0.25rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.05);
}

.form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  font-family: 'Inter', sans-serif;
}

input[type="text"].form-control {
  font-size: 1.1rem;
  padding: 1rem;
  font-weight: 500;
}

/* Select Elements */
select.form-control,
.form-select {
  width: 100%;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--text-primary);
  background: var(--bg-main);
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%2300d4ff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.65rem;
  cursor: pointer;
}

select.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
  background-color: rgba(0, 212, 255, 0.05);
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%2300d4ff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.65rem;
}

select.form-control option,
.form-select option {
  background: var(--bg-main);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
}

/* Form Groups and Labels */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-help {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

/* Form Sections */
.form-section {
  margin-bottom: 2.5rem;
}

.form-section h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-neon);
}

/* File Upload */
.file-upload-area {
  position: relative;
  border: 2px dashed var(--border-neon);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background: rgba(0, 212, 255, 0.02);
  transition: all 0.3s ease;
}

.file-upload-area:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.05);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-content {
  pointer-events: none;
}

.file-upload-content i {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.file-upload-content p {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.file-upload-content small {
  color: var(--text-secondary);
}

/* Form Containers */
.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.proposal-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.rfp-form {
  background: var(--bg-main);
  border: 1px solid var(--border-neon);
  border-radius: 16px;
  padding: 2rem;
}

.proposal-form {
  background: var(--bg-main);
  border: 1px solid var(--border-neon);
  border-radius: 16px;
  padding: 2rem;
}

.update-form {
  background: var(--bg-main);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-neon);
  margin: 2rem 0;
}

.update-form h3, .update-form h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* Workflow Info */
.workflow-info {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid var(--border-neon);
  border-radius: 12px;
  padding: 1.5rem;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.workflow-step:last-child {
  margin-bottom: 0;
}

.workflow-step i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* Alert Messages */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #ffc107;
}

/* Disabled Form Styling */
.disabled-form {
  opacity: 0.6;
}

.disabled-form .form-control:disabled {
  background: rgba(108, 117, 125, 0.1);
  cursor: not-allowed;
}
