/* Contact Page Styles (unique to contact.njk) */

/* Contact Section Container */
.contact-section {
  background-color: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin-bottom: 3rem;
}

.contact-section,
section.relative {
  margin: 3rem auto;
  max-width: 700px;
  border-radius: 1rem;
  overflow: hidden;
}

/* Tabs */
.tab-btn-contact {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 1rem 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease;
}

.tab-btn-contact.active {
  color: #fff;
}

.tab-slider-contact {
  width: 50%;
  background-color: #0E162A; /* dark blue */
  border-radius: 0.375rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  z-index: 0;
  transition: transform 0.3s ease-in-out;
}

/* Tab Content Animation */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content.animate-fade-in {
  animation: fadeSlideUp 1.2s ease-out;
}

/* Tab Button Pop Animation */
@keyframes tabPop {
  0%   { transform: scale(0.95); opacity: 0.6; }
  50%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.tab-btn-contact.clicked {
  animation: tabPop 0.6s ease-in-out;
}

/* Decorative Flap Header */
.clip-flap {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

@media (max-width: 768px) {
  .clip-flap {
    clip-path: none;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
  }
}

/* Form Fields */
.form-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1; /* gray-300 */
  border-radius: 0.75rem;
  background-color: #fff;
  font-size: 1rem;
  color: #1e293b; /* gray-800 */
}

.form-field:focus {
  outline: none;
  border-color: #60a5fa; /* blue-400 */
  box-shadow: 0 0 0 3px #bfdbfe88; /* soft blue ring */
}

/* Sparkle Button */
.sparkle-button {
  background-color: #2563eb; /* blue-600 */
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.sparkle-button:hover {
  background-color: #1d4ed8; /* blue-700 */
}

.sparkle-button:hover .sparkle {
  animation: sparkle-pop 0.5s ease-in-out;
}

@keyframes sparkle-pop {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(8deg) scale(1.2); }
  50%  { transform: rotate(-8deg) scale(1.2); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Floating Plumbob Icon */
.floating-plumbob {
  width: 48px;
  animation: bobbing 2s infinite ease-in-out;
  margin: 0 auto 1rem;
}

@keyframes bobbing {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
