/* ===== FORMS PAGE STYLES ===== */

/* Contact Form Card */
.contact-form-card {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
}

.contact-form-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.contact-form-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.contact-form-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Form Elements */
.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  z-index: 10;
}

.input-icon .form-control,
.input-icon .form-select {
  padding-left: 3rem;
}

.input-icon textarea.form-control {
  padding-left: 3rem;
}

.input-icon textarea i {
  top: 1.25rem;
  transform: none;
}

.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: var(--transition-base);
  color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.char-counter {
  display: block;
  text-align: right;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border: 2px solid var(--border-color);
  transition: var(--transition-base);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-check-label {
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* Validation States */
.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: var(--success-color);
  background-image: none;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: var(--danger-color);
  background-image: none;
}

.invalid-feedback {
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Contact Info Sidebar */
.contact-info-sidebar {
  background: var(--bg-light);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.sidebar-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.contact-info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.contact-info-content h6 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-info-content p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.contact-info-content a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-base);
}

.contact-info-content a:hover {
  color: var(--primary-color);
}

.contact-social h6 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.social-links a:hover {
  background: var(--gradient-primary);
  color: var(--bg-white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.emergency-box {
  background: linear-gradient(135deg, #fee2e2, #fef3c7);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--danger-color);
  text-align: center;
}

.emergency-box i {
  font-size: 2.5rem;
  color: var(--danger-color);
  margin-bottom: 1rem;
}

.emergency-box h6 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.emergency-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Feedback Form */
.feedback-form-card {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
}

.feedback-intro {
  margin-bottom: 3rem;
}

.feedback-icon {
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.2;
}

.feedback-alternative {
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
}

/* Alert Messages */
.alert {
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.5rem;
  border: none;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

.btn-close {
  opacity: 0.6;
  transition: var(--transition-base);
}

.btn-close:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-info-sidebar {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .contact-form-card,
  .feedback-form-card {
    padding: 2rem 1.5rem;
  }

  .contact-form-header {
    padding-bottom: 1.5rem;
  }

  .contact-form-header h2 {
    font-size: 1.75rem;
  }

  .contact-info-sidebar {
    padding: 2rem 1.5rem;
  }

  .feedback-icon {
    font-size: 4rem;
  }
}
