/* Eastman enquiry forms — shared styles (main site modal + landing pages) */

.modal-moq-note,
.form-moq-note {
  margin: 4px 0 8px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #475569;
  font-weight: 400;
}

/* Main site modal — title + MOQ */
.enquiry-modal .modal-head {
  padding: 22px 18px 14px;
  box-sizing: border-box;
}

.enquiry-modal .modal-head h3 {
  margin: 0 0 8px;
  padding-right: 36px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.enquiry-modal .modal-head .modal-moq-note {
  margin: 0 0 2px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #475569;
}

/* Landing — identical card layout (Mexico + Brazil) */
.hero-form-card {
  box-sizing: border-box;
}

.hero-form-card .hero-form-top {
  padding: 12px 16px 8px;
  box-sizing: border-box;
}

.hero-form-card .hero-form-top h2 {
  margin: 0 0 4px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-form-card .hero-form-top .form-moq-note,
.hero-form-card .hero-form-top > p.form-moq-note,
.hero-form-card .hero-form-top > p:not(.form-status) {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1 !important;
}

.hero-form-card .hero-form,
.hero-form-card #quote-form {
  margin: 0;
  padding: 8px 16px 14px;
  box-sizing: border-box;
}

.hero-form-card #quote-form .eastman-form-field {
  margin-bottom: 7px;
}

.hero-form-card #quote-form .eastman-form-row {
  gap: 8px;
  margin-bottom: 7px;
}

.hero-form-card #quote-form .eastman-form-actions {
  margin-top: 6px;
}

.field-hint {
  font-weight: 400;
  font-size: 0.7rem;
  color: #718096;
}

/* ---- MOQ / info banner ---- */
.eastman-moq-banner,
.eastman-qualify-banner {
  background: #f6f7f9;
  border: 1px solid #dde1e8;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 0 0 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #3d4555;
}

.eastman-qualify-banner h4 {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1f2e;
  line-height: 1.35;
}

.eastman-qualify-banner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.eastman-qualify-banner li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0 0 3px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #3d4555;
}

.eastman-qualify-banner li:last-child {
  margin-bottom: 0;
}

.eastman-qualify-banner li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4a5568;
  font-weight: 600;
  font-size: 0.7rem;
}

/* ---- Qualify gate ---- */
.eastman-qualify-gate {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.eastman-qualify-q label.eastman-qualify-q-label,
.eastman-qualify-q .eastman-qualify-q-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1f2e;
  margin-bottom: 5px;
}

.eastman-qualify-options {
  display: grid;
  gap: 6px;
}

.eastman-qualify-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  min-height: 44px;
  border: 1px solid #dde1e8;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.eastman-qualify-option:hover {
  border-color: #b8c0cc;
}

.eastman-qualify-option:has(input:focus-visible) {
  outline: 2px solid #4a5568;
  outline-offset: 1px;
}

.eastman-qualify-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #2d3748;
}

.eastman-qualify-option span {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #2d3748;
}

.eastman-qualify-decline {
  display: none;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #4a5568;
  margin-bottom: 8px;
}

.eastman-qualify-decline.is-visible {
  display: block;
}

.eastman-qualify-fields {
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.eastman-qualify-fields.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ---- Field blocks (landing + modal) ---- */
.eastman-form-field,
.enquiry-modal .field,
.modal-form .field,
#quote-form .eastman-form-field {
  margin-bottom: 8px;
}

.eastman-form-field label,
.eastman-form-field > span.field-label,
.enquiry-modal .field > label,
.modal-form .field > label,
.modal-form .field > .field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #1a1f2e;
}

.eastman-form-field input[type="text"],
.eastman-form-field input[type="email"],
.eastman-form-field input[type="tel"],
.eastman-form-field select,
.eastman-form-field textarea,
.enquiry-modal .field input[type="text"],
.enquiry-modal .field input[type="email"],
.enquiry-modal .field input[type="tel"],
.enquiry-modal .field input[type="url"],
.enquiry-modal .field select,
.enquiry-modal .field textarea,
.modal-form .field input[type="text"],
.modal-form .field input[type="email"],
.modal-form .field input[type="tel"],
.modal-form .field input[type="url"],
.modal-form .field select,
.modal-form .field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #dde1e8;
  border-radius: 6px;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.35;
  background: #fff;
  color: #1a1f2e;
  min-height: 40px;
}

.eastman-form-field textarea,
.enquiry-modal .field textarea,
.modal-form .field textarea {
  min-height: 64px;
  resize: vertical;
}

.eastman-form-row,
.modal-form .m-row {
  display: grid;
  gap: 10px;
}

@media (min-width: 520px) {
  .eastman-form-row,
  .modal-form .m-row {
    grid-template-columns: 1fr 1fr;
  }
}

.eastman-other-field {
  display: none !important;
  margin-top: 6px;
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.eastman-other-field.is-visible {
  display: block !important;
  height: auto !important;
  min-height: 40px !important;
  padding: 8px 10px !important;
  border: 1px solid #dde1e8 !important;
  overflow: visible !important;
}

input.eastman-other-field[hidden]:not(.is-visible) {
  display: none !important;
}

/* ---- Product dropdown multi-select ---- */
.eastman-multiselect {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.eastman-multiselect-trigger {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #dde1e8;
  border-radius: 6px;
  background: #fff;
  color: #1a1f2e;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  box-sizing: border-box;
}

.eastman-multiselect-trigger:hover {
  border-color: #b8c0cc;
}

.eastman-multiselect.is-open .eastman-multiselect-trigger,
.eastman-multiselect-trigger:focus-visible {
  border-color: #4a5568;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 85, 104, 0.15);
}

.eastman-multiselect.is-invalid .eastman-multiselect-trigger {
  border-color: #e53e3e;
}

.eastman-multiselect-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eastman-multiselect-text.is-placeholder {
  color: #718096;
}

.eastman-multiselect-chevron {
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.15s ease;
}

.eastman-multiselect.is-open .eastman-multiselect-chevron {
  transform: rotate(180deg);
}

.eastman-multiselect-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  width: 100%;
  z-index: 1200;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dde1e8;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  padding: 6px;
  box-sizing: border-box;
  max-height: 220px;
}

.eastman-multiselect-panel:not([hidden]) {
  display: block;
}

.eastman-multiselect-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #1a1f2e;
  margin: 0;
}

.eastman-multiselect-option:hover {
  background: #f8fafc;
}

.eastman-multiselect-option input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  margin: 2px 0 0 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 2px !important;
  display: block !important;
  flex: 0 0 16px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  accent-color: #2d3748;
}

.eastman-multiselect-option span {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.enquiry-modal .field.js-field-products,
.hero-form-card .js-field-products,
.hero-form-card .hero-form,
.hero-form-card #quote-form {
  overflow: visible;
}

.hero-form-card:has(.eastman-multiselect.is-open) {
  position: relative;
  z-index: 30;
}

.enquiry-modal .modal-form .field.js-field-products {
  position: relative;
  z-index: 1;
}

.enquiry-modal .modal-form .field.js-field-products:has(.eastman-multiselect.is-open) {
  z-index: 5;
}

.eastman-phone-row,
.enquiry-modal .phone-field,
.modal-form .phone-field {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.eastman-phone-row select,
.enquiry-modal .phone-code,
.modal-form .phone-code,
.eastman-phone-row .phone-code {
  flex: 0 0 30%;
  width: 30%;
  max-width: 30%;
  min-width: 0;
}

.eastman-phone-row input,
.enquiry-modal .phone-number,
.modal-form .phone-number {
  flex: 0 0 70%;
  width: 70%;
  max-width: 70%;
  min-width: 0;
}

/* ---- Multi-select checkbox grids ---- */
.eastman-check-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .eastman-check-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .eastman-check-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.eastman-check-grid--inline {
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .eastman-check-grid--inline {
    grid-template-columns: 1fr 1fr;
  }
}

.eastman-check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #dde1e8;
  border-radius: 6px;
  background: #fff;
  font-size: 0.8125rem;
  line-height: 1.35;
  cursor: pointer;
  box-sizing: border-box;
}

.eastman-check-grid label:has(input:checked) {
  border-color: #4a5568;
  background: #f8fafc;
}

.eastman-check-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #2d3748;
}

.eastman-check-grid.is-invalid {
  outline: 2px solid #e53e3e;
  outline-offset: 2px;
  border-radius: 6px;
  padding: 4px;
}


/* ---- Product multi-select ---- */
.eastman-product-select,
select.eastman-product-select,
select[name="products"][multiple] {
  width: 100%;
  min-height: 110px;
  padding: 6px 8px;
  border: 1px solid #dde1e8;
  border-radius: 6px;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.4;
  background: #fff;
  color: #1a1f2e;
}

.eastman-product-select option {
  padding: 6px 8px;
}

.eastman-product-select option:checked {
  background: #2d3748 linear-gradient(0deg, #2d3748 0%, #2d3748 100%);
  color: #fff;
}

.field-hint {
  font-weight: 400;
  color: #667085;
  font-size: 0.75rem;
}

/* ---- Product checkboxes (legacy) ---- */
.eastman-product-grid {
  display: grid;
  gap: 5px;
  margin-top: 4px;
}

@media (min-width: 480px) {
  .eastman-product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.eastman-product-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  min-height: 40px;
  border: 1px solid #eef0f4;
  border-radius: 6px;
  font-size: 0.8125rem;
  line-height: 1.35;
  cursor: pointer;
  box-sizing: border-box;
}

.eastman-product-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #2d3748;
}

.eastman-product-grid.is-invalid {
  outline: 2px solid #e53e3e;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Modal layout rows ---- */
.enquiry-modal .m-row,
.modal-form .m-row {
  display: grid;
  gap: 10px;
}

@media (min-width: 520px) {
  .enquiry-modal .m-row,
  .modal-form .m-row {
    grid-template-columns: 1fr 1fr;
  }
}

.enquiry-modal .modal-form {
  max-height: min(78vh, 720px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 18px 18px;
  box-sizing: border-box;
}

.enquiry-modal .modal-form:has(.eastman-multiselect.is-open) {
  overflow: visible;
}

.enquiry-modal .modal-product {
  margin: 0 18px 10px;
}

/* ---- Form action buttons (modal + landing) ---- */
.modal-actions,
.eastman-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

.modal-actions .btn,
.eastman-form-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  white-space: normal;
}

.modal-actions .btn svg,
.eastman-form-actions .btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.modal-actions .btn-primary,
.eastman-form-actions .btn-primary {
  background: #c8102e;
  color: #fff;
}

.modal-actions .btn-primary:hover,
.eastman-form-actions .btn-primary:hover {
  background: #a50d26;
}

.modal-actions .btn-wa,
.eastman-form-actions .btn-wa {
  background: #25d366;
  color: #fff;
}

.modal-actions .btn-wa:hover,
.eastman-form-actions .btn-wa:hover {
  background: #1fb855;
}

.modal-actions .btn:disabled,
.eastman-form-actions .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.eastman-form-error {
  color: #b42318;
  font-size: 0.75rem;
  margin-top: 3px;
}

/* ---- Landing hero form card ---- */
#quote-form {
  max-width: 100%;
  box-sizing: border-box;
}

.hero-form-card #quote-form,
.hero-form-card .hero-form,
.hero-form #quote-form {
  font-size: 0.875rem;
  width: 100%;
  box-sizing: border-box;
}

.hero-form-card .eastman-form-row,
.hero-form-card .eastman-form-field,
.hero-form-card .eastman-form-actions {
  max-width: 100%;
  box-sizing: border-box;
}

.form-status {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
}

.form-status.error {
  color: #b42318;
}

.form-status.success {
  color: #027a48;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .eastman-phone-row,
  .enquiry-modal .phone-field,
  .modal-form .phone-field {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .eastman-phone-row select,
  .enquiry-modal .phone-code,
  .modal-form .phone-code,
  .eastman-phone-row .phone-code {
    flex: 0 0 34%;
    width: 34%;
    max-width: 34%;
  }

  .eastman-phone-row input,
  .enquiry-modal .phone-number,
  .modal-form .phone-number {
    flex: 1 1 66%;
    width: auto;
    max-width: none;
  }

  .enquiry-modal .m-row,
  .modal-form .m-row,
  .eastman-form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .enquiry-modal .modal-form {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 16px;
  }

  .enquiry-modal .modal-head {
    padding: 18px 14px 12px;
  }

  .enquiry-modal .modal-product {
    margin-left: 14px;
    margin-right: 14px;
  }

  .modal-actions,
  .eastman-form-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .eastman-form-field input,
  .eastman-form-field select,
  .enquiry-modal .field input,
  .enquiry-modal .field select,
  .modal-form .field input,
  .modal-form .field select {
    font-size: 16px;
  }
}

@media (max-width: 374px) {
  .eastman-qualify-option,
  .eastman-product-grid label {
    padding: 8px;
  }
}

/* ---- Landing page product cards (Mexico / Brazil) ---- */
.product-btns {
  margin-top: auto;
  padding-top: 10px;
}

.product-btns .btn-product-cotizar {
  width: 100%;
  justify-content: center;
  font-size: 0.82rem;
  padding: 9px 12px;
}

.product-card .btn-product-cotizar:hover {
  border-color: #e11b22;
  color: #e11b22;
}
