/* =============== FORM NOTIFICATIONS =============== */
.form-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.form-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.form-notification.hide {
  opacity: 0;
  transform: translateX(100px);
}

.form-notification.success {
  border-left: 4px solid #10b981;
}

.form-notification.error {
  border-left: 4px solid #ef4444;
}

.form-notification-content {
  display: flex;
  align-items: flex-start;
  padding: 16px 20px;
  gap: 12px;
}

.form-notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.form-notification-icon i {
  font-size: 20px;
}

.form-notification.success .form-notification-icon i {
  color: #10b981;
}

.form-notification.error .form-notification-icon i {
  color: #ef4444;
}

.form-notification-text {
  flex: 1;
  min-width: 0;
}

.form-notification-text h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.form-notification-text p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

.form-notification-close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s ease;
  border-radius: 4px;
}

.form-notification-close:hover {
  color: #ef4444;
  background: #fef2f2;
}

.form-notification-close i {
  font-size: 14px;
}

/* =============== FORM VALIDATION STYLES =============== */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-group.success input,
.form-group.success textarea {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.field-error {
  display: block;
  color: #ef4444;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}

.form-group.error label {
  color: #ef4444;
}

.form-group.success label {
  color: #10b981;
}

/* =============== RESPONSIVE ADJUSTMENTS =============== */
@media (max-width: 768px) {
  .form-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .form-notification-content {
    padding: 14px 16px;
  }

  .form-notification-text h4 {
    font-size: 15px;
  }

  .form-notification-text p {
    font-size: 13px;
  }
}

/* =============== LOADING STATES =============== */
.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-submit-btn .fa-spinner {
  margin-right: 8px;
}

/* =============== ANIMATIONS =============== */
@keyframes notification-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes notification-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.form-notification.animate-in {
  animation: notification-slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-notification.animate-out {
  animation: notification-slide-out 0.3s ease-in-out;
}
