/* ==========================================================
   Winways Chemtech – Forms group
   contact.html · partner.html · thank-you-*.html
   Loaded after style.css
   ========================================================== */

/* ---------- Intro heading (Get in Touch / Partner with Us) ---------- */
.info-section { padding-block: 88px 72px; background: #fff; }
.info-heading { margin-bottom: 40px; }
.info-heading--lg-gap { margin-bottom: 56px; }
.info-eyebrow {
  font-weight: 700;
  font-size: 36px;
  line-height: normal;
  color: var(--ww-cyan);
  margin: 0 0 12px;
}
.info-sub {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  color: var(--ww-navy);
  margin: 0;
}
.info-sub--relaxed { line-height: 1.2; }
.accent-line {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--ww-cyan);
}
.info-heading .accent-line { margin-top: 12px; }

/* ---------- Contact info cards ---------- */
.info-cards { --bs-gutter-x: 24px; --bs-gutter-y: 24px; }
/* wider gap on desktop, but keep the row inside the container padding (no sideways scroll at ~1024px) */
@media (min-width: 992px) { .info-cards { --bs-gutter-x: 28px; margin-inline: -12px; } }
.info-card {
  height: 100%;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid #e3ebf5;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(35, 62, 129, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(35, 62, 129, .14);
}
.info-card__icon {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e8f6fb;
  display: inline-flex; align-items: center; justify-content: center;
}
.info-card__icon img { width: 28px; height: 28px; }
.info-card__title {
  font-weight: 700;
  font-size: 24px;
  line-height: normal;
  color: var(--ww-navy);
  margin: 0;
}
.info-card__detail {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ww-ink);
  margin: 0;
  word-break: break-word;
}
.info-card__detail--sm { font-size: 16px; font-style: normal; }
.info-card__detail a { color: inherit; text-decoration: none; }
.info-card__detail a:hover { color: var(--ww-cyan); }
.info-card__sub {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ww-muted);
  margin: 0;
}

/* ---------- Form section layout ---------- */
.form-section { background: #f8fafc; padding-block: 80px 96px; }
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 395px;
  gap: 40px;
  align-items: start;
}
.side-column { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Form card ---------- */
.ww-form-card {
  background: #fff;
  border: 1px solid #e3ebf5;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(35, 62, 129, .08);
  padding: 44px;
}
.ww-form-title {
  font-weight: 700;
  font-size: 32px;
  line-height: normal;
  color: var(--ww-navy);
  margin: 0 0 8px;
}
.ww-form .row { --bs-gutter-x: 20px; --bs-gutter-y: 22px; }
.ww-form .form-label {
  font-weight: 600;
  font-size: 14px;
  line-height: normal;
  color: var(--ww-navy);
  margin-bottom: 8px;
}
.ww-form .form-control,
.ww-form .form-select {
  height: 48px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ww-ink);
  background-color: #fff;
  border: 1px solid #d5e2f0;
  border-radius: 8px;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ww-form .form-control::placeholder { color: #8a97ab; opacity: 1; }
.ww-form .form-select {
  /* set directly: a url() inside a custom property would resolve against bootstrap.min.css */
  background-image: url("../img/forms/icon-chev.svg");
  padding-right: 44px;
  background-position: right 16px center;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}
.ww-form .form-select:invalid,
.ww-form .form-select.is-placeholder { color: #8a97ab; }
.ww-form .form-select option { color: var(--ww-ink); }
.ww-form textarea.form-control {
  height: 140px;
  padding: 14px 16px;
  resize: vertical;
}
.ww-form .form-control:focus,
.ww-form .form-select:focus {
  border-color: var(--ww-cyan);
  box-shadow: 0 0 0 3px rgba(26, 156, 197, .15);
}
.ww-form .invalid-feedback { font-size: 13px; }

/* input with leading icon */
.ww-input-icon { position: relative; }
.ww-input-icon > img {
  position: absolute; left: 16px; top: 15px;
  width: 18px; height: 18px;
  pointer-events: none;
}
.ww-input-icon > .form-control { padding-left: 44px; }

/* phone with country code */
.ww-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #d5e2f0;
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ww-phone:focus-within {
  border-color: var(--ww-cyan);
  box-shadow: 0 0 0 3px rgba(26, 156, 197, .15);
}
.ww-phone__code { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ww-phone__code img.flag { width: 22px; height: 15px; }
.ww-phone__code select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent url("../img/forms/icon-chev-sm.svg") right center / 14px 14px no-repeat;
  padding: 0 22px 0 0;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  color: var(--ww-navy);
  cursor: pointer;
  outline: 0;
}
.ww-phone__divider { width: 1px; height: 22px; background: #d5deea; flex-shrink: 0; }
.ww-form .ww-phone .form-control {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  box-shadow: none !important;
  background-image: none !important;
}
.was-validated .ww-phone:has(.form-control:invalid) { border-color: var(--bs-form-invalid-border-color); }
.was-validated .ww-phone:has(.form-control:valid) { border-color: var(--bs-form-valid-border-color); }
.was-validated .ww-field:has(:invalid) .invalid-feedback { display: block; }

/* textarea with counter */
.ww-textarea { position: relative; }
.ww-form .ww-textarea textarea.form-control { height: 130px; padding-bottom: 34px; }
.ww-counter {
  position: absolute;
  right: 16px; bottom: 14px;
  font-size: 13px;
  line-height: 1;
  color: #8a97ab;
  pointer-events: none;
}

/* upload dropzone */
.ww-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 140px;
  padding: 14px 16px;
  text-align: center;
  background: #f5faff;
  border: 1.5px dashed var(--ww-cyan);
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.ww-dropzone:hover,
.ww-dropzone.is-dragover { background: #e8f6fb; border-color: var(--ww-navy); }
.ww-dropzone:focus-within { box-shadow: 0 0 0 3px rgba(26, 156, 197, .2); }
.ww-dropzone img { width: 32px; height: 32px; }
.ww-dropzone__text { font-weight: 500; font-size: 15px; color: var(--ww-ink); margin: 0; }
.ww-dropzone__text u { color: var(--ww-cyan); }
.ww-dropzone__help { font-size: 13px; color: var(--ww-muted); margin: 0; }
.ww-dropzone__files { font-weight: 600; font-size: 13px; color: var(--ww-navy); margin: 0; word-break: break-all; }
.ww-dropzone input[type="file"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* submit button */
.btn-ww-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  font-weight: 700;
  font-size: 17px;
  line-height: normal;
  color: #fff;
  background: var(--ww-navy);
  border: 0;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-ww-submit:hover,
.btn-ww-submit:focus-visible {
  color: #fff;
  background: var(--ww-navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(35, 62, 129, .3);
  filter: brightness(1.08);
}
.btn-ww-submit:disabled {
  cursor: progress;
  opacity: .8;
  transform: none;
  box-shadow: none;
}
.ww-form-alert { margin: 0 0 16px; font-size: 15px; }
.ww-form-note { font-style: italic; font-size: 14px; color: var(--ww-muted); margin: 0; }
/* ---------- Office hours card ---------- */
.hours-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--ww-navy), var(--ww-ink));
  color: #fff;
}
.hours-card__head { display: flex; align-items: center; gap: 14px; }
.hours-card__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hours-card__icon img { width: 26px; height: 26px; }
.hours-card__title { font-weight: 700; font-size: 26px; line-height: normal; margin: 0; }
.hours-card__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  font-size: 17px;
  line-height: normal;
}
.hours-card__row span:first-child { font-weight: 500; color: #c9dcf2; }
.hours-card__row span:last-child { font-weight: 700; }

/* ---------- Side card (map / questions) ---------- */
.side-card {
  background: #fff;
  border: 1px solid #e3ebf5;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(35, 62, 129, .08);
  overflow: hidden;
}
.map-embed { display: block; width: 100%; height: 343px; border: 0; background: #dfeaf5; }
.side-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 24px 22px;
}
.side-card__title { font-weight: 700; font-size: 20px; line-height: normal; color: var(--ww-navy); margin: 0; }
.side-card__text { font-size: 14px; line-height: 1.45; color: var(--ww-text); margin: 0; font-style: normal; }
.side-card__text a { color: inherit; text-decoration: none; }
.side-card__text a:hover { color: var(--ww-cyan); }
.directions-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--ww-cyan);
  text-decoration: none;
  white-space: pre;
}
.directions-link:hover { color: var(--ww-navy); }

/* WhatsApp block */
.wa-qr {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #f0fbf4;
  border: 1px solid #bfe8cc;
  border-radius: 12px;
}
.wa-qr__code {
  position: relative;
  width: 112px; height: 112px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e3eaf3;
  border-radius: 8px;
}
.wa-qr__canvas { position: absolute; left: 7px; top: 7px; width: 96px; height: 96px; }
.wa-qr__canvas img, .wa-qr__canvas canvas { display: block; width: 96px !important; height: 96px !important; }
.wa-qr__number { font-weight: 700; font-size: 15px; color: #128c7e; text-decoration: none; }
.wa-qr__number:hover { color: #075e54; text-decoration: underline; }
.wa-qr__badge {
  position: absolute; left: 43px; top: 43px;
  width: 24px; height: 24px;
  border-radius: 12px;
  border: 3px solid #fff;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
}
.wa-qr__badge img { width: 12px; height: 12px; }
.wa-qr__text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.wa-pill {
  padding: 3px 8px;
  border-radius: 10px;
  background: #25d366;
  font-weight: 600;
  font-size: 11px;
  line-height: normal;
  color: #fff;
}
.wa-qr__title { font-weight: 600; font-size: 15px; color: var(--ww-ink); margin: 0; }
.wa-qr__help { font-size: 12px; color: var(--ww-muted); margin: 0; }
.or-divider {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: #8a97ad;
}
.or-divider::before,
.or-divider::after { content: ""; flex: 1; height: 1px; background: #e3eaf3; }
.btn-whatsapp {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 18px;
  border-radius: 10px;
  background: #25d366;
  box-shadow: 0 8px 18px rgba(37, 211, 102, .35);
  font-weight: 600;
  font-size: 15px;
  line-height: normal;
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, .45);
  filter: brightness(1.05);
}
.btn-whatsapp img { width: 20px; height: 20px; }
.btn-whatsapp img:last-child { width: 16px; height: 16px; }

/* ---------- Thank-you pages ---------- */
.thank-you {
  padding-block: 88px;
  background: #fff;
  text-align: center;
}
.thank-you .container-xl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.ty-badge {
  padding: 14px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .14);
}
.ty-badge span {
  display: flex;
  padding: 20px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 10px 24px rgba(34, 197, 94, .35);
  animation: tyPop .6s cubic-bezier(.34, 1.56, .64, 1) both;
}
.ty-badge img { width: 40px; height: 40px; }
@keyframes tyPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ty-title {
  max-width: 760px;
  font-weight: 700;
  font-size: 38px;
  line-height: normal;
  color: var(--ww-navy);
  margin: 0;
}
.ty-text {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ww-muted);
  margin: 0;
}
.ty-steps {
  width: 100%;
  max-width: 820px;
  padding: 28px;
  border-radius: 20px;
  background: var(--ww-bg-soft);
  text-align: left;
}
.ty-steps__kicker {
  font-weight: 600;
  font-size: 12px;
  line-height: normal;
  color: var(--ww-cyan);
  margin: 0 0 18px;
}
.ty-steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ty-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e3eaf3;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  line-height: normal;
  color: var(--ww-ink);
}
.ty-step__num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ww-navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: #fff;
}
.ty-step__num--done { background: #22c55e; }
.ty-step__num img { width: 16px; height: 16px; }
.ty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ty-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: normal;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ty-btn img { width: 16px; height: 16px; }
.ty-btn--primary { background: var(--ww-navy); border: 1px solid var(--ww-navy); color: #fff; }
.ty-btn--outline { background: #fff; border: 1px solid #d5deea; color: var(--ww-navy); }
.ty-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(35, 62, 129, .18); }
.ty-btn--primary:hover { color: #fff; }
.ty-btn--outline:hover { color: var(--ww-navy); background: #f4f8fc; }
.ty-help { font-size: 14px; color: #8a97ad; margin: 0; }
.ty-help a { color: inherit; text-decoration: none; }
.ty-help a:hover { color: var(--ww-cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .form-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .ww-form-card { padding: 36px; }
}
@media (max-width: 991.98px) {
  .info-section { padding-block: 64px 48px; }
  .form-section { padding-block: 56px 64px; }
  .form-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .side-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .thank-you { padding-block: 64px; }
}
@media (max-width: 767.98px) {
  .side-column { grid-template-columns: minmax(0, 1fr); }
  .info-card { min-height: 0; }
  .ty-steps__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .info-section { padding-block: 48px 40px; }
  .info-heading, .info-heading--lg-gap { margin-bottom: 28px; }
  .info-eyebrow { font-size: 28px; }
  .info-sub { font-size: 19px; line-height: 1.3; }
  .info-card { padding: 24px 22px; }
  .info-card__title { font-size: 21px; }
  .info-card__detail { font-size: 16px; }
  .form-section { padding-block: 40px 48px; }
  .ww-form-card { padding: 24px 18px; border-radius: 14px; }
  .ww-form-title { font-size: 26px; }
  .btn-ww-submit { width: 100%; }
  .hours-card { padding: 24px; }
  .hours-card__title { font-size: 22px; }
  .map-embed { height: 280px; }
  .wa-qr { flex-direction: column; text-align: center; }
  .wa-qr__text { align-items: center; }
  .thank-you { padding-block: 48px; }
  .ty-title { font-size: 28px; }
  .ty-text { font-size: 16px; }
  .ty-steps { padding: 20px; }
  .ty-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .ty-btn { justify-content: center; }
}
