/* TCIT - 06/08/2026 - Sunny Delight Contact Us layout (matches reference: Title|First|Last row) */

body#pageContactUs {
  background: #f9f3e9;
}

.sdContactPageTop {
  padding-top: 1.5rem;
  padding-bottom: 0.25rem;
  background: #f9f3e9;
}

.sdContactSection.contactSection {
  background: #f9f3e9 !important;
  background-image: none !important;
  min-height: auto;
  display: block;
  padding: 0 1.25rem 4rem;
}

.sdContactSection .contactInner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  padding: 1rem 0 2rem;
  box-sizing: border-box;
}

.sdContactSection .contactFormWrap,
.sdContactSection .contactForm {
  width: 100%;
  background: transparent;
  box-shadow: none;
}

.sdContactSection .formTitle {
  margin: 0;
  padding: 0 0 1.5rem;
  text-align: center;
  color: #001689;
  font-family: "Brush Up", cursive, sans-serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 4.375rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.sdContactSection .formGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .sdContactSection .formGrid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 1.75rem;
  }

  /* Default fields = First/Last name width (~5/12) */
  .sdContactSection .field {
    grid-column: span 5;
  }

  .sdContactSection .field.full {
    grid-column: span 12;
  }

  .sdContactSection .field.half {
    grid-column: span 6;
  }

  /* Minus196 batch row: Batch Code | Month | Year (3 equal columns) */
  .sdContactSection .field.third {
    grid-column: span 4;
  }

  /* Title narrow (~2/12) so Title + First + Last fit one row */
  .sdContactSection .field.titleField {
    grid-column: span 2;
  }
}

.sdContactSection .field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sdContactSection .sectionHeading {
  margin: 0;
  color: #001689;
  font-family: "Open Sans", "OpenSansLight", Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sdContactSection .field > label {
  display: block;
  margin-bottom: 0.5rem;
  color: #001689;
  font-family: "Open Sans", "OpenSansLight", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
}

.sdContactSection .field > label span,
.sdContactSection .contactForm label span {
  color: #ff3b30 !important;
  font-weight: 700;
}

.sdContactSection .field input:not([type="checkbox"]):not([type="radio"]),
.sdContactSection .field select,
.sdContactSection .field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  background: #fff;
  padding: 0.625rem 0.75rem;
  color: #001689;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  appearance: none;
  box-sizing: border-box;
  min-height: 2.75rem;
}

.sdContactSection .field input:not([type="checkbox"]):not([type="radio"]):focus,
.sdContactSection .field select:focus,
.sdContactSection .field textarea:focus {
  outline: 2px solid rgba(0, 22, 137, 0.35);
  outline-offset: 0;
}

.sdContactSection .field select {
  color: #6b7280;
  padding-right: 2.25rem;
}

.sdContactSection .field textarea {
  resize: vertical;
  min-height: 10rem;
}

.sdContactSection .selectWrap {
  position: relative;
}

.sdContactSection .selectWrap .selectArrow {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 0.6875rem;
  pointer-events: none;
}

.sdContactSection .hint {
  margin: 0.375rem 0 0;
  color: #6b7280;
  font-size: 0.6875rem;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
  font-weight: 400;
}

.sdContactSection .dynamicSectionInner {
  border: 1px solid #d7dde8;
  border-radius: 4px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.4);
}

.sdContactSection .frameTitle {
  margin: 0 0 1rem;
  padding: 0;
  color: #001689;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Match sunnydelight.html: complaint sections stay hidden unless JS sets display:block */
.sdContactSection .dynamicSection[hidden],
.sdContactSection .conditionalGroup[hidden],
.sdContactSection #formatWrap[hidden],
.sdContactSection #variantWrap[hidden] {
  display: none !important;
}

.sdContactSection .uploadRow {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sdContactSection .uploadRow input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Attachment Browse = Sunny Delight secondary blue (#009fe3); Submit stays navy */
.sdContactSection label.browseBtn,
.sdContactSection .browseBtn,
.sdContactSection .uploadRow .browseBtn,
.sdContactSection .uploadRow label.btnMenor {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: max-content !important;
  padding: 8px 14px !important;
  background: #009fe3 !important;
  background-color: #009fe3 !important;
  color: #fff !important;
  border: 1px solid #009fe3 !important;
  border-radius: 8px !important;
}

.sdContactSection label.browseBtn:hover,
.sdContactSection .browseBtn:hover,
.sdContactSection .uploadRow label.btnMenor:hover {
  background: #fff !important;
  background-color: #fff !important;
  color: #009fe3 !important;
  border-color: #009fe3 !important;
}

.sdContactSection .fileName {
  margin: 0;
  color: #001689;
  font-size: 0.9rem;
}

/* Privacy: checkbox + text on one row (override .field column flex) */
.sdContactSection .field.termsField {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center !important;
  gap: 0.6rem;
}

.sdContactSection .field.termsField input[type="checkbox"] {
  width: auto !important;
  min-width: 1rem;
  min-height: 1rem !important;
  margin: 0;
  flex-shrink: 0;
  align-self: center;
}

.sdContactSection .field.termsField label {
  display: inline !important;
  width: auto !important;
  max-width: none !important;
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #001689 !important;
  font-size: 0.875rem !important;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none !important;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
}

.sdContactSection .field.termsField label:hover {
  background: transparent !important;
  color: #001689 !important;
}

.sdContactSection .field.termsField a.privacyLink {
  color: #001689 !important;
  text-decoration: underline;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  font-weight: 700;
}

.sdContactSection .field.termsField a.privacyLink:hover {
  color: #009fe3 !important;
}

/* Flex fields stretch children — keep submit compact (content-sized), left-aligned */
.sdContactSection .submitField {
  align-items: flex-start;
}

.sdContactSection .submitBtn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  align-self: flex-start;
  box-sizing: border-box;
  margin: 0;
  border: 1px solid #001689 !important;
  border-radius: 8px !important;
  /* Match Browse button size */
  padding: 8px 14px !important;
  background: #001689 !important;
  background-color: #001689 !important;
  color: #fff !important;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.875rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.sdContactSection .submitBtn:hover,
.sdContactSection .submitBtn:focus {
  color: #001689 !important;
  background: #fff !important;
  background-color: #fff !important;
  border-color: #001689 !important;
  opacity: 1;
}

.sdContactSection .field-error input,
.sdContactSection .field-error select,
.sdContactSection .field-error textarea {
  border-color: #ff3b30 !important;
  box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.2) !important;
}

.sdContactSection .field-error-msg {
  color: #ff3b30;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

@keyframes sdFieldShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.sdContactSection .shake-anim {
  animation: sdFieldShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Don't use overflow-x: clip here — it hides Google's collapsed v3 tab (right: -186px). */
html,
body {
  overflow-x: hidden;
}

.grecaptcha-badge {
  visibility: visible !important;
  z-index: 2147483647 !important;
}

@media (max-width: 899.9px) {
  .sdContactSection .field,
  .sdContactSection .field.half,
  .sdContactSection .field.third,
  .sdContactSection .field.titleField,
  .sdContactSection .field.full {
    grid-column: auto;
  }
}
