/* Companies Styles */

.companies-new {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
}

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-link a:hover {
  color: #374151;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00008B;
}

/* Form Section */
.form-section {
  padding: 4rem 0;
  background-color: #f9fafb;
}

.form-container {
  max-width: 500px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.form-headline {
  font-size: 2.5rem;
  font-weight: bold;
  color: #00008B;
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-subheadline {
  font-size: 1.125rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 2rem;
}

/* Form */
.company-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.required-star {
  color: #dc2626;
  font-weight: 600;
  margin-left: 2px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #00008B;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00008B;
}

.checkbox-group label {
  margin: 0;
}

.form-group small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Error Messages */
.error-messages {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.error-messages h2 {
  color: #dc2626;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.error-messages ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-messages li {
  color: #dc2626;
  font-size: 0.875rem;
}

/* Form Actions */
.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  background-color: #00008B;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-bottom: 1rem;
}

.submit-btn:hover {
  background-color: #00006B;
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.inline-actions .btn-secondary {
  margin: 0;
}

.btn-secondary {
  background-color: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
  margin-left: 1rem;
}

.btn-secondary:hover {
  border-color: #9ca3af;
  color: #374151;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.btn-danger:active {
  transform: translateY(0);
}

.account-deletion-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* Flash messages */
.flash {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
}
.flash.notice { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.flash.alert { border-color: #fecaca; background: #fef2f2; color: #991b1b; }

.hint {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .form-container {
    padding: 2rem 1.5rem;
  }

  .form-headline {
    font-size: 2rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .back-link {
    align-self: flex-start;
  }
}

@media (min-width: 640px) {
  .inline-actions {
    justify-content: space-between;
  }
}
