/**
 * Published Contact & RFQ Styles
 * Reference: https://tenddy.shop/store/ayme-pet (T5 Contact & Quote Form)
 * Measured from .runtime/published-acceptance/reference-contact-styles.json
 */

/* Override legacy .quote-section rules for published contact */
.published-contact-section.quote-section,
.quote-section.published-contact-section,
section.published-contact-section {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 32px 0 !important;
  background-color: #ffffff !important;
  display: block !important;
  border-top: 1px solid var(--border, #e2e8f0);
  box-sizing: border-box;
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  color: #0f172a;
}

@media (min-width: 640px) {
  .published-contact-section.quote-section,
  .quote-section.published-contact-section,
  section.published-contact-section {
    padding: 64px 0 !important;
  }
}

.contact-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .contact-container {
    padding: 0 24px;
  }
}

/* Header spanning top of section */
.section-header,
.published-contact-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 0;
}

@media (min-width: 640px) {
  .section-header,
  .published-contact-header {
    margin: 0 auto 48px;
  }
}

.section-tag,
.published-contact-badge {
  display: inline-block;
  color: rgb(166, 28, 46);
  background-color: rgb(253, 242, 244);
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 13.12px;
  font-weight: 700;
  line-height: 20.992px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5.6px 14.4px;
  border-radius: 6px;
  border-left: 3px solid rgb(166, 28, 46);
  margin-bottom: 12px;
}

.section-title,
.published-contact-title {
  color: rgb(31, 46, 77);
  font-family: 'Montserrat', sans-serif;
  font-size: 38.4px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: normal !important;
  margin: 0 0 8px;
}

@media (max-width: 768px) {
  .section-title,
  .published-contact-title {
    font-size: 28px;
    line-height: 36px;
  }
}

.section-subtitle,
.published-contact-subtitle {
  color: rgb(71, 85, 105);
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 16.8px;
  font-weight: 400;
  line-height: 25.2px;
  letter-spacing: normal;
  max-width: 720px;
  margin: 0 auto;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 64px;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
  }
}

/* Form Card */
.contact-card-box,
.quote-form-card.published-contact-card,
.published-contact-card {
  background: rgb(255, 255, 255) !important;
  border: 1px solid rgb(226, 232, 240) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 640px) {
  .contact-card-box,
  .quote-form-card.published-contact-card,
  .published-contact-card {
    padding: 40px !important;
  }
}

.published-contact-card.highlight {
  border-color: rgb(166, 28, 46) !important;
  box-shadow: 0 0 0 4px rgba(166, 28, 46, 0.25) !important;
}

.published-form-header {
  margin-bottom: 28px;
}

.published-form-title {
  color: rgb(166, 28, 46);
  font-family: 'Montserrat', sans-serif;
  font-size: 21.6px;
  font-weight: 700;
  line-height: 27px;
  margin: 0 0 6.4px;
}

.published-form-subtitle {
  color: rgb(71, 85, 105) !important;
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 14.4px;
  font-weight: 400;
  line-height: 23.04px !important;
  margin: 0;
}

/* Form fields grid */
.custom-contact-form,
.published-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.form-group-row,
.published-fields-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 20px !important;
  margin-bottom: 20px !important;
}

@media (min-width: 640px) {
  .form-group-row,
  .published-fields-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
}

.form-group,
.published-field-group {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 20px !important;
  gap: 0 !important;
}

.form-label,
.published-field-label {
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 14.08px;
  font-weight: 700;
  line-height: 22.528px;
  letter-spacing: normal;
  color: rgb(31, 46, 77);
  display: block;
  margin-bottom: 6.4px;
}

.published-field-label .req {
  color: inherit;
  font-weight: inherit;
}

.form-input,
.published-input,
.form-select,
.published-select {
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 15.2px;
  line-height: 24.32px;
  color: rgb(15, 23, 42);
  background-color: rgb(241, 245, 249);
  border: 1px solid rgb(226, 232, 240);
  border-radius: 6px;
  padding: 13.6px 18.4px;
  height: 53.5px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select,
.published-select {
  height: 50.1875px;
  cursor: pointer;
}

.form-textarea,
.published-textarea {
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 15.2px;
  line-height: 24.32px;
  color: rgb(15, 23, 42);
  background-color: rgb(241, 245, 249);
  border: 1px solid rgb(226, 232, 240);
  border-radius: 6px;
  padding: 13.6px 18.4px;
  min-height: 102px;
  height: 102.125px;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder,
.published-input::placeholder,
.form-textarea::placeholder,
.published-textarea::placeholder {
  color: rgb(148, 163, 184);
}

.form-input:focus,
.published-input:focus,
.form-select:focus,
.published-select:focus,
.form-textarea:focus,
.published-textarea:focus {
  outline: none;
  border-color: rgb(166, 28, 46);
  box-shadow: 0 0 0 3px rgba(166, 28, 46, 0.15);
}

/* Green WhatsApp submit CTA */
.btn-whatsapp,
.published-btn-submit {
  background-image: linear-gradient(135deg, rgb(37, 211, 102), rgb(18, 140, 126));
  color: rgb(255, 255, 255);
  font-family: 'Instrument Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 16.8px;
  font-weight: 600;
  line-height: 26.88px;
  border: 0;
  border-radius: 6px;
  height: 58.875px;
  padding: 16px 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.published-btn-submit:hover,
.btn-whatsapp:hover {
  opacity: 0.95;
}

.published-btn-submit:active,
.btn-whatsapp:active {
  transform: translateY(1px);
}

.published-btn-submit svg,
.btn-whatsapp svg {
  flex-shrink: 0;
}

/* Catalog feedback banner */
.published-feedback-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.8125rem;
  padding: 0.625rem 0.85rem;
  border-radius: 6px;
  margin-top: 0.75rem;
  display: none;
}

.published-feedback-banner.visible {
  display: block;
}
