/* Contact Page Custom CSS */

/* Import base styles */
:root {
  --iraq-orange: #f97316;
  --iraq-orange-dark: #ea580c;
  --iraq-orange-darker: #c2410c;
  --sand-light: #fdf2e7;
  --sand-medium: #f7cd9f;
  --sand-dark: #ed9455;
  --emerald: #10b981;
  --emerald-dark: #059669;
  
}


/* Base Styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

/* Custom Utilities */
.text-primary-custom {
  color: var(--iraq-orange) !important;
}

.bg-primary-custom {
  background-color: var(--iraq-orange) !important;
}

.btn-primary-custom {
  background: linear-gradient(
    135deg,
    var(--iraq-orange),
    var(--iraq-orange-dark)
  );
  border: none;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background: linear-gradient(
    135deg,
    var(--iraq-orange-dark),
    var(--iraq-orange-darker)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3);
  color: white;
}

.hero-gradient {
  background: linear-gradient(
    135deg,
    var(--iraq-orange) 0%,
    var(--iraq-orange-dark) 50%,
    var(--iraq-orange-darker) 100%
  );
}

/* Glass Effect */
.glass-nav {
  backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(251, 226, 199, 0.3);
}

/* Hover Lift Effect */
.hover-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

/* Navigation */
.navbar-brand .brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--iraq-orange-darker);
  margin: 0;
}

.navbar-brand .brand-subtitle {
  font-size: 0.75rem;
  color: var(--sand-dark);
  margin: -0.25rem 0 0 0;
}

.logo-icon {
  background: linear-gradient(
    135deg,
    var(--iraq-orange),
    var(--iraq-orange-dark)
  );
  padding: 0.5rem;
  border-radius: 0.75rem;
}

.logo-icon i {
  color: white;
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link.active {
  color: var(--iraq-orange) !important;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--iraq-orange),
    var(--iraq-orange-dark)
  );
  border-radius: 1px;
}

/* Page Header */
.page-header {
  padding: 120px 0 80px;
  position: relative;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Quick Contact Methods */
.contact-method-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #f3f4f6;
}

.contact-method-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--iraq-orange);
}

.contact-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease;
}

.contact-method-card:hover .contact-icon {
  transform: scale(1.1);
  animation: pulse 1s infinite;
}

.whatsapp-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.phone-icon {
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.email-icon {
  background: linear-gradient(135deg, #17a2b8, #138496);
}

.website-icon {
  background: linear-gradient(
    135deg,
    var(--iraq-orange),
    var(--iraq-orange-dark)
  );
}

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

.contact-method-card h5 {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.contact-method-card p {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.contact-detail {
  background: #f9fafb;
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.contact-detail strong {
  color: var(--iraq-orange);
  font-size: 0.875rem;
}

/* Contact Form */
.contact-form-container {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
}

.form-title {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: #6b7280;
  margin-bottom: 0;
}

.form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.required {
  color: #ef4444;
  margin-left: 0.25rem;
}

.form-control,
.form-select {
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--iraq-orange);
  box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
}

.form-control.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.form-control.is-valid {
  border-color: var(--emerald);
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
}

/* Contact Information Sidebar */
.contact-info-sidebar {
  position: sticky;
  top: 120px;
}

.info-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
}

.info-header h5 {
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 1rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item .day {
  font-weight: 500;
  color: #374151;
}

.schedule-item .hours {
  color: var(--iraq-orange);
  font-weight: 500;
}

.schedule-note {
  background: var(--sand-light);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.response-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.feature-item {
  margin-bottom: 1rem;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item strong {
  color: #1f2937;
  display: block;
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.emergency-card {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: #fecaca;
}

.emergency-contact {
  margin: 1rem 0;
}

/* FAQ Section */
.accordion-item {
  border: none;
  border-radius: 1rem !important;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  border-radius: 1rem !important;
  font-weight: 500;
  color: #1f2937;
  background: white;
  border: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--iraq-orange);
  background: var(--sand-light);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.25);
}

.accordion-body {
  color: #6b7280;
  line-height: 1.6;
}

/* Location Section */
.location-info {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.location-item:last-child {
  margin-bottom: 0;
}

.location-item i {
  margin-top: 0.25rem;
  font-size: 1.25rem;
}

.location-item strong {
  color: #1f2937;
}

.map-placeholder {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
}

.map-pin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-pin i {
  color: var(--iraq-orange);
  font-size: 1.25rem;
}

/* Form Validation Styles */
.invalid-feedback {
  display: block;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.valid-feedback {
  display: block;
  color: var(--emerald);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

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

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

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* CTA Section */
.cta-section {
  position: relative;
}

/* Footer */
.footer-section {
  background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
}

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--iraq-orange);
}

.contact-links a {
  transition: all 0.3s ease;
}

.contact-links a:hover {
  color: var(--iraq-orange) !important;
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    padding: 100px 0 60px;
  }

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

  .section-title {
    font-size: 2rem;
  }

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

  .contact-icon {
    width: 3rem;
    height: 3rem;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .contact-info-sidebar {
    position: static;
    margin-top: 2rem;
  }

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

  .location-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .location-item i {
    margin-top: 0;
  }

  .form-title {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .navbar-brand .brand-title {
    font-size: 1.1rem;
  }

  .navbar-brand .brand-subtitle {
    font-size: 0.7rem;
  }

  .contact-method-card {
    padding: 1rem;
  }

  .contact-form-container {
    padding: 1rem;
  }

  .form-title {
    font-size: 1.25rem;
  }

  .location-info {
    padding: 1.5rem;
  }

  .schedule-item {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus,
.accordion-button:focus {
  outline: 2px solid var(--iraq-orange);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .contact-method-card,
  .contact-form-container,
  .info-card {
    border: 2px solid #333;
  }

  .accordion-item {
    border: 1px solid #333 !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .cta-section,
  .footer-section,
  .emergency-card,
  .hero-buttons {
    display: none !important;
  }

  .contact-method-card,
  .contact-form-container,
  .info-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
    margin-bottom: 1rem;
  }

  .page-header {
    background: none !important;
    color: #333 !important;
  }

  .text-white,
  .text-white-75 {
    color: #333 !important;
  }
}

/* Smooth transitions for all interactive elements */
.contact-method-card,
.contact-form-container,
.info-card,
.form-control,
.btn {
  transition: all 0.3s ease;
}

/* Custom tooltip styles */
.tooltip-inner {
  background-color: var(--iraq-orange);
  border-radius: 0.5rem;
}

.tooltip .arrow::before {
  border-top-color: var(--iraq-orange);
}
