/* Payment gateway — Speech Saathi */

:root {
  --pg-bg: #fff8f7;
  --pg-white: #ffffff;
  --pg-text: #271716;
  --pg-muted: #6b5c59;
  --pg-accent: #c41e3a;
  --pg-accent-dark: #9c1c2e;
  --pg-input-bg: #fdf2f2;
  --pg-footer: #fff0f0;
  --pg-badge-blue: #e0f0ff;
  --pg-border: #f0dede;
  --pg-radius: 14px;
  --pg-radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.pg-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, sans-serif;
  color: var(--pg-text);
  background: var(--pg-bg);
}

body.pg-page a {
  text-decoration: none;
  color: inherit;
}

/* Header */
.pg-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 28px;
  background: var(--pg-white);
  border-bottom: 1px solid var(--pg-border);
}

.pg-logo-link {
  display: inline-block;
  line-height: 0;
}

.pg-logo-link img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

a.pg-logo-link:hover img {
  opacity: 0.92;
}

.pg-header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.pg-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--pg-badge-blue);
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pg-secure-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pg-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #edd5d5;
  background: var(--pg-white);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #5c4c4a;
  padding: 0;
}

.pg-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* Main */
.pg-main {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  width: 100%;
}

.pg-intro {
  margin-bottom: 28px;
}

.pg-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pg-intro p {
  margin: 0;
  font-size: 1rem;
  color: var(--pg-muted);
}

.pg-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  align-items: start;
}

/* Order summary */
.pg-summary-card {
  background: var(--pg-white);
  border-radius: var(--pg-radius-lg);
  padding: 22px 24px;
  box-shadow: 0 10px 36px rgba(39, 23, 22, 0.07);
  border: 1px solid #f5ebe9;
}

.pg-plan-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--pg-accent);
  margin-bottom: 10px;
}

.pg-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.pg-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
}

.pg-plan-price {
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
}

.pg-plan-price span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pg-muted);
}

.pg-billed {
  font-size: 0.82rem;
  color: var(--pg-muted);
  margin: 0 0 18px;
}

.pg-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pg-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--pg-text);
}

.pg-feature-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--pg-accent);
  margin-top: 2px;
}

.pg-summary-divider {
  height: 1px;
  background: #f0e4e1;
  margin: 18px 0 16px;
}

.pg-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.pg-total-row span:first-child {
  font-size: 0.95rem;
}

.pg-total-row strong {
  font-size: 1.25rem;
  color: var(--pg-accent);
}

.pg-trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.pg-trust-box {
  background: #fff5f5;
  border: 1px solid #f5d8d8;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pg-trust-box svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--pg-accent);
  margin-top: 2px;
}

.pg-trust-box strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.pg-trust-box span {
  font-size: 0.72rem;
  color: var(--pg-muted);
  line-height: 1.35;
}

/* Payment card */
.pg-pay-card {
  background: var(--pg-white);
  border-radius: var(--pg-radius-lg);
  padding: 0;
  box-shadow: 0 10px 36px rgba(39, 23, 22, 0.07);
  border: 1px solid #f5ebe9;
  overflow: hidden;
}

.pg-tabs {
  display: flex;
  border-bottom: 1px solid #f0e4e1;
  overflow-x: auto;
}

.pg-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pg-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.pg-tab svg {
  width: 22px;
  height: 22px;
  opacity: 0.75;
}

.pg-tab:hover {
  color: var(--pg-text);
}

.pg-tab.active {
  color: var(--pg-accent);
  border-bottom-color: var(--pg-accent);
}

.pg-tab.active svg {
  opacity: 1;
  color: var(--pg-accent);
}

.pg-pay-body {
  padding: 24px 24px 26px;
}

.pg-field {
  margin-bottom: 18px;
}

.pg-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pg-muted);
  margin-bottom: 8px;
}

.pg-input-wrap {
  position: relative;
}

.pg-field input[type="text"],
.pg-field input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #edd5d5;
  border-radius: 12px;
  background: var(--pg-input-bg);
  font: inherit;
  font-size: 0.95rem;
  color: var(--pg-text);
}

.pg-input-wrap--card input {
  padding-right: 76px;
}

.pg-input-wrap--cvv input {
  padding-right: 40px;
}

.pg-panel[hidden] {
  display: none !important;
}

.pg-alt-intro {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--pg-muted);
  line-height: 1.5;
}

.pg-btn-alt {
  margin-top: 0;
}

.pg-field input::placeholder {
  color: #a89896;
}

.pg-card-icons {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.pg-card-icons span {
  width: 28px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(135deg, #1a1f71 0%, #0f4c75 100%);
  opacity: 0.85;
}

.pg-card-icons span:last-child {
  background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%);
}

.pg-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pg-cvv-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #d4c4c2;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pg-muted);
  cursor: help;
}

.pg-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 22px;
  font-size: 0.85rem;
  color: var(--pg-muted);
  line-height: 1.4;
}

.pg-checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--pg-accent);
}

.pg-btn-pay {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pg-accent-dark), var(--pg-accent));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.3);
}

.pg-btn-pay:hover {
  filter: brightness(1.04);
}

.pg-disclaimer {
  margin: 14px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--pg-muted);
  text-align: center;
}

/* Footer */
.pg-footer {
  background: var(--pg-footer);
  border-top: 1px solid var(--pg-border);
  padding: 22px 28px;
  margin-top: auto;
}

.pg-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pg-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pg-footer-brand p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pg-muted);
}

.pg-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.pg-footer-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pg-muted);
}

.pg-footer-links a:hover {
  color: var(--pg-accent);
}

@media (max-width: 900px) {
  .pg-grid {
    grid-template-columns: 1fr;
  }

  .pg-trust-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pg-header-center {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .pg-row-2 {
    grid-template-columns: 1fr;
  }

  .pg-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
