/**
 * Payment page (Step 1) – minimal styles.
 * Plain grey page, no header/footer.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #262626;
  background-color: #e8e8e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

@media (min-width: 640px) {
  body {
    padding: 2rem;
  }
}

.pay-page--waiting {
  background-color: #e5e5e5;
}

.pay-page--waiting .pay-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 2rem;
}

.pay-waiting {
  width: 100%;
  max-width: 420px;
  text-align: center;
  color: #3f3f46;
}

.pay-waiting__spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.75rem;
  flex-shrink: 0;
  color: #6b7280;
}

.pay-waiting__spinner-svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: pay-spin 0.85s linear infinite;
}

.pay-waiting__spinner-circle {
  stroke-dasharray: 30 70;
  stroke: #6b7280;
  opacity: 0.9;
}

.pay-waiting__message {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
  text-align: center;
  color: #262626;
  line-height: 1.3;
}

.pay-waiting__sub {
  margin: 0.625rem 0 0;
  font-size: 1.25rem;
  color: #525252;
  text-align: center;
  line-height: 1.4;
}

@keyframes pay-spin {
  to { transform: rotate(360deg); }
}

.pay-step {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #666;
  text-align: center;
}

/* Step 3: completion state */
.pay-step--complete {
  color: #166534;
  font-weight: 600;
}

.pay-logo {
  margin-bottom: 1.5rem;
  text-align: center;
}

.pay-logo img {
  display: inline-block;
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* Succes na bestelling: bericht + link onder het logo */
.pay-order-success-block {
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 420px;
}

.pay-order-success-block__message {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  border: 1px solid #22c55e;
}

.pay-order-success-block__link {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  color: #F25E0D;
  text-decoration: none;
}

.pay-order-success-block__link:hover {
  text-decoration: underline;
}

.pay-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.pay-card__service {
  font-weight: 700;
  font-size: 1.125rem;
  text-align: center;
  margin: 0 0 0.5rem;
  color: #262626;
}

.pay-card__price {
  font-weight: 700;
  font-size: 1.75rem;
  text-align: center;
  margin: 0 0 0.5rem;
  color: #262626;
}

.pay-card__description {
  font-size: 0.875rem;
  color: #737373;
  text-align: center;
  margin: 0 0 1.5rem;
}

.pay-card__btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #262626;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.pay-card__btn:hover {
  background: #404040;
}

.pay-card__btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Step 0: Intro page – mobile full-width, desktop wider card (680–760px) */
.pay-card--intro {
  width: 100%;
  max-width: min(100%, 640px);
  padding: 1.75rem 1.5rem;
}

@media (min-width: 640px) {
  .pay-card--intro {
    padding: 2.5rem 2.5rem;
  }
}

.pay-card--intro .pay-step {
  margin-bottom: 1.25rem;
}

/* Alleen op betalingspagina: bevestiging dat bedrijfsgegevens ontvangen zijn */
.pay-payment-intro {
  font-size: 0.9375rem;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #22c55e;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  text-align: center;
}

.pay-intro__headline {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.4;
  color: #262626;
  margin: 0 0 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .pay-intro__headline {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
}

.pay-intro__reassurance {
  font-size: 0.9375rem;
  color: #737373;
  text-align: center;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .pay-intro__reassurance {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
}

.pay-intro__steps {
  margin-bottom: 1.5rem;
}

.pay-intro__steps-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #262626;
  margin: 0 0 0.5rem;
}

.pay-intro__steps-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: #404040;
  line-height: 1.65;
}

.pay-intro__steps-list li {
  margin-bottom: 0.4rem;
}

.pay-intro__summary {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.pay-intro__summary-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #737373;
  margin: 0 0 0.75rem;
}

.pay-intro__summary-row {
  font-size: 0.9375rem;
  color: #262626;
  margin: 0 0 0.35rem;
}

.pay-intro__summary-row:last-child {
  margin-bottom: 0;
}

.pay-intro__summary-label {
  font-weight: 600;
  margin-right: 0.35rem;
}

.pay-intro__summary-row--price {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e5e5;
}

.pay-intro__summary-note {
  font-size: 0.8125rem;
  color: #737373;
  margin: 0.35rem 0 0;
}

.pay-intro__cta {
  margin-top: 0.5rem;
}

/* Intro: orange primary CTA (CRO Audits brand orange) */
.pay-intro__btn {
  display: block;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  background: #F25E0D;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

.pay-intro__btn:hover {
  background: #e0550c;
}

.pay-intro__btn:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.pay-intro__trust-note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: #737373;
  text-align: center;
  line-height: 1.45;
}

.pay-methods {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.pay-methods__title {
  font-size: 0.75rem;
  color: #737373;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.pay-methods__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pay-methods__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.875rem;
  color: #262626;
}

.pay-methods__item::before {
  content: "";
  width: 28px;
  height: 20px;
  background: #e8e8e8;
  border-radius: 4px;
  flex-shrink: 0;
}

.pay-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #737373;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.pay-footer svg {
  flex-shrink: 0;
}

/* Step 2: Payment failed (terug naar intro) */
.pay-card--message {
  max-width: 440px;
}

.pay-payment-failed {
  text-align: center;
}

.pay-payment-failed__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b91c1c;
  margin: 0 0 0.75rem;
}

.pay-payment-failed__text {
  font-size: 0.9375rem;
  color: #404040;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.pay-payment-failed .pay-card__btn {
  display: inline-block;
  width: auto;
  min-width: 240px;
}

/* Step 2: Payment success – nadrukkelijk zichtbaar */
.pay-payment-success {
  background: #dcfce7;
  color: #166534;
  text-align: center;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border: 2px solid #22c55e;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.pay-payment-success__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #166534;
  letter-spacing: 0.02em;
}

.pay-payment-success__text {
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.5;
  color: #15803d;
}

.pay-payment-success__note {
  font-size: 0.8125rem;
  color: #166534;
  margin: 1rem 0 0;
  opacity: 0.9;
}

/* Step 2: Company details form (same grey page, no header/footer) */
.pay-card--form {
  max-width: 440px;
}

.pay-card--form .pay-card__description {
  margin-bottom: 1.25rem;
}

.pay-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pay-form .form-field-wrapper {
  position: relative;
}

.pay-form .field-input-wrap {
  position: relative;
}

.pay-form input,
.pay-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #262626;
  background: #f0f0f0;
  border: 1px solid #a3a3a3;
  border-radius: 8px;
  box-sizing: border-box;
}

.pay-form input::placeholder,
.pay-form select {
  color: #525252;
}

.pay-form input:focus,
.pay-form select:focus {
  outline: none;
  border-color: #262626;
}

.pay-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23737373' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.25rem;
}

.pay-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0.75rem;
}

.pay-form .field-error-msg.field-tooltip {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 6px;
  padding: 8px 10px;
  font-size: 0.8125rem;
  color: #1f2937;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 5;
}

.pay-form .field-error-msg.field-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 12px;
  border: 6px solid transparent;
  border-top-color: #e5e7eb;
}

.pay-form .field-error-msg.field-tooltip.show {
  display: block;
}

.pay-form .field-error-msg.field-tooltip.vat-valid {
  display: block;
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.pay-form .field-error-msg.field-tooltip.vat-valid::after {
  border-top-color: #dcfce7;
}

.pay-form .pay-form-hint {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: #737373;
}

.pay-form-success {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #166534;
  background: #dcfce7;
  border-radius: 8px;
}

.pay-form-error {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #b91c1c;
  background: #fef2f2;
  border-radius: 8px;
}

/* Orange primary button (Complete Order) */
.pay-card__btn--orange {
  background: #F25E0D;
  margin-top: 0.5rem;
}

.pay-card__btn--orange:hover {
  background: #e0550c;
}

/* Thank-you page: secondary link (low emphasis) */
.pay-thank-you__secondary {
  margin: 1rem 0 0;
  text-align: center;
}

.pay-card__link--secondary {
  font-size: 0.875rem;
  color: #737373;
  text-decoration: none;
}

.pay-card__link--secondary:hover {
  color: #262626;
  text-decoration: underline;
}
