/* Contact Page Modern Design */

/* Reset and base styles for contact page */
.contact-page {
  font-family: 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Contact Main Container */
.contact-main {
  min-height: 100vh;
  background: linear-gradient(135deg, #faf8f5 0%, #f5f3ef 100%);
}

/* Contact Hero Section */
.contact-hero {
  background: linear-gradient(135deg, #5e2737 0%, #4a1e2a 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/all_wines.png') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.contact-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.0rem);
  font-weight: 600;
  margin: 26px 0 10px;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fff, #c9a25d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-hero p {
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8c3bc;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
}

.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
  background: white;
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(94, 39, 55, 0.1);
}

.form-header {
  margin-bottom: 40px;
}

.form-header h2 {
  color: #5e2737;
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.form-header p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #5e2737;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 16px 20px;
  border: 2px solid #e8e5e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5e2737;
  background: white;
  box-shadow: 0 0 0 3px rgba(94, 39, 55, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 44px;
}

/* Submit Button */
.submit-btn {
  background: linear-gradient(135deg, #5e2737 0%, #4a1e2a 100%);
  color: white;
  border: none;
  padding: 18px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(94, 39, 55, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

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

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

/* Contact Info Wrapper */
.contact-info-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Wine Collection Card */
.wine-collection-card {
  background: linear-gradient(135deg, #5e2737 0%, #4a1e2a 100%);
  color: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(94, 39, 55, 0.3);
  grid-column: 1 / -1;
  margin-top: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wine-collection-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/all_wines.png') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.wine-collection-card > * {
  position: relative;
  z-index: 2;
}

.wine-collection-card h3 {
  color: white;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.wine-collection-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.wine-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  font-size: 1rem;
}

.feature-icon {
  font-size: 1.5rem;
  filter: brightness(1.2);
}

.wine-collection-btn {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  align-self: center;
  padding: 0.55rem 0.9rem;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid #d6cfc7;
  color: #7a0f2e;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(255,255,255,.6) inset;
}

.wine-collection-btn:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(186,140,90,.35), rgba(255,255,255,0) 60%);
  transform: translateX(-100%);
  transition: transform 1s;
}

.wine-collection-btn:hover:before {
  transform: translateX(100%);
}

.wine-collection-btn:hover {
  background: #f4eee8;
  border-color: #b05525;
  color: #b05525;
  transform: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(255,255,255,.6) inset;
}

.wine-collection-btn svg {
  transition: none;
  width: 16px;
  height: 16px;
}

/* Contact Info */
.contact-info {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(94, 39, 55, 0.1);
}

.contact-info h2 {
  color: #5e2737;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.contact-info > p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Info Grid */
.info-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  background: linear-gradient(135deg, #5e2737 0%, #4a1e2a 100%);
  color: white;
  padding: 12px;
  border-radius: 12px;
  flex-shrink: 0;
}

.info-content h4 {
  color: #5e2737;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.info-content p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Social Links */
.social-links {
  border-top: 1px solid #e8e5e0;
  padding-top: 32px;
}

.social-links h4 {
  color: #5e2737;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  letter-spacing: 0.5px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #5e2737;
  text-decoration: none;
  padding: 12px 16px;
  border: 2px solid #e8e5e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.social-link:hover {
  background: #5e2737;
  color: white;
  border-color: #5e2737;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(94, 39, 55, 0.2);
}

/* About Section */
.about-section {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(94, 39, 55, 0.1);
}

.about-section h3 {
  color: #5e2737;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.about-section p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Business Values */
.business-values {
  margin: 25px 0;
  padding: 16px 0;
  border-top: 1px solid #e8e5e0;
  border-bottom: 1px solid #e8e5e0;
}

.business-values h4 {
  color: #5e2737;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f9f7f5;
  border-radius: 12px;
  border: 1px solid rgba(94, 39, 55, 0.08);
  transition: all 0.3s ease;
}

.value-item:hover {
  background: #f5f1ed;
  border-color: rgba(94, 39, 55, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(94, 39, 55, 0.1);
}

.value-icon {
  font-size: 1.4rem;
  min-width: 24px;
  text-align: center;
}

.value-content h5 {
  color: #5e2737;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.value-content p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* Certifications */
.certifications {
  margin-top: 28px;
}

.certifications h4 {
  color: #5e2737;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cert-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cert-badge {
  background: linear-gradient(135deg, #5e2737 0%, #4a1e2a 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(94, 39, 55, 0.2);
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e8e5e0;
}

.highlight-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f9f7f5 0%, #f5f1ed 100%);
  border-radius: 12px;
  border: 1px solid rgba(94, 39, 55, 0.08);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(94, 39, 55, 0.12);
  border-color: rgba(94, 39, 55, 0.2);
}

.highlight-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 300;
  color: #5e2737;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.highlight-text {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .contact-info-wrapper {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .contact-form-wrapper,
  .contact-info,
  .about-section {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 100px 0 60px;
  }
  
  .contact-section {
    padding: 40px 0;
  }
  
  .contact-container {
    padding: 0 15px;
    gap: 40px;
  }
  
  .contact-form-wrapper,
  .contact-info,
  .about-section,
  .wine-collection-card {
    padding: 25px;
  }
  
  .form-header h2 {
    font-size: 1.8rem;
  }
  
  .contact-info h2 {
    font-size: 1.6rem;
  }
  
  .about-section h3,
  .wine-collection-card h3 {
    font-size: 1.5rem;
  }
  
  .wine-features {
    flex-direction: column;
    gap: 20px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .value-item {
    padding: 14px;
  }
  
  .cert-badges {
    justify-content: center;
  }
  
  .highlights {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .highlight-item {
    padding: 16px;
  }
  
  .highlight-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .contact-form-wrapper,
  .contact-info,
  .about-section,
  .wine-collection-card {
    padding: 20px;
  }
  
  .wine-collection-card h3 {
    font-size: 1.4rem;
  }
  
  .wine-collection-btn {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
  }
  
  .submit-btn {
    padding: 16px 24px;
  }
  
  .business-values h4,
  .certifications h4 {
    font-size: 1.1rem;
  }
  
  .value-content h5 {
    font-size: 0.9rem;
  }
  
  .value-content p {
    font-size: 0.8rem;
  }
  
  .cert-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
}

/* Light theme override for contact page */
.contact-page .contact-main {
  background: #faf8f5;
}

/* Ensure proper spacing with navigation */
.contact-page .contact-hero {
  margin-top: 0;
  padding-top: 140px;
}

/* Animation for form elements */
.form-group {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }

.submit-btn {
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.7s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
.submit-btn:focus {
  outline: 2px solid #5e2737;
  outline-offset: 2px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid #5e2737;
  outline-offset: 2px;
}

/* Error states */
.form-group input:invalid,
.form-group textarea:invalid {
  border-color: #dc3545;
}

.form-group input:invalid:focus,
.form-group textarea:invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}
