/* Contact page enhancements */
/* Modern contact form, address info, and map styling with responsive design */

.contact-area {
  scroll-margin-top: 80px;
}

/* Google map container */
.google-map-area {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
  padding: 4rem 0 2rem 0;
}

#googleMap {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 4px solid #ffffff;
}

/* Contact box styling */
.contact-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  margin-top: -50px;
  z-index: 10;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 20px 20px 0 0;
}

/* Contact info section */
.contact-info {
  background: linear-gradient(135deg, var(--primary-color-ultra-light), rgba(255,255,255,0.9));
  padding: 2.5rem;
  width: 100%;
  position: relative;
}

.contact-info::before {
  content: '📍';
  position: absolute;
  top: -15px;
  right: 30px;
  font-size: 28px;
  background: white;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact title styling */
.contact-title {
  color: var(--primary-color) !important;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: capitalize;
  position: relative;
  font-size: 1.5rem;
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Address items */
.single-address {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid var(--primary-color);
}

.single-address:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  background: var(--primary-color-ultra-light);
}

.single-address .icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 12px var(--primary-shadow);
  font-size: 20px;
}

.single-address .icon-text {
  flex: 1;
  line-height: 1.6;
}

.single-address .icon-text p {
  margin: 0;
  color: #374151;
  font-weight: 500;
}

/* Contact form section */
.contact-form {
  padding: 2.5rem;
  background: #ffffff;
  position: relative;
}

.contact-form::before {
  content: '✉️';
  position: absolute;
  top: -15px;
  right: 30px;
  font-size: 28px;
  background: white;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form styling */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fafbfc;
  width: 100%;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-light);
  background: #ffffff;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Submit button */
.shopping-button {
  margin-top: 1rem;
}

.shopping-button button {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 15px var(--primary-shadow);
}

.shopping-button button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-shadow);
}

.shopping-button button:active {
  transform: translateY(0);
}

/* Form message */
.form-messege {
  margin-top: 1rem;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-messege.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.form-messege.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

/* Contact features list (if you want to add any) */
.contact-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.contact-features li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  background: var(--primary-color-ultra-light);
}

.contact-features .feature-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--primary-gradient);
  box-shadow: 0 3px 10px var(--primary-shadow);
  font-size: 18px;
}

.contact-features .feature-text {
  flex: 1;
  line-height: 1.6;
  color: #333;
  font-weight: 500;
}

/* Quick contact section */
.quick-contact {
  background: linear-gradient(135deg, var(--primary-color-ultra-light), rgba(255,255,255,0.95));
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  border: 2px solid var(--primary-color-light);
  position: relative;
}

.quick-contact::before {
  content: '🚀';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  background: white;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-contact h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.quick-contact p {
  color: #6b7280;
  margin: 0;
}

/* Responsive design */
@media (min-width: 768px) {
  .contact-box {
    display: flex;
  }
  
  .contact-info,
  .contact-form {
    width: 50%;
  }
  
  .contact-info {
    border-radius: 20px 0 0 20px;
  }
  
  .contact-form {
    border-radius: 0 20px 20px 0;
  }
  
  .contact-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 992px) {
  #googleMap {
    height: 450px;
  }
  
  .contact-features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Mobile optimization */
@media (max-width: 767px) {
  .google-map-area {
    padding: 2rem 0 1rem 0;
  }
  
  #googleMap {
    height: 300px;
    border-radius: 16px;
    border: 2px solid #ffffff;
  }
  
  .contact-box {
    margin-top: -30px;
    border-radius: 16px;
  }
  
  .contact-info,
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .contact-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
  
  .single-address {
    padding: 14px;
    margin-bottom: 1rem;
  }
  
  .single-address .icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 14px 18px;
  }
  
  .contact-form textarea {
    min-height: 100px;
  }
  
  .quick-contact {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  .google-map-area {
    padding: 1.5rem 0 0.5rem 0;
  }
  
  #googleMap {
    height: 250px;
    border-radius: 12px;
  }
  
  .contact-box {
    margin-top: -20px;
    border-radius: 12px;
  }
  
  .contact-info,
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .contact-title {
    font-size: 1.2rem;
  }
  
  .single-address {
    padding: 12px;
    gap: 12px;
  }
  
  .single-address .icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-radius: 10px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .shopping-button button {
    padding: 14px 28px;
    font-size: 15px;
  }
  
  .contact-features li {
    padding: 14px 16px;
    gap: 12px;
  }
  
  .contact-features .feature-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .quick-contact {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .contact-info::before,
  .contact-form::before,
  .quick-contact::before {
    font-size: 20px;
    padding: 6px;
  }
}

/* Animation for contact elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-box {
  animation: fadeInUp 0.8s ease-out;
}

.single-address {
  animation: fadeInUp 0.6s ease-out;
}

.single-address:nth-child(2) { animation-delay: 0.1s; }
.single-address:nth-child(3) { animation-delay: 0.2s; }
.single-address:nth-child(4) { animation-delay: 0.3s; }

/* Success message styling */
.swal2-popup {
  border-radius: 16px !important;
}

.swal2-confirm {
  background-color: var(--primary-color) !important;
  border-radius: 8px !important;
}
