/**
 * OCM Landing Page - Modal Styles
 * 
 * Styles für Kontaktformular-Modal und Alerts
 */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 30, 22, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  position: relative;
}

.modal-header {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  padding: 40px 30px;
  text-align: center;
  border-radius: 20px 20px 0 0;
}

.modal-header h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
}

.modal-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 40px 30px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.form-group label .required {
  color: #e1770a;
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(7, 183, 126, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group .help-text {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.form-actions button {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.form-actions .btn-submit {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(225, 119, 10, 0.3);
}

.form-actions .btn-submit:hover:not(:disabled) {
  background: #c66508;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 119, 10, 0.4);
}

.form-actions .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-actions .btn-cancel {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.form-actions .btn-cancel:hover {
  background: var(--border);
}

.turnstile-wrapper {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s ease;
}

.alert.show {
  display: flex;
}

.alert-success {
  background: #f0f8f5;
  border: 1px solid var(--accent);
  color: var(--brand);
}

.alert-error {
  background: #fff3e6;
  border: 1px solid #e1770a;
  color: #c66508;
}

.alert .alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.alert .alert-message {
  flex: 1;
}

.alert .alert-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.alert .alert-close:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .modal-content {
    border-radius: 16px;
  }
  .modal-header {
    padding: 30px 20px;
  }
  .modal-body {
    padding: 30px 20px;
  }
  .form-actions {
    flex-direction: column;
  }
  .modal-header h2 {
    font-size: 24px;
  }
}
