/* Editorial redesign styles scoped strictly to /lien-he-ho-tro/. */
.acc-support-page {
  --ed-ground: #fcfaf8;
  --ed-surface: #ffffff;
  --ed-ink: #0f172a;
  --ed-ink-soft: #334155;
  --ed-muted: #526071;
  --ed-placeholder: #5b6779;
  --ed-blue: #1769e8;
  --ed-blue-deep: #0b52c4;
  --ed-ring: rgba(23, 105, 232, 0.13);
  --ed-curve: rgba(196, 154, 138, 0.2);
  --ed-rule: rgba(15, 23, 42, 0.1);
  --ed-rule-strong: #0f172a;
  --ed-error: #c22727;
  --ed-success: #0f766e;

  position: relative;
  overflow-x: clip;
  background: var(--ed-ground);
  color: var(--ed-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.acc-support-page *,
.acc-support-page *::before,
.acc-support-page *::after {
  box-sizing: border-box;
}

.ed-container {
  position: relative;
  z-index: 2;
  width: min(1364px, calc(100% - 124px));
  margin-inline: auto;
}

/* ==========================================================================
   1. Asymmetric Editorial Stage + Rotating Ring & Hairline Curves
   ========================================================================== */
.ed-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 6.5vw, 96px) 0 clamp(60px, 7vw, 104px);
}

.ed-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ed-curves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ed-curve);
}

.ed-ring-wrap {
  position: absolute;
  top: clamp(-90px, -5.5vw, -24px);
  left: clamp(-24px, 6.5vw, 118px);
  width: clamp(460px, 51vw, 740px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.ed-ring-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transform-origin: 50% 50%;
  animation: edRingRotate 78s linear infinite;
  will-change: transform;
}

.ed-ring-text {
  font-family: "Times New Roman", "Noto Serif", Times, serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0.06em;
  fill: var(--ed-ring);
  user-select: none;
}

@keyframes edRingRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ed-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(38px, 6vw, 96px);
  min-height: clamp(460px, 56vh, 600px);
}

/* Left Column: Headline anchored cleanly toward bottom-left */
.ed-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 8px;
  max-width: 600px;
}

.ed-headline {
  margin: 0 0 22px;
  color: var(--ed-ink);
  font-family: "Times New Roman", "Noto Serif", Times, serif;
  font-size: clamp(32px, 3.65vw, 52px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.ed-headline-accent {
  display: block;
  margin-top: 8px;
}

.ed-headline em {
  font-style: italic;
  color: var(--ed-blue);
  font-weight: 400;
}

.ed-lead {
  margin: 0;
  color: var(--ed-muted);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 44ch;
}

/* Right Column: Grouped Editorial Contact Hierarchy */
.ed-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 430px;
  justify-self: end;
  width: 100%;
}

.ed-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ed-group__label {
  margin: 0 0 3px;
  color: var(--ed-ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  line-height: 1.4;
}

.ed-group__link {
  display: inline-block;
  align-self: flex-start;
  color: var(--ed-ink);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  font-variant-numeric: tabular-nums;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.ed-group__link:hover {
  color: var(--ed-blue);
  text-decoration-color: var(--ed-blue);
}

.ed-group__link:focus-visible {
  outline: 2px solid var(--ed-blue);
  outline-offset: 3px;
}

.ed-group__value {
  margin: 0;
  color: var(--ed-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.ed-group__note {
  margin: 2px 0 0;
  color: var(--ed-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ==========================================================================
   2. Minimalist Editorial Form Band Below
   ========================================================================== */
.ed-form-band {
  border-top: 1px solid var(--ed-rule);
  padding: clamp(52px, 6vw, 84px) 0 clamp(68px, 7vw, 96px);
}

.ed-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.ed-form-intro__title {
  margin: 0 0 14px;
  color: var(--ed-ink);
  font-family: "Times New Roman", "Noto Serif", Times, serif;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.ed-form-intro__title em {
  font-style: italic;
  color: var(--ed-blue);
}

.ed-form-intro__desc {
  margin: 0 0 24px;
  color: var(--ed-muted);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 40ch;
}

.ed-form-refs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.ed-form-refs__link {
  color: var(--ed-ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(51, 65, 85, 0.35);
  text-underline-offset: 4px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.ed-form-refs__link:hover {
  color: var(--ed-blue);
  text-decoration-color: var(--ed-blue);
}

.ed-form-refs__link:focus-visible {
  outline: 2px solid var(--ed-blue);
  outline-offset: 3px;
}

/* Hairline Inputs & Minimal Form Layout */
.ed-form {
  display: flex;
  flex-direction: column;
}

.ed-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}

.acc-support-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.acc-support-field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.acc-support-field__label {
  display: block;
  margin: 0 0 4px;
  color: var(--ed-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  line-height: 1.4;
}

.acc-support-field__label-row .acc-support-field__label {
  margin-bottom: 0;
}

.acc-support-field__req {
  color: var(--ed-blue);
  margin-left: 2px;
}

.acc-support-field__count {
  color: var(--ed-placeholder);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.acc-support-page .acc-support-input,
.acc-support-page .acc-support-select,
.acc-support-page .acc-support-textarea {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  background-color: transparent;
  color: var(--ed-ink);
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.acc-support-page .acc-support-input,
.acc-support-page .acc-support-select {
  height: 44px;
  min-height: 44px;
  padding: 6px 2px;
}

.acc-support-page .acc-support-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 14px 14px;
  cursor: pointer;
}

.acc-support-page .acc-support-select[data-placeholder="true"] {
  color: var(--ed-placeholder);
}

.acc-support-page .acc-support-textarea {
  min-height: 98px;
  padding: 8px 2px;
  resize: vertical;
}

.acc-support-page .acc-support-input::placeholder,
.acc-support-page .acc-support-textarea::placeholder {
  color: var(--ed-placeholder);
  opacity: 1;
}

.acc-support-page .acc-support-input:hover,
.acc-support-page .acc-support-select:hover,
.acc-support-page .acc-support-textarea:hover {
  border-bottom-color: #64748b;
}

.acc-support-page .acc-support-input:focus,
.acc-support-page .acc-support-select:focus,
.acc-support-page .acc-support-textarea:focus {
  outline: 0;
  border-bottom-color: var(--ed-blue);
  background-color: transparent;
  box-shadow: inset 0 -1px 0 0 var(--ed-blue);
}

.acc-support-field.is-invalid .acc-support-input,
.acc-support-field.is-invalid .acc-support-select,
.acc-support-field.is-invalid .acc-support-textarea {
  border-bottom-color: var(--ed-error);
  box-shadow: inset 0 -1px 0 0 var(--ed-error);
}

.acc-support-field__error {
  margin: 6px 0 0;
  color: var(--ed-error);
  font-size: 12.5px;
  line-height: 1.35;
}

.acc-support-field__error:empty {
  display: none;
}

.acc-support-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Status Banner */
.acc-support-feedback {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.55;
  display: none;
}

.acc-support-feedback.is-visible {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.acc-support-feedback--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.acc-support-feedback--success {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #115e59;
  flex-direction: column;
  gap: 8px;
}

.acc-support-feedback__top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 14px;
}

.acc-support-feedback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.acc-support-feedback__btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 2px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #5eead4;
  background: #ffffff;
  color: var(--ed-success);
}

.acc-support-feedback__btn:hover {
  background: #ccfbf1;
}

/* Submit Row */
.ed-form__footer {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.acc-support-page button.ed-submit {
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 2px;
  background: var(--ed-rule-strong);
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.18s ease, transform 0.14s ease;
}

.acc-support-page button.ed-submit svg {
  width: 15px;
  height: 15px;
  display: block;
  transition: transform 0.18s ease;
}

.acc-support-page button.ed-submit:hover:not(:disabled) {
  background: var(--ed-blue);
}

.acc-support-page button.ed-submit:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.acc-support-page button.ed-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.acc-support-page button.ed-submit:focus-visible {
  outline: 2px solid var(--ed-blue);
  outline-offset: 3px;
}

.acc-support-page button.ed-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.acc-support-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: edSpin 0.65s linear infinite;
}

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

.ed-form__privacy {
  margin: 0;
  color: var(--ed-muted);
  font-size: 12.5px;
  line-height: 1.45;
  max-width: 34ch;
}

/* ==========================================================================
   3. Responsive Breakpoints (matching shared theme rail edges)
   ========================================================================== */
@media (max-width: 1180px) {
  .ed-container {
    width: min(1364px, calc(100% - 56px));
  }

  .ed-ring-wrap {
    left: clamp(-30px, 4vw, 60px);
    width: clamp(380px, 52vw, 580px);
  }
}

@media (max-width: 960px) {
  .ed-container {
    width: calc(100% - 36px);
  }

  .ed-stage {
    padding: 46px 0 54px;
  }

  .ed-ring-wrap {
    top: -40px;
    left: auto;
    right: -110px;
    width: 440px;
  }

  .ed-stage-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: 0;
  }

  .ed-intro {
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .ed-details {
    justify-self: start;
    max-width: 520px;
    gap: 24px;
  }

  .ed-form-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .ed-container {
    width: calc(100% - 24px);
  }

  .ed-stage {
    padding: 36px 0 44px;
  }

  .ed-ring-wrap {
    top: -48px;
    right: -135px;
    width: 340px;
  }

  .ed-ring-text {
    font-size: 56px;
  }

  .ed-headline {
    font-size: clamp(28px, 7.6vw, 36px);
    margin-bottom: 14px;
  }

  .ed-lead {
    font-size: 14.5px;
  }

  .ed-details {
    gap: 22px;
  }

  .ed-form-band {
    padding: 40px 0 54px;
  }

  .ed-form__fields {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ed-form__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .acc-support-page button.ed-submit {
    width: 100%;
  }

  .ed-form__privacy {
    max-width: none;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ed-ring-svg {
    animation: none !important;
  }

  .ed-group__link,
  .ed-form-refs__link,
  .acc-support-page button.ed-submit,
  .acc-support-page button.ed-submit svg {
    transition: none !important;
  }

  .acc-support-spinner {
    animation: none !important;
  }
}
