/**
 * Contact Page styles for PetFoodsStore theme
 * Styled to match the Winnie the Pooh inspired honey pot aesthetic
 */

/* Main contact page container */
.contact-page-template {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* Honey drip decorative element */
.contact-page-template::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 40px;
  background-color: var(--honey-gold);
  border-radius: 0 0 7px 7px;
  opacity: 0.8;
  z-index: 1;
}

.contact-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Header section layout */
.contact-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.contact-header-content {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.contact-header-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.contact-featured-image {
  max-width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

.contact-featured-image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.page-title {
  color: var(--text-brown);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--honey-gold);
  border-radius: var(--border-radius-sm);
}

.contact-description {
  margin-top: var(--spacing-md);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Content layout */
.contact-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.contact-details {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-form-container {
  flex: 2;
  min-width: 450px;
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

/* Honey pot decoration for form */
.contact-form-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 15%;
  width: 15px;
  height: 0;
  background-color: var(--honey-gold);
  border-radius: 0 0 7px 7px;
  transition: height 0.5s ease;
  opacity: 0.8;
  z-index: 2;
}

.contact-form-container:hover::after {
  height: 25px;
}

/* Contact info cards */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-color: var(--light-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--honey-gold);
  font-size: 1.5rem;
}

.contact-info-content {
  flex: 1;
}

.contact-info-content h3 {
  color: var(--text-brown);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
  font-weight: var(--font-weight-semibold);
}

.contact-info-content p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.contact-info-content a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-content a:hover {
  color: var(--honey-gold);
}

/* Form styles */
.contact-form-title {
  color: var(--text-brown);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
}

.contact-form-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--honey-gold);
  border-radius: var(--border-radius-sm);
}

.form-group {
  margin-bottom: var(--spacing-md);
  width: calc(50% - var(--spacing-sm));
  display: inline-block;
  vertical-align: top;
}

.form-group.full-width {
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--text-brown);
  font-weight: var(--font-weight-medium);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--light-cream);
  color: var(--text-brown);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--honey-gold);
  box-shadow: 0 0 0 2px rgba(232, 166, 74, 0.2);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xs);
}

.pet-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.pet-checkbox input[type="checkbox"] {
  margin-right: var(--spacing-xs);
  accent-color: var(--honey-gold);
}

span.required {
  color: var(--tigger-orange);
}

.form-submit {
  margin-top: var(--spacing-lg);
  text-align: center;
}

.contact-submit-button {
  background-color: var(--honey-gold);
  color: white;
  border: none;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm) var(--spacing-xl);
  font-size: 1.1rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.contact-submit-button:hover {
  background-color: var(--hunny-pot);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

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

.contact-submit-button:hover i {
  transform: translateX(5px);
}

.form-response {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  display: none;
}

.form-response.success {
  background-color: rgba(91, 125, 82, 0.1);
  color: var(--forest-green);
  display: block;
}

.form-response.error {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  display: block;
}

/* Honey pot animation */
@keyframes honeyDrip {
  0% {
    height: 0;
  }
  100% {
    height: 25px;
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .contact-page-header {
    flex-direction: column;
  }
  
  .contact-header-content,
  .contact-header-image {
    width: 100%;
  }
  
  .contact-header-image {
    order: -1;
    margin-bottom: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .form-group {
    width: 100%;
  }
  
  .contact-details,
  .contact-form-container {
    min-width: 100%;
  }
}

/* Form submission loading animation */
.form-loading {
  position: relative;
}

.form-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--border-radius-lg);
}

.form-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid var(--light-cream);
  border-top: 4px solid var(--honey-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
