/* ============================================
   TECH ORBIT - FORM STYLES (Extended)
   Core form styles are in style.css
   ============================================ */

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-lg);
}

.form-success.active {
  display: block;
}

.form-success .success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  background: #f0fff4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--success-green);
  animation: scaleIn 0.5s ease;
}

.form-success h3 {
  color: var(--success-green);
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: #666;
  line-height: 1.7;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Form loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tab forms */
.tab-forms {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tab-forms .tabs {
  background: var(--light-gray);
  border-radius: 0;
  margin: 0;
  padding: 8px;
}

.tab-forms .tab-content {
  padding: var(--space-lg);
}

.tab-forms .tab-content.active {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Inline form */
.inline-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.inline-form .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* Input with icon */
.input-icon-group {
  position: relative;
}

.input-icon-group input {
  padding-left: 44px;
}

.input-icon-group .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 1rem;
}

/* Progress bar */
.form-progress {
  margin-bottom: var(--space-md);
}

.form-progress .progress-bar {
  width: 100%;
  height: 6px;
  background: var(--light-gray);
  border-radius: 3px;
  overflow: hidden;
}

.form-progress .progress-fill {
  height: 100%;
  background: var(--gradient-blue-green);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Radio and Checkbox */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ocean-blue);
  cursor: pointer;
}
