/* Enhanced Contact Section Styles */
.contact {
  position: relative;
  padding: 120px 0 100px;
  background: linear-gradient(
    135deg,
    rgba(245, 247, 250, 0.9) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><path fill="%23f0f0f0" d="M95,0 L95,95 L0,95" /></svg>');
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact .section-title {
  position: relative;
  margin-bottom: 15px;
}

.contact .section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.contact-subtitle {
  text-align: center;
  color: #777;
  font-size: 1.1rem;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 30px;
}

/* Contact wrapper with enhanced layout */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 60px;
  align-items: flex-start;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 30px;
}

/* Contact info section */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px 30px;
  background: var(--primary-color);
  color: #fff;
  height: 100%;
  position: relative;
}

.contact-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" width="100" height="100"/><circle fill="%23ffffff" opacity="0.1" cx="20" cy="20" r="10"/><circle fill="%23ffffff" opacity="0.1" cx="80" cy="80" r="30"/></svg>');
  background-size: 150px 150px;
  opacity: 0.2;
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
  position: relative;
}

.contact-info-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  padding-bottom: 15px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.contact-item:hover i {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.contact-item p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  padding-top: 8px;
}

.contact-item p a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.contact-item p a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.contact-item p a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.contact-item p a:hover::after {
  width: 100%;
}

.social-links-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 15px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-icon {
  background-color: #25d366;
  color: white;
}

.whatsapp-icon:hover {
  background-color: #22c55e;
}

/* Contact form section */
.contact-form {
  padding: 40px;
}

.contact-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--dark-text);
  position: relative;
}

.contact-form-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-text);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) inset;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
  outline: none;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.form-group .input-icon {
  position: absolute;
  left: 15px;
  top: 42px;
  color: #aaa;
  transition: all 0.3s ease;
}

.form-group input:focus + .input-icon,
.form-group textarea:focus + .input-icon,
.form-group select:focus + .input-icon {
  color: var(--primary-color);
}

.form-group.icon-input input,
.form-group.icon-input textarea,
.form-group.icon-input select {
  padding-left: 45px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit {
  text-align: right;
}

.btn-submit {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-submit:hover {
  background: var(--primary-color-dark, #0065a3);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-submit i {
  transition: transform 0.3s ease;
}

.btn-submit:hover i {
  transform: translateX(4px);
}

.form-message {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.form-message.success {
  display: block;
  background-color: #e7f5ea;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.form-message.error {
  display: block;
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

/* Contact section decorations */
.contact-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.contact-shape {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.shape-1 {
  width: 120px;
  height: 120px;
  background: linear-gradient(
    45deg,
    rgba(var(--primary-color-rgb), 0.1),
    rgba(var(--primary-color-rgb), 0.05)
  );
  top: 20%;
  left: 10%;
  animation: float1 20s infinite alternate ease-in-out;
}

.shape-2 {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    45deg,
    rgba(var(--accent-color-rgb), 0.1),
    rgba(var(--accent-color-rgb), 0.05)
  );
  top: 60%;
  right: 15%;
  animation: float2 15s infinite alternate ease-in-out;
}

@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-15px, 15px) rotate(5deg);
  }
  50% {
    transform: translate(15px, -15px) rotate(-5deg);
  }
  75% {
    transform: translate(-15px, -15px) rotate(3deg);
  }
}

@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(15px, 15px) rotate(-5deg);
  }
  50% {
    transform: translate(-15px, -10px) rotate(5deg);
  }
  75% {
    transform: translate(10px, -15px) rotate(-3deg);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 30px;
  }

  .contact-form {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 80px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-form-title,
  .contact-info-title {
    font-size: 1.3rem;
  }

  .contact-subtitle {
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  .contact-info,
  .contact-form {
    padding: 25px 20px;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

/* Map Container Styles */
.map-container {
  margin-top: 60px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  background-color: #fff;
  padding: 20px;
}

.map-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
  text-align: center;
}

.map-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.map-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 450px;
}

.map-wrapper iframe {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.map-actions .btn {
  padding: 12px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.map-actions .btn i {
  font-size: 1.1rem;
}

.map-actions .apple-maps {
  background-color: #000;
  border-color: #000;
}

.map-actions .apple-maps:hover {
  background-color: #333;
  border-color: #333;
}

.map-actions .google-maps {
  color: #4285f4;
  border-color: #4285f4;
}

.map-actions .google-maps:hover {
  background-color: #4285f4;
  color: white;
}

.map-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive styles for map */
@media screen and (max-width: 992px) {
  .map-container {
    margin-top: 40px;
  }

  .map-wrapper {
    height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .map-wrapper {
    height: 350px;
  }
}

@media screen and (max-width: 576px) {
  .map-container {
    padding: 15px;
    margin-top: 30px;
  }

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

  .map-wrapper {
    height: 300px;
  }

  .map-actions {
    flex-direction: column;
    width: 100%;
  }

  .map-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
