/* Contact Page Specific Styles */
.contact-hero {
  background: linear-gradient(
      135deg,
      rgba(6, 6, 6, 0.8) 0%,
      rgba(55, 105, 131, 0.7) 100%
    ),
    url("../img/pexels-kindelmedia-7979605[1].jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="contact-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="%23ddbd7f" opacity="0.15"/></pattern></defs><rect width="100%" height="100%" fill="url(%23contact-pattern)"/></svg>');
  animation: patternFloat 20s ease-in-out infinite;
}

.contact-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 30% 70%,
      rgba(221, 189, 127, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(55, 105, 131, 0.1) 0%,
      transparent 50%
    );
  animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes patternFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(2deg);
  }
}

@keyframes gradientShift {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.contact-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.contact-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  animation: heroTitleSlide 1.2s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.contact-hero h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary-gold);
  animation: titleUnderline 1.5s ease-out 0.8s forwards;
}

@keyframes heroTitleSlide {
  0% {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes titleUnderline {
  0% {
    width: 0;
  }
  100% {
    width: 100px;
  }
}

.contact-hero p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  animation: heroTextFade 1s ease-out 0.5s both;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.7;
}

@keyframes heroTextFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  color: rgba(221, 189, 127, 0.3);
  font-size: 2rem;
  animation: floatRandom 8s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-icon:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

.floating-icon:nth-child(4) {
  top: 40%;
  right: 30%;
  animation-delay: 6s;
}

@keyframes floatRandom {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(5deg);
  }
  50% {
    transform: translateY(10px) translateX(-15px) rotate(-3deg);
  }
  75% {
    transform: translateY(-15px) translateX(20px) rotate(8deg);
  }
}

.contact-main {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
  position: relative;
  overflow: hidden;
}

.contact-main .row {
  align-items: stretch;
}

.contact-main::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 C300,120 900,0 1200,60 L1200,0 L0,0 Z" fill="%23ffffff" opacity="0.8"/></svg>');
  background-size: cover;
  animation: waveMove 10s ease-in-out infinite;
}

@keyframes waveMove {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-100px);
  }
}

.contact-info-card {
  background: white;
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(221, 189, 127, 0.2);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
}

.contact-info-card.animate {
  opacity: 1;
  transform: translateY(0);
  animation: cardSlideUp 0.8s ease-out forwards;
}

.contact-info-card:nth-child(1) {
  animation-delay: 0.2s;
}
.contact-info-card:nth-child(2) {
  animation-delay: 0.4s;
}
.contact-info-card:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes cardSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(221, 189, 127, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.contact-info-card:hover::before {
  left: 100%;
}

.contact-info-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
  border-color: rgba(221, 189, 127, 0.4);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary-dark);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.contact-info-card:hover .contact-icon::before {
  width: 100px;
  height: 100px;
}

.contact-icon i {
  position: relative;
  z-index: 2;
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.contact-info-card:hover .contact-info-title {
  color: var(--primary-blue);
}

.contact-info-text {
  color: #555;
  line-height: 1.8;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-text {
  color: #333;
  transform: translateX(5px);
}

.contact-form-container {
  background: white;
  border-radius: 30px;
  padding: 4rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(221, 189, 127, 0.2);
  position: relative;
  overflow: hidden;
  animation: formSlideIn 1s ease-out 0.8s both;
}

@keyframes formSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.contact-form-container::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(221, 189, 127, 0.05) 0%,
    transparent 70%
  );
  animation: formGlow 8s ease-in-out infinite;
}

@keyframes formGlow {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.form-label {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
  display: block;
  transition: all 0.3s ease;
  position: relative;
}

.form-control {
  border: 2px solid rgba(221, 189, 127, 0.3);
  border-radius: 15px;
  padding: 15px 25px;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(248, 249, 250, 0.5);
  position: relative;
  z-index: 1;
}

.form-control:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 0.3rem rgba(221, 189, 127, 0.25);
  background: white;
  transform: translateY(-2px);
}

.form-control:hover {
  border-color: rgba(221, 189, 127, 0.5);
  transform: translateY(-1px);
}

.form-group::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.4s ease;
  z-index: 0;
}

.form-group:focus-within::before {
  width: 100%;
}

.submit-btn {
  background: var(--gradient-gold);
  color: var(--primary-dark);
  border: none;
  padding: 18px 50px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(221, 189, 127, 0.3);
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.submit-btn:hover::before {
  width: 300px;
  height: 300px;
}

.submit-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(221, 189, 127, 0.4);
  color: var(--primary-dark);
}

.submit-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.submit-btn .btn-text {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.map-container {
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(221, 189, 127, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  animation: mapFadeIn 1s ease-out 1.2s both;
  height: auto;
}

.map-header {
  padding: 25px 20px 15px;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-blue) 100%
  );
  color: white;
  position: relative;
}

.map-icon {
  font-size: 2.5rem;
  color: var(--primary-gold);
  margin-bottom: 10px;
  display: block;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.map-header h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.map-header p {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.9;
}

.map-iframe-container {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.map-iframe-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
  transition: transform 0.3s ease;
}

.map-iframe-container:hover iframe {
  transform: scale(1.02);
}

.map-footer {
  padding: 20px;
  text-align: center;
  background: rgba(221, 189, 127, 0.05);
  border-top: 1px solid rgba(221, 189, 127, 0.1);
}

.map-footer p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.map-footer p:first-child {
  color: var(--primary-dark);
  font-weight: 600;
}

@keyframes mapFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.map-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(221, 189, 127, 0.1) 0%,
    transparent 70%
  );
  animation: mapPulse 4s ease-in-out infinite;
}

@keyframes mapPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.success-message,
.error-message {
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: none;
  animation: messageSlideDown 0.5s ease-out;
  position: relative;
  overflow: hidden;
}

@keyframes messageSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-message {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-cta {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    #1a1a1a 50%,
    var(--primary-blue) 100%
  );
  padding: 80px 0;
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="cta-pattern" width="80" height="80" patternUnits="userSpaceOnUse"><circle cx="40" cy="40" r="1.5" fill="%23ddbd7f" opacity="0.2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23cta-pattern)"/></svg>');
  animation: ctaPatternMove 25s linear infinite;
}

@keyframes ctaPatternMove {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(80px) translateY(80px);
  }
}

.contact-cta h2 {
  position: relative;
  z-index: 2;
  animation: ctaTitleBounce 1s ease-out;
}

@keyframes ctaTitleBounce {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.whatsapp-cta,
.call-cta {
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 15px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.whatsapp-cta {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
}

.call-cta {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2c5c7a 100%);
  color: white;
}

.whatsapp-cta::before,
.call-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.whatsapp-cta:hover::before,
.call-cta:hover::before {
  width: 200px;
  height: 200px;
}

.whatsapp-cta:hover,
.call-cta:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-hero {
    background-attachment: scroll;
    padding: 120px 0 60px;
  }

  .contact-hero h1 {
    font-size: 2.5rem;
  }

  .contact-hero p {
    font-size: 1.1rem;
  }

  .contact-form-container,
  .contact-info-card {
    padding: 2.5rem;
  }

  .map-container {
    margin-bottom: 2rem;
  }

  .map-header {
    padding: 20px 15px 12px;
  }

  .map-icon {
    font-size: 2rem;
  }

  .map-header h4 {
    font-size: 1.2rem;
  }

  .map-header p {
    font-size: 0.85rem;
  }

  .map-iframe-container iframe {
    height: 250px;
  }

  .map-footer {
    padding: 15px;
  }

  .map-footer p {
    font-size: 0.8rem;
  }

  .whatsapp-cta,
  .call-cta {
    display: block;
    margin: 15px auto;
    text-align: center;
    max-width: 250px;
  }

  .floating-icon {
    display: none;
  }
}

/* Loading Animation */
.form-loading {
  position: relative;
}

.form-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 25px;
  margin: -12px 0 0 -12px;
  border: 3px solid transparent;
  border-top: 3px solid var(--primary-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Additional Micro Animations */
.contact-info-text a {
  transition: all 0.3s ease;
  position: relative;
}

.contact-info-text a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: width 0.3s ease;
}

.contact-info-text a:hover::after {
  width: 100%;
}

/* Particle Effect */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(221, 189, 127, 0.6);
  border-radius: 50%;
  animation: particleFloat 6s linear infinite;
  pointer-events: none;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100px) translateX(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) translateX(50px);
  }
}
