/* Contact Page Specific Styles */

.page-header {
  background: var(--gradient-primary);
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/placeholder.svg?height=600&width=1920") center / cover;
  opacity: 0.1;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

/* Contact Form Styles */
.contact-form-container {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  height: fit-content;
}

.contact-form-container:hover {
  border-color: var(--primary-pink);
  box-shadow: 0 20px 50px rgba(233, 30, 99, 0.2);
}

.form-floating > .form-control,
.form-floating > .form-select {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

.form-floating > label {
  color: #6c757d;
  font-weight: 500;
}

.form-check-input:checked {
  background-color: var(--primary-pink);
  border-color: var(--primary-pink);
}

.form-check-input:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

/* Map Container Styles */
.map-container {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.map-container:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 20px 50px rgba(156, 39, 176, 0.2);
}

.map-wrapper {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Contact Info Cards */
.contact-info-card {
  background: var(--gradient-light);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-pink);
  box-shadow: 0 10px 25px rgba(233, 30, 99, 0.2);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon i {
  color: white;
  font-size: 1.2rem;
}

.contact-details h6 {
  color: var(--primary-pink);
  margin-bottom: 0.5rem;
}

/* Emergency Cards */
.emergency-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
}

.emergency-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-pink);
  box-shadow: 0 20px 40px rgba(233, 30, 99, 0.3);
}

.emergency-icon {
  width: 80px;
  height: 80px;
  background: rgba(233, 30, 99, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* FAQ Accordion Styles */
.accordion-item {
  border: 2px solid #e9ecef;
  border-radius: 15px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: var(--primary-pink);
  box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);
}

.accordion-button {
  background: var(--gradient-light);
  border: none;
  font-weight: 600;
  color: var(--primary-pink);
  padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
  background: var(--gradient-primary);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%)
    contrast(97%);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(100%);
}

.accordion-body {
  padding: 1.5rem;
  background: white;
  color: #666;
  line-height: 1.6;
}

/* Form Validation Styles */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #28a745;
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.valid-feedback {
  display: block;
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Success/Error Message Styles */
.alert-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 2px solid #28a745;
  color: #155724;
  border-radius: 10px;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  border: 2px solid #dc3545;
  color: #721c24;
  border-radius: 10px;
}

/* Loading State */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    min-height: 50vh;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .contact-form-container,
  .map-container {
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .contact-info-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .emergency-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }

  .accordion-button,
  .accordion-body {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .contact-form-container,
  .map-container {
    padding: 1.5rem;
  }

  .contact-info-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .contact-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .emergency-card {
    padding: 1.5rem 1rem;
  }

  .emergency-icon {
    width: 60px;
    height: 60px;
  }
}

/* Animation for form elements */
.form-floating {
  animation: fadeInUp 0.6s ease-out;
}

.form-floating:nth-child(1) {
  animation-delay: 0.1s;
}
.form-floating:nth-child(2) {
  animation-delay: 0.2s;
}
.form-floating:nth-child(3) {
  animation-delay: 0.3s;
}
.form-floating:nth-child(4) {
  animation-delay: 0.4s;
}
.form-floating:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
