/**
 * Support – Payment help
 * /support/payment-help
 */

.page-payment-help {
  background: #ffffff;
}

.pay-help {
  padding-bottom: 72px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.pay-help__hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 28px 0 8px;
}

.pay-help__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../../assets/images/home/support-hero.png");
  background-size: cover;
  background-position: 82% 18%;
  background-repeat: no-repeat;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

.pay-help__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.98) 42%,
    rgba(255, 255, 255, 0.72) 62%,
    rgba(255, 255, 255, 0.2) 80%,
    rgba(255, 255, 255, 0) 92%
  );
  z-index: 1;
  pointer-events: none;
}

.pay-help__hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}

.pay-help__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.2s ease;
}

.pay-help__back:hover {
  color: var(--color-primary);
}

.pay-help__intro {
  max-width: 640px;
  padding-bottom: 28px;
}

.pay-help__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pay-help__title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-green);
  flex-shrink: 0;
}

.pay-help__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #111827;
}

.pay-help__lead {
  margin: 0;
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.7;
  color: #6b7280;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.pay-help__layout {
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 28px;
  align-items: start;
  margin-top: 8px;
}

.pay-help__main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.pay-help__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.pay-help__section-title {
  margin: 10px 0 2px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

/* ==========================================================================
   Cards / methods
   ========================================================================== */
.pay-card,
.pay-method,
.pay-side-card {
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(16, 40, 75, 0.04);
}

.pay-card--direct {
  padding: 28px;
}

.pay-card__direct-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 24px;
  align-items: center;
}

.pay-card__heading {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.pay-card__text {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #6b7280;
}

.pay-card__secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 0.8125rem;
  color: #6b7280;
}

.pay-card__secure svg {
  color: var(--color-green);
  flex-shrink: 0;
}

.pay-direct-form__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.pay-direct-form__info {
  display: inline-flex;
  color: #9ca3af;
}

.pay-direct-form__row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.pay-direct-form__input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #dbe1ea;
  border-radius: 12px;
  font: inherit;
  font-size: 0.9375rem;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pay-direct-form__input::placeholder {
  color: #9ca3af;
}

.pay-direct-form__input:focus {
  outline: none;
  border-color: rgba(103, 194, 58, 0.7);
  box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.15);
}

.pay-direct-form__submit {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 50px;
  padding-inline: 22px;
}

.pay-direct-form__input.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.pay-direct-form__message {
  margin: 10px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.pay-direct-form__message.is-error {
  color: #dc2626;
}

.pay-direct-form__message.is-success {
  color: #15803d;
}

.pay-direct-form__message.is-info {
  color: #1e3a5f;
}

.pay-case {
  margin-top: 18px;
  border: 1px solid rgba(103, 194, 58, 0.25);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.pay-case__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #eef9e8 0%, #f7fcf4 100%);
  border-bottom: 1px dashed rgba(103, 194, 58, 0.25);
}

.pay-case__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
}

.pay-case__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
}

.pay-case__amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #eef1f5;
}

.pay-case__amount-label {
  font-size: 0.8125rem;
  color: #6b7280;
}

.pay-case__amount-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.pay-case__list {
  margin: 0;
  padding: 8px 16px 4px;
}

.pay-case__list--fees {
  padding-top: 0;
  border-top: 1px solid #f1f5f9;
}

.pay-case__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.pay-case__row:last-child {
  border-bottom: 0;
}

.pay-case__row dt {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
}

.pay-case__row dd {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  text-align: right;
}

.pay-case__hint {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #374151;
  background: #f8fafc;
  border-top: 1px solid #eef1f5;
}

.pay-methods {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pay-methods.is-locked .pay-method {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.15);
}

.pay-methods__lock {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.pay-methods__lock-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5563;
}

.pay-btn.is-disabled,
.pay-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.pay-visual {
  display: flex;
  justify-content: center;
}

.pay-visual__sheet {
  position: relative;
  width: 118px;
  height: 148px;
  border-radius: 14px;
  background: linear-gradient(160deg, #f7f9fc 0%, #eef2f7 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 24px rgba(16, 40, 75, 0.08);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-visual__line {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #d7dee8;
}

.pay-visual__line--short {
  width: 55%;
}

.pay-visual__badge {
  position: absolute;
  right: -10px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
  background: #ffffff;
  border: 1px solid #e8ecf1;
  box-shadow: 0 6px 16px rgba(16, 40, 75, 0.1);
}

/* ==========================================================================
   Payment method rows
   ========================================================================== */
.pay-method {
  padding: 0;
  overflow: hidden;
}

.pay-method__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}

.pay-method__meta {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.pay-method__meta > div {
  min-width: 0;
  flex: 1;
}

.pay-method__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--color-green);
  background: #eef9e8;
}

.pay-method__icon--paypal {
  color: #003087;
  background: #eaf1fb;
}

.pay-method__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.pay-method__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
}

.pay-method__details {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  background: #f6f8fb;
  border-top: 1px solid #eef1f5;
}

.pay-method__details--bank {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.pay-method__details--paypal {
  justify-content: space-between;
}

.pay-detail__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.pay-detail__value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pay-detail__value--accent {
  color: var(--color-green);
}

.pay-method__card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.pay-method__logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-method__logos img {
  height: 14px;
  width: auto;
  opacity: 0.9;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pay-btn--outline {
  color: var(--color-green);
  background: #ffffff;
  border: 1.5px solid rgba(103, 194, 58, 0.55);
}

.pay-btn--outline:hover {
  background: #f3fbf0;
  border-color: var(--color-green);
}

.pay-btn--navy {
  color: #ffffff;
  background: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.pay-btn--navy:hover {
  background: #0a1d38;
  border-color: #0a1d38;
}

.pay-btn--ghost {
  width: 100%;
  color: #111827;
  background: #ffffff;
  border: 1.5px solid #dbe1ea;
}

.pay-btn--ghost:hover {
  border-color: #b8c2d0;
  background: #f9fafb;
}

.pay-btn--sm {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.8125rem;
}

.pay-btn.is-copied {
  color: var(--color-green-dark);
  border-color: var(--color-green);
  background: #eef9e8;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.pay-side-card {
  padding: 22px;
}

.pay-side-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.pay-side-card__title--plain {
  margin-bottom: 8px;
}

.pay-side-card__title-icon {
  display: inline-flex;
  color: var(--color-green);
}

.pay-side-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-side-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #4b5563;
}

.pay-side-card__list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-green);
}

.pay-side-card__help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 14px;
  color: var(--color-green);
  background: #eef9e8;
}

.pay-side-card__text {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6b7280;
}

.pay-side-card__faq {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  transition: color 0.2s ease;
}

.pay-side-card__faq:hover {
  color: var(--color-green);
}

.pay-side-card--secure {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f7fbf4;
  border-color: rgba(103, 194, 58, 0.18);
}

.pay-side-card__secure-icon {
  flex-shrink: 0;
  color: var(--color-green);
}

.pay-side-card__secure-title {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.pay-side-card__secure-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #6b7280;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .pay-help__layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pay-help__aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .pay-side-card--secure {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .pay-help {
    padding-bottom: 56px;
  }

  .pay-card__direct-body {
    grid-template-columns: 1fr;
  }

  .pay-card__direct-visual {
    display: none;
  }

  .pay-method__details--bank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pay-help__hero::after {
    background-position: 70% 20%;
    opacity: 0.55;
  }
}

@media (max-width: 768px) {
  .pay-help__hero {
    padding: 18px 0 4px;
  }

  .pay-help__hero::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 55%,
      rgba(255, 255, 255, 0.88) 100%
    );
  }

  .pay-help__hero::after {
    background-position: center top;
    opacity: 0.35;
  }

  .pay-help__back {
    margin-bottom: 18px;
  }

  .pay-help__intro {
    max-width: none;
    padding-bottom: 18px;
  }

  .pay-help__title-row {
    align-items: flex-start;
    gap: 12px;
  }

  .pay-help__title {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
  }

  .pay-help__lead {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .pay-help__layout {
    gap: 18px;
    margin-top: 4px;
  }

  .pay-help__main {
    gap: 14px;
  }

  .pay-card--direct {
    padding: 20px 16px;
  }

  .pay-card__heading {
    font-size: 1.05rem;
  }

  .pay-card__text {
    margin-bottom: 16px;
    font-size: 0.875rem;
  }

  .pay-direct-form__row {
    flex-direction: column;
    gap: 10px;
  }

  .pay-direct-form__input,
  .pay-direct-form__submit {
    width: 100%;
    min-height: 48px;
  }

  .pay-direct-form__submit {
    justify-content: center;
  }

  .pay-case__top,
  .pay-case__amount,
  .pay-case__list,
  .pay-case__hint {
    padding-left: 14px;
    padding-right: 14px;
  }

  .pay-case__amount {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .pay-case__amount-value {
    font-size: 1.2rem;
  }

  .pay-case__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .pay-case__row dd {
    text-align: left;
    word-break: break-word;
  }

  .pay-methods {
    gap: 14px;
  }

  .pay-methods__lock {
    padding: 12px;
  }

  .pay-help__section-title {
    margin-top: 4px;
    font-size: 1.05rem;
  }

  .pay-method__top {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
  }

  .pay-method__meta {
    gap: 12px;
  }

  .pay-method__icon {
    width: 40px;
    height: 40px;
  }

  .pay-method__title {
    font-size: 0.95rem;
  }

  .pay-method__desc {
    font-size: 0.8125rem;
  }

  .pay-method__details {
    padding: 14px 16px;
  }

  .pay-method__card-actions {
    width: 100%;
    align-items: stretch;
  }

  .pay-method__logos {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .pay-btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  .pay-method__details--paypal {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .pay-help__aside {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pay-side-card {
    padding: 18px 16px;
  }
}

@media (max-width: 560px) {
  .pay-help {
    padding-bottom: 40px;
  }

  .pay-help__title-icon {
    width: 38px;
    height: 38px;
  }

  .pay-help__title-icon svg {
    width: 18px;
    height: 18px;
  }

  .pay-card--direct,
  .pay-side-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .pay-method {
    border-radius: 14px;
  }

  .pay-method__top,
  .pay-method__details {
    padding: 14px;
  }

  .pay-method__details--bank {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pay-detail__label {
    font-size: 0.6875rem;
  }

  .pay-detail__value {
    font-size: 0.875rem;
  }

  .pay-detail__value--accent {
    font-size: 0.875rem;
  }

  .pay-card__secure {
    align-items: flex-start;
    margin-top: 14px;
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .pay-case {
    border-radius: 12px;
  }

  .pay-case__badge {
    flex-shrink: 0;
  }

  .pay-methods__lock-text {
    font-size: 0.8125rem;
  }

  .pay-side-card__list li {
    font-size: 0.8125rem;
  }
}

@media (max-width: 380px) {
  .pay-help__title {
    font-size: 1.35rem;
  }

  .pay-direct-form__input {
    font-size: 0.875rem;
    padding: 0 12px;
  }

  .pay-direct-form__submit {
    padding-inline: 14px;
    font-size: 0.875rem;
  }
}
