/* ============ CONTACT HERO SECTION ============ */
.contact-hero-section {
  /* Reuses homepage hero styles with slight variations */
  animation: fadeIn 0.8s ease-out;
}

.contact-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(79, 195, 214, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  z-index: 1;
}

.contact-hero-section .bg-\[url\(\'assets\/images\/bg1\.jpg\'\)\] {
  z-index: -2;
}

.contact-hero-section .bg-black\/80 {
  z-index: -1;
}

/* ============ CONTACT FORM SECTION ============ */
.contact-form-section input:focus,
.contact-form-section textarea:focus {
  box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.1);
  outline: none;
}

.contact-form-section input,
.contact-form-section textarea {
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.contact-form-section input:hover,
.contact-form-section textarea:hover {
  border-color: #1f7a8c;
}

/* ============ PROCESS SECTION ============ */
.process-step {
  position: relative;
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateX(5px);
}

.process-step .w-12 {
  transition: all 0.3s ease;
}

.process-step .w-12:hover {
  box-shadow: 0 8px 25px rgba(31, 122, 140, 0.3);
}

/* Process Steps Connectors (Desktop) */
@media (min-width: 1024px) {
  .process-step {
    position: relative;
  }

  .process-step:not(:last-child):after {
    content: "";
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: -60px;
    width: 2px;
    background: linear-gradient(to bottom, #1f7a8c, #4fc3d6);
    opacity: 0.3;
  }
}

/* ============ CONTACT CARDS ============ */
.contact-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1f7a8c, #4fc3d6);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 20px 40px rgba(31, 122, 140, 0.15);
  border-color: rgba(31, 122, 140, 0.3);
  transform: translateY(-8px);
}

.contact-card:hover::before {
  transform: translateY(0);
}

.contact-card .w-16 {
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(31, 122, 140, 0.2);
}

.contact-card:hover .w-16 {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(31, 122, 140, 0.3);
}

/* ============ FAQ SECTION ============ */
.faq-item {
  cursor: pointer;
  background: linear-gradient(to right, rgba(31, 122, 140, 0.03), transparent);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #1f7a8c;
  background: linear-gradient(
    to right,
    rgba(31, 122, 140, 0.08),
    rgba(79, 195, 214, 0.03)
  );
  box-shadow: 0 4px 12px rgba(31, 122, 140, 0.1);
}

.faq-question {
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: #1f7a8c;
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  transition: all 0.3s ease;
}

.faq-answer p {
  color: #475569;
  line-height: 1.6;
}

/* ============ FORM SUCCESS ANIMATION ============ */
@keyframes formSuccess {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.form-success {
  animation: formSuccess 0.5s ease forwards;
}

/* ============ RESPONSIVE ADJUSTMENTS ============ */
@media (max-width: 1023px) {
  .contact-main .lg\:grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .process-section {
    order: -1;
  }
}

@media (max-width: 768px) {
  .alternative-contact .md\:grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-hero-section h2 {
    font-size: 2rem;
  }

  .contact-hero-section p.text-gray-200 {
    font-size: 1.125rem;
  }

  .process-step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .process-step .w-12 {
    margin: 0 auto;
  }

  /* Remove connector lines on mobile */
  .process-step:not(:last-child):after {
    display: none;
  }
}

@media (max-width: 640px) {
  .contact-hero-section .flex-col {
    gap: 1rem;
  }

  .contact-hero-section .text-sm {
    font-size: 0.875rem;
  }

  .contact-card {
    padding: 1.5rem;
  }
}

/* ============ ACCESSIBILITY ============ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #1f7a8c;
  outline-offset: 2px;
}

/* ============ GRADIENT TEXT UTILITY ============ */
.text-gradient-primary {
  background: linear-gradient(135deg, #1f7a8c, #4fc3d6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ ANIMATION FOR PAGE LOAD ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-main,
.alternative-contact,
.faq-section {
  animation: fadeInUp 0.6s ease-out;
}

.contact-main {
  animation-delay: 0.1s;
}

.alternative-contact {
  animation-delay: 0.2s;
}

.faq-section {
  animation-delay: 0.3s;
}

/* ============ SECTION BADGES ============ */
[class*="inline-block"] .fa {
  transition: transform 0.3s ease;
}

[class*="inline-block"]:hover .fa {
  transform: scale(1.1);
}

/* ============ BUTTON ENHANCEMENTS ============ */
.bg-gradient-to-r.from-\[\#1f7a8c\].to-\[\#1a697a\] {
  background-size: 200% 100%;
  transition: all 0.3s ease;
}

.bg-gradient-to-r.from-\[\#1f7a8c\].to-\[\#1a697a\]:hover {
  background-position: 100% 0;
}

/* ============ CARD HOVER EFFECTS ============ */
.hover\:-translate-y-2 {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ FORM VALIDATION STYLES ============ */
input:invalid,
textarea:invalid {
  border-color: #1a697a;
}

input:valid,
textarea:valid {
  border-color: #10b981;
}

/* ============ LOADING STATES ============ */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ============ PRINT STYLES ============ */
@media print {
  .contact-hero-section,
  .contact-card,
  .faq-item {
    break-inside: avoid;
    box-shadow: none;
  }

  .contact-hero-section::before,
  .contact-hero-section::after {
    display: none;
  }

  .bg-gradient-to-r {
    background: #1f7a8c !important;
  }
}
