/* ===========================================================================
   SUPPORT PAGE — glue only
   ---------------------------------------------------------------------------
   Reuses .hero--plp and .hero__cta from global.css/dmc.css for the hero and
   buttons. No form component exists anywhere else on the site, so the
   two-path cards and ticket form are new here, built with the same design
   tokens (--accent, --border, --radius, --muted) as the rest of the site.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Two-path layout — Call Us / Raise a Ticket side by side.
   --------------------------------------------------------------------------- */
.support-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .support-paths {
    grid-template-columns: 1fr;
  }
}

.support-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

.support-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
}

.support-card__label {
  font-size: clamp(0.68rem, 0.65rem + 0.1vw, 0.74rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 10px;
}

.support-card__title {
  font-size: clamp(1.4rem, 1.28rem + 0.5vw, 1.7rem);
  font-weight: 700;
  margin: 0 0 10px;
}

.support-card__desc {
  color: var(--muted);
  font-size: clamp(0.85rem, 0.81rem + 0.15vw, 0.94rem);
  margin: 0 0 22px;
}

.support-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8f6f4;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: clamp(0.78rem, 0.75rem + 0.1vw, 0.85rem);
  color: var(--text);
  margin-bottom: 24px;
}

.support-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4a9d5b;
  flex-shrink: 0;
}

.support-status strong {
  color: var(--accent);
  font-weight: 600;
}

/* Call card specifics */
.support-card__phone {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 4px;
}

.support-card__phone a {
  color: var(--text);
}

.support-card__hint {
  color: var(--muted);
  font-size: clamp(0.75rem, 0.72rem + 0.1vw, 0.82rem);
  margin: 0 0 24px;
}

.support-card__btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.support-card__note {
  font-size: clamp(0.72rem, 0.69rem + 0.1vw, 0.78rem);
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Ticket form
   --------------------------------------------------------------------------- */
.support-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.support-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-field--full {
  grid-column: 1 / -1;
}

.support-field label {
  font-size: clamp(0.72rem, 0.69rem + 0.1vw, 0.78rem);
  font-weight: 600;
  color: var(--text);
}

.support-field__optional {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
}

.support-field input,
.support-field select,
.support-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(0.85rem, 0.81rem + 0.15vw, 0.92rem);
  padding: 11px 12px;
  outline: none;
  width: 100%;
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(243, 112, 2, 0.12);
}

.support-field textarea {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
}

.support-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.support-form__foot button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Override the mobile .hero__cta styles so the submit button doesn't wrap/squish */
.support-form__foot .hero__cta {
  flex: none;
  white-space: nowrap;
  padding: 14px 32px;
  font-size: 1rem;
}

.support-form__note {
  font-size: clamp(0.72rem, 0.69rem + 0.1vw, 0.78rem);
  color: var(--muted);
  max-width: 30ch;
  margin: 0;
}

.support-form__foot--secured {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  grid-template-areas: "security submit";
  align-items: center;
  align-content: start;
  column-gap: 20px;
  row-gap: 0;
}

.support-form__foot--secured button {
  grid-area: submit;
  justify-self: end;
}

@media (max-width: 600px) {
  .support-form__grid {
    grid-template-columns: 1fr;
  }

  .support-field--full {
    grid-column: auto;
  }
}

/* Success state — hidden until ticket submission */
.support-success {
  display: none;
  text-align: center;
  padding: 34px 10px 10px;
}

.support-success__stamp {
  display: inline-block;
  font-size: clamp(0.68rem, 0.65rem + 0.1vw, 0.74rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #4a9d5b;
  border: 1px solid #4a9d5b;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.support-success h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.35rem);
  font-weight: 700;
  margin: 0 0 8px;
}

.support-success p {
  color: var(--muted);
  font-size: clamp(0.85rem, 0.81rem + 0.15vw, 0.92rem);
  margin: 0;
}

.support-success__id {
  color: var(--accent);
  font-weight: 600;
  margin-top: 14px;
  font-size: clamp(0.8rem, 0.77rem + 0.1vw, 0.86rem);
}

/* ---------------------------------------------------------------------------
   Info strip
   --------------------------------------------------------------------------- */
.support-strip {
  border-top: 1px solid var(--border);
  padding-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 760px) {
  .support-strip {
    grid-template-columns: 1fr;
  }
}

.support-strip__k {
  font-size: clamp(0.68rem, 0.65rem + 0.1vw, 0.74rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 8px;
}

.support-strip__v {
  font-size: clamp(0.9rem, 0.86rem + 0.15vw, 1rem);
  color: var(--text);
  font-weight: 600;
}

.support-strip__v a {
  color: var(--text);
}

.support-strip__sm {
  color: var(--muted);
  font-size: clamp(0.78rem, 0.75rem + 0.1vw, 0.85rem);
  margin-top: 4px;
}

/* Enquiry submission states */
.pys-honeypot {
  position: absolute !important;
  inset-inline-start: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.pys-form-alert {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #c93d58;
  border-radius: 8px;
  background: #fff3f5;
  color: #7f1730;
  overflow-wrap: anywhere;
}

.pys-form-alert:focus {
  outline: 3px solid rgba(201, 61, 88, 0.28);
  outline-offset: 3px;
}

.pys-form-alert__message {
  margin: 0;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
}

.pys-form-alert__list {
  margin: 8px 0 0;
  padding-inline-start: 20px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.pys-form-alert__list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pys-form-alert__retry {
  margin-top: 12px;
  padding: 9px 15px;
  border: 1px solid #b5314b;
  border-radius: 6px;
  background: #ffffff;
  color: #7f1730;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.pys-form-alert__retry:hover {
  background: #fde7eb;
}

.pys-form-status {
  min-height: 1.5em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.support-field input.pys-input--invalid,
.support-field select.pys-input--invalid,
.support-field textarea.pys-input--invalid,
.pys-input--invalid {
  border-color: #c93d58 !important;
  box-shadow: 0 0 0 3px rgba(201, 61, 88, 0.14) !important;
}

.support-form__foot .hero__cta:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: 0 2px 8px rgba(243, 112, 2, 0.2);
}

.support-form__foot .hero__cta.is-loading::before {
  content: '';
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: pysSubmitSpin 0.75s linear infinite;
}

@keyframes pysSubmitSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .support-form__foot .hero__cta.is-loading::before {
    animation-duration: 1.5s;
  }
}

@media (forced-colors: active) {
  .pys-form-alert,
  .pys-input--invalid {
    border-color: Mark;
  }
}

/* Cloudflare Turnstile placement */
.support-form__security {
  grid-area: security;
  width: min(100%, 300px);
  min-width: 0;
}

.support-form__security .cf-turnstile {
  min-height: 65px;
}

@media (max-width: 600px) {
  .support-form__foot--secured {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "security"
      "submit";
    row-gap: 12px;
  }

  .support-form__security {
    width: 100%;
  }

  .support-form__foot--secured .hero__cta {
    width: 100%;
    justify-self: stretch;
  }
}

/* ---------------------------------------------------------------------------
   International Phone Input & Searchable Country Selector
   --------------------------------------------------------------------------- */
.pys-phone-input {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #dce2d9);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pys-phone-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(243, 112, 2, 0.12);
}

.pys-phone-country-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f7f9f6;
  border: none;
  border-right: 1px solid var(--border, #dce2d9);
  border-radius: 6px 0 0 6px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.pys-phone-country-btn:hover {
  background: #edf3ec;
}

.pys-phone-country-btn .pys-flag-img,
.pys-country-item .pys-flag-img {
  width: 21px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.35);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.pys-phone-country-btn .pys-dial-code {
  font-size: 0.86rem;
  color: #34423a;
}

.pys-phone-country-btn i {
  font-style: normal;
  color: #7b8c82;
  font-size: 0.78rem;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.pys-phone-input.open .pys-phone-country-btn i,
.pys-phone-country-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
  color: var(--accent);
}

.pys-phone-input input[type="tel"] {
  flex: 1;
  width: 100%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 6px 6px 0 !important;
  padding: 11px 12px !important;
  font-size: clamp(0.85rem, 0.81rem + 0.15vw, 0.92rem);
  color: var(--text);
}

/* Country Searchable Panel */
.pys-phone-input.open {
  z-index: 100;
}

.support-field:has(.pys-phone-input.open) {
  z-index: 100;
  position: relative;
}

.pys-country-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  width: min(330px, calc(100vw - 32px));
  z-index: 100;
  background: #ffffff;
  border: 1px solid #dce2d9;
  border-radius: 10px;
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 10px;
}

@media (max-width: 600px) {
  .pys-country-panel {
    left: 0;
    right: 0;
    width: 100%;
    min-width: 280px;
  }
}

.pys-country-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f9f6;
  border: 1.5px solid #e1e7de;
  border-radius: 7px;
  padding: 8px 12px;
  margin-bottom: 8px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pys-country-search:focus-within {
  border-color: var(--accent);
  background: #ffffff;
}

.pys-country-search i {
  font-style: normal;
  color: #8a9990;
  font-size: 0.9rem;
}

.pys-country-search input {
  border: none !important;
  outline: none !important;
  width: 100%;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--text);
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.pys-country-list {
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 107, 100, 0.3) transparent;
}

.pys-country-list::-webkit-scrollbar {
  width: 5px;
}

.pys-country-list::-webkit-scrollbar-track {
  background: transparent;
}

.pys-country-list::-webkit-scrollbar-thumb {
  background: #cbd5c8;
  border-radius: 4px;
}

.pys-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--text);
  transition: background-color 0.12s ease;
}

.pys-country-item:hover,
.pys-country-item.selected {
  background: #f0f4ee;
}

.pys-country-item__name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pys-country-item__code {
  font-size: 0.82rem;
  color: #66756d;
  font-weight: 600;
}

.pys-country-empty {
  padding: 16px 12px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}
