.flp-pay-page {
  padding: 72px 0 88px;
  background: #f6f7f8;
}

.flp-pay-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.flp-pay-intro {
  margin-bottom: 28px;
  text-align: center;
}

.flp-pay-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bs-primary, #245a7a);
}

.flp-pay-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.05;
}

.flp-pay-intro > p:last-child {
  max-width: 640px;
  margin: 0 auto;
  color: #5b6470;
  font-size: 1.05rem;
}

.flp-pay-card {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid #e2e5e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 31, 43, 0.08);
}

.flp-payment-form {
  display: grid;
  gap: 22px;
}

.flp-payment-form.is-busy {
  opacity: 0.82;
}

.flp-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.flp-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
  color: #1d2731;
}

.flp-optional {
  margin-left: 6px;
  font-size: 0.78em;
  font-weight: 500;
  color: #7a838c;
}

.flp-field input,
.flp-field select,
.flp-field textarea {
  width: 100%;
  border: 1px solid #cfd5da;
  border-radius: 10px;
  background: #fff;
  padding: 12px 13px;
  color: #19232d;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.flp-field input:focus,
.flp-field select:focus,
.flp-field textarea:focus {
  border-color: var(--bs-primary, #245a7a);
  box-shadow: 0 0 0 3px rgba(36, 90, 122, 0.12);
}

.flp-field textarea {
  resize: vertical;
}

.flp-amount-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfd5da;
  border-radius: 12px;
  background: #fff;
}

.flp-amount-input:focus-within {
  border-color: var(--bs-primary, #245a7a);
  box-shadow: 0 0 0 3px rgba(36, 90, 122, 0.12);
}

.flp-amount-input > span {
  padding-left: 15px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #2a3540;
}

.flp-amount-input input {
  border: 0;
  border-radius: 0;
  padding: 13px 10px;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: none !important;
}

.flp-amount-input small {
  padding-right: 15px;
  color: #6b747d;
  font-weight: 700;
}

.flp-help,
.flp-secure-line {
  margin: 7px 0 0;
  color: #6a737d;
  font-size: 0.88rem;
}

.flp-paypal-area {
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid #e8eaec;
}

.flp-secure-line {
  margin: 0 0 14px;
  text-align: center;
}

#flp-paypal-button {
  display: block;
  width: 100%;
  min-height: 48px;
}

.flp-loading {
  padding: 13px 16px;
  border-radius: 10px;
  background: #f2f4f6;
  text-align: center;
  color: #5e6872;
  font-size: 0.92rem;
}

.flp-status {
  display: none;
  margin-top: 20px;
  padding: 15px 17px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.flp-status.is-visible {
  display: block;
}

.flp-status--info {
  border: 1px solid #c8dce8;
  background: #eff7fb;
  color: #244a61;
}

.flp-status--error {
  border: 1px solid #e7c5c5;
  background: #fff3f3;
  color: #7b2929;
}

.flp-status--success {
  border: 1px solid #bfdcc9;
  background: #f0faf3;
  color: #205f35;
}

.flp-success h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.flp-success p {
  margin: 0;
}

.flp-success-ref {
  margin-top: 8px !important;
  font-size: 0.88rem;
  opacity: 0.8;
}

.flp-admin-note {
  margin: 14px 0 0;
  color: #69727c;
  font-size: 0.9rem;
}

.flp-pay-footer {
  margin-top: 18px;
  text-align: center;
  color: #747d86;
  font-size: 0.82rem;
}

.flp-pay-footer p {
  margin: 0;
}

.flp-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 640px) {
  .flp-pay-page {
    padding: 44px 0 60px;
  }

  .flp-pay-card {
    border-radius: 14px;
  }

  .flp-field-row {
    grid-template-columns: 1fr;
  }
}
