/* Contact Page Specific Styles */

/* Hero Section Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Section */
.bg-primary {
  background: var(--primary);
}

/* Contact Form */
.bg-background.rounded-2xl.shadow-xl {
  animation: slideInFromLeft 0.8s ease-out;
}

/* Contact Information */
.space-y-8 > div {
  animation: slideInFromRight 0.8s ease-out;
  animation-fill-mode: both;
}

.space-y-8 > div:nth-child(1) {
  animation-delay: 0.1s;
}
.space-y-8 > div:nth-child(2) {
  animation-delay: 0.2s;
}
.space-y-8 > div:nth-child(3) {
  animation-delay: 0.3s;
}

/* Form Input Focus */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(138, 0, 0, 0.1);
  border-color: var(--sqube-red);
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

/* Form Validation */
input:invalid,
select:invalid,
textarea:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input:valid,
select:valid,
textarea:valid {
  border-color: #22c55e;
}

/* Submit Button */
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(138, 0, 0, 0.3);
}

/* Contact Cards */
.bg-background.rounded-2xl.shadow-xl {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-background.rounded-2xl.shadow-xl:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Social Media Links */
.flex.space-x-4 a {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flex.space-x-4 a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.space-y-4 > div {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.space-y-4 > div:nth-child(1) {
  animation-delay: 0.1s;
}
.space-y-4 > div:nth-child(2) {
  animation-delay: 0.2s;
}
.space-y-4 > div:nth-child(3) {
  animation-delay: 0.3s;
}
.space-y-4 > div:nth-child(4) {
  animation-delay: 0.4s;
}

/* FAQ Cards */
.bg-background.rounded-lg {
  transition: all 0.3s ease;
}

.bg-background.rounded-lg:hover {
  background-color: rgba(138, 0, 0, 0.05);
  transform: translateX(5px);
}

/* Map Section */
.bg-background.rounded-2xl.shadow-xl {
  animation: fadeInUp 0.8s ease-out;
}

/* Contact Information Icons */
.w-12.h-12 {
  transition: transform 0.3s ease;
}

.space-y-6 > div:hover .w-12.h-12 {
  transform: scale(1.1);
}

/* Business Hours */
.flex.justify-between {
  transition: color 0.3s ease;
}

.flex.justify-between:hover {
  color: var(--sqube-red);
}

/* Form Field Animations */
.space-y-6 > div {
  animation: slideInFromLeft 0.4s ease-out;
  animation-fill-mode: both;
}

.space-y-6 > div:nth-child(1) {
  animation-delay: 0.1s;
}
.space-y-6 > div:nth-child(2) {
  animation-delay: 0.2s;
}
.space-y-6 > div:nth-child(3) {
  animation-delay: 0.3s;
}
.space-y-6 > div:nth-child(4) {
  animation-delay: 0.4s;
}
.space-y-6 > div:nth-child(5) {
  animation-delay: 0.5s;
}
.space-y-6 > div:nth-child(6) {
  animation-delay: 0.6s;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--sqube-red);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid.grid-cols-1.lg\\:grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .grid.grid-cols-1.lg\\:grid-cols-2 > div,
  .space-y-8 > div,
  .space-y-6 > div,
  .space-y-4 > div {
    animation: none;
  }

  .flex.flex-col.sm\\:flex-row {
    flex-direction: column;
  }

  .flex.space-x-4 {
    justify-content: center;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .bg-background {
    background-color: #1a1a1a;
  }

  .bg-background {
    background-color: #2d2d2d;
    color: #ffffff;
  }

  .text-text {
    color: #a0a0a0;
  }

  .border-gray-300 {
    border-color: #4a4a4a;
  }

  .bg-background {
    background-color: #3a3a3a;
  }
}
