/**
 * @file
 * Styles for Account & Organisation Edit Form
 */

/* Main container styling */
.nis2secure-account-org-edit-form {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0;
}

/* Page header */
.nis2secure-account-org-edit-form::before {
  content: '⚙️ Redigér Konto & Organisation';
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
  text-align: center;
}

/* Details sections */
.nis2secure-account-org-edit-form details {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.nis2secure-account-org-edit-form details:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.nis2secure-account-org-edit-form details[open] {
  border-color: #667eea;
}

/* Summary/Header */
.nis2secure-account-org-edit-form details > summary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nis2secure-account-org-edit-form details > summary::-webkit-details-marker {
  display: none;
}

.nis2secure-account-org-edit-form details > summary::after {
  content: '▼';
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

.nis2secure-account-org-edit-form details[open] > summary::after {
  transform: rotate(180deg);
}

.nis2secure-account-org-edit-form details > summary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6d28d9 100%);
}

/* Content area */
.nis2secure-account-org-edit-form details .details-wrapper {
  padding: 2rem 1.5rem;
}

/* Section description */
.nis2secure-account-org-edit-form details > .details-description {
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
  color: #666;
  font-size: 0.9375rem;
  margin: 0;
}

/* Form fields */
.nis2secure-account-org-edit-form .form-item {
  margin-bottom: 1.5rem;
}

.nis2secure-account-org-edit-form .form-item label {
  display: block;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.nis2secure-account-org-edit-form .form-item label.form-required::after {
  content: ' *';
  color: #dc2626;
  font-weight: 700;
}

.nis2secure-account-org-edit-form .form-item input[type="text"],
.nis2secure-account-org-edit-form .form-item input[type="email"],
.nis2secure-account-org-edit-form .form-item input[type="tel"],
.nis2secure-account-org-edit-form .form-item select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #f9fafb;
}

.nis2secure-account-org-edit-form .form-item input:focus,
.nis2secure-account-org-edit-form .form-item select:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.nis2secure-account-org-edit-form .form-item .description {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Action buttons */
.nis2secure-account-org-edit-form .form-actions {
  display: flex;
  gap: 1rem;
  padding: 2rem 0 1rem 0;
  justify-content: center;
}

.nis2secure-account-org-edit-form .form-actions input[type="submit"],
.nis2secure-account-org-edit-form .form-actions .button {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nis2secure-account-org-edit-form .form-actions input[type="submit"] {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.nis2secure-account-org-edit-form .form-actions input[type="submit"]:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.nis2secure-account-org-edit-form .form-actions .button {
  background: #e5e7eb;
  color: #374151;
}

.nis2secure-account-org-edit-form .form-actions .button:hover {
  background: #d1d5db;
  transform: translateY(-2px);
}

/* Error messages */
.nis2secure-account-org-edit-form .form-item.error input,
.nis2secure-account-org-edit-form .form-item.error select {
  border-color: #dc2626;
  background: #fef2f2;
}

.nis2secure-account-org-edit-form .form-item .error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nis2secure-account-org-edit-form {
    margin: 1rem;
  }
  
  .nis2secure-account-org-edit-form::before {
    font-size: 1.5rem;
  }
  
  .nis2secure-account-org-edit-form details > summary {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .nis2secure-account-org-edit-form details .details-wrapper {
    padding: 1.5rem 1rem;
  }
  
  .nis2secure-account-org-edit-form .form-actions {
    flex-direction: column;
  }
  
  .nis2secure-account-org-edit-form .form-actions input[type="submit"],
  .nis2secure-account-org-edit-form .form-actions .button {
    width: 100%;
  }
}
