/* padho.ai — Support: feedback and callback form on the theme's controls. Chrome comes from site.css.
 * Element ids and the .hidden / .active hooks belong to the page's form script; keep them. */
.support-page {
  background: var(--landing-cream);
}
.support-page .site-footer {
  padding-top: 40px;
  background: var(--color-surface);
  box-shadow: 0 0 0 100vmax var(--color-surface);
  clip-path: inset(0 -100vmax);
}
.hidden {
  display: none!important;
}
.sup-wrap {
  max-width: 760px;
  padding-block: 80px 136px;
  overflow-wrap: break-word;
}
.sup-title {
  font-size: 36px;
  line-height: 60px;
  font-weight: 600;
}
.sup-intro {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 28px;
}
.sup-card {
  margin-top: 32px;
  padding: 32px;
  border: var(--stroke-default) solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

/* Feedback | Request a callback: the theme's segmented control, full width. */
.sup-toggle {
  display: flex;
  gap: 2px;
  margin-bottom: 32px;
  padding: 2px;
  border-radius: var(--radius-control);
  background: var(--color-surface-2);
}
.sup-toggle button {
  flex: 1;
  min-height: var(--spacing-control-compact);
  padding: 8px 16px;
  border: var(--stroke-default) solid transparent;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-label);
  line-height: var(--text-label--line-height);
  font-weight: var(--text-label--font-weight);
  transition: background-color var(--duration-fast),color var(--duration-fast);
}
.sup-toggle button:hover {
  color: var(--color-text);
}
.sup-toggle button.active {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.sup-grid {
  display: grid;
  gap: 24px;
}
.sup-grid.two {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.sup-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin-bottom: 24px;
}
.sup-label {
  color: var(--color-text);
  font-size: var(--text-label);
  line-height: var(--text-label--line-height);
  font-weight: var(--text-label--font-weight);
}
.sup-label .opt {
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
  font-weight: 400;
}
.sup-verified {
  margin-left: 8px;
  color: var(--color-success-text);
  font-size: var(--text-body-sm);
}

/* Inputs take the strong edge: a quiet border on white falls under the 3:1 contrast a field outline needs. */
.sup-field,.sup-phone {
  width: 100%;
  min-width: 0;
  min-height: var(--spacing-control);
  border: var(--stroke-default) solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--duration-fast);
}
.sup-field {
  padding: 15px 16px;
  font: inherit;
}
textarea.sup-field {
  resize: vertical;
}
.sup-field::placeholder,.sup-phone input::placeholder {
  color: var(--color-text-muted);
}
.sup-field:hover,.sup-phone:hover {
  border-color: var(--color-text);
}
.sup-field:focus-visible,.sup-phone:focus-within {
  border-color: var(--color-ring);
  outline: var(--stroke-focus) solid var(--color-ring);
  outline-offset: 0;
}
.sup-select {
  position: relative;
  display: block;
}
.sup-select select {
  appearance: none;
  padding-right: 48px;
  cursor: pointer;
}
.sup-select::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  background: var(--color-text-muted);
  -webkit-mask: url('./assets/chevron-right.svg') center/contain no-repeat;
  mask: url('./assets/chevron-right.svg') center/contain no-repeat;
  transform: translateY(-50%) rotate(90deg);
  pointer-events: none;
}
.sup-phone {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 16px;
}
.sup-phone .cc {
  color: var(--color-text-muted);
}
.sup-phone input {
  width: 100%;
  min-width: 0;
  padding: 15px 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
}
.sup-phone input:focus-visible {
  outline: 0;
}
.sup-flexend {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.sup-otp {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.sup-otp .between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Secondary (flat, strong edge) for in-form steps; Plain for the text actions. */
.sup-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: var(--spacing-control);
  padding: 8px 20px;
  border: var(--stroke-default) solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-label);
  line-height: var(--text-label--line-height);
  font-weight: var(--text-label--font-weight);
  transition: background-color var(--duration-fast),transform var(--duration-fast);
}
.sup-mini:hover:not(:disabled) {
  background: var(--color-surface-2);
}
.sup-mini:active:not(:disabled),.sup-toggle button:active {
  transform: scale(.96);
}
#done .sup-mini {
  margin-top: 24px;
}
.sup-linkbtn {
  display: inline-flex;
  align-items: center;
  min-height: var(--spacing-target);
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-link);
  font-size: var(--text-body-sm);
  font-weight: 500;
}
.sup-linkbtn:hover:not(:disabled) {
  background: var(--color-surface-2);
}
.sup-linkbtn:disabled {
  color: var(--color-text-muted);
}
.sup-attach {
  width: 100%;
  min-height: var(--spacing-control);
  padding: 12px 16px;
  border: var(--stroke-default) dashed var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-link);
  font-weight: 500;
}
.sup-attach:hover {
  background: var(--color-surface-2);
}
.sup-filebox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: var(--stroke-default) solid var(--color-border);
  border-radius: var(--radius-control);
}
.sup-filebox img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-small);
  object-fit: cover;
}
.sup-filebox .nm {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-body-sm);
}
.sup-err {
  margin-top: 8px;
  color: var(--color-danger-text);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
}
.sup-form-err {
  margin: 0 0 16px;
}
.sup-hint {
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
}

/* The page's one primary action: blue, raised on its pressed edge. */
.sup-submit {
  width: 100%;
  min-height: calc(var(--spacing-control) - 4px);
  margin: 8px 0 4px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  box-shadow: 0 4px 0 var(--color-primary-pressed);
  font-size: var(--text-label);
  line-height: var(--text-label--line-height);
  font-weight: var(--text-label--font-weight);
  transition: background-color var(--duration-fast),transform var(--duration-fast),box-shadow var(--duration-fast);
}
.sup-submit:hover:not(:disabled) {
  background: var(--color-primary-hover);
}
.sup-submit:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--color-primary-pressed);
}
.sup-wrap button:disabled,.sup-wrap input:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.sup-done-title {
  font-size: var(--text-h1);
  line-height: var(--text-h1--line-height);
  font-weight: 600;
}
.sup-done-title em {
  font-style: normal;
  color: var(--color-brand-vermilion);
}
.sup-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: var(--text-body-sm);
  line-height: var(--text-body-sm--line-height);
}
.sup-contact a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sup-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sup-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

@media(max-width:639px) {
  .sup-wrap {
    padding-block: 32px 80px;
  }
  .sup-title {
    font-size: var(--text-h1);
    line-height: var(--text-h1--line-height);
  }
  .sup-intro {
    font-size: var(--text-body);
    line-height: var(--text-body--line-height);
  }
  .sup-card {
    margin-top: 24px;
    padding: var(--spacing-card-padding);
  }
  .sup-grid.two {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
  }
  .sup-toggle button {
    padding-inline: 8px;
  }
  .sup-flexend {
    flex-wrap: wrap;
  }
  .sup-flexend .sup-phone,.sup-flexend .sup-field {
    flex-basis: 100%;
  }
}
