/* ============================================================
   BBL CPG Form – Aesthetics Marketing Solutions Limited Theme
   Clean • Corporate • Fintech-ready
   ============================================================ */

/* --- Base tokens for easy tweaks --- */
#bblcpg-form-container {
  --base-bg: rgba(26, 50, 130, 0.65);   /* AMS deep blue (glass) */
  --text: #ffffff;
  --muted: rgba(255,255,255,0.88);

  --field-bg: rgba(255,255,255,0.14);
  --field-bg-hover: rgba(255,255,255,0.22);
  --field-outline: rgba(96, 165, 250, 0.65);

  --btn-bg: #ffffff;
  --btn-text: #1A3282;
  --btn-bg-hover: #e8f0ff;

  --shadow: 0 10px 30px rgba(26,50,130,0.35);
  --radius: 14px;

  --link: #c7d7ff;
  --link-hover: #60a5fa;

  --error: #dc2626;
  --warn: #ef4444;
  --success: #22c55e;
}

/* --- Container --- */
#bblcpg-form-container {
  background-color: var(--base-bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  padding: 30px;
  border-radius: var(--radius);
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* Responsive */
@media (min-width: 600px) {
  #bblcpg-form-container {
    width: 400px;
  }
}

/* --- Text & Links --- */
#bblcpg-instruction {
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--muted);
}

a.termsC:link,
a.termsC:visited {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.termsC:hover,
a.termsC:active {
  color: var(--link-hover);
}

/* --- Labels --- */
label.bblcpg-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
}

/* --- Inputs --- */
#bblcpg-form-container div input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  margin-bottom: 12px;
  background: var(--field-bg);
  color: #ffffff;
  outline: none;
  transition: all 0.25s ease;
  font-family: 'Roboto', sans-serif;
}

#bblcpg-form-container div input:hover {
  background: var(--field-bg-hover);
}

#bblcpg-form-container div input:focus-visible {
  border-color: var(--field-outline);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.35);
}

/* Placeholder */
#bblcpg-form-container ::placeholder {
  color: rgba(255,255,255,0.7);
}

/* --- Checkbox --- */
#bblcpg-form-container div input#bblcpg-checkbox {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  accent-color: #1A3282;
}

#bblcpg-form-container div label#bblcpg-checkbox-label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

#bblcpg-checkbox-container {
  width: 100%;
}

/* Right-align amount field */
#bblcpg-amount {
  text-align: right;
}

/* --- Error Handling --- */
#bblcpg-form-container div input.bblcpg-err-msg {
  border: 1px solid var(--warn);
}

.bblcpg-err-msg {
  font-size: 13px;
  color: var(--warn);
}

/* Error banner */
#bblcpg-error-banner {
  background-color: rgba(220,38,38,0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

#bblcpg-error-banner svg#err-sign {
  width: 24px;
}

/* --- Button --- */
#bblcpg-pay-now-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 4px 14px rgba(26,50,130,0.25);
}

#bblcpg-pay-now-btn:hover {
  background-color: var(--btn-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26,50,130,0.35);
}

#bblcpg-pay-now-btn:active {
  transform: translateY(0);
}

#bblcpg-pay-now-btn[disabled],
#bblcpg-pay-now-btn[disabled]:hover {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

/* --- Number input normalization --- */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* --- Generic Containers --- */
.bblcpg-container {
  text-align: center;
  background: rgba(255,255,255,0.95);
  color: #1A3282;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(26,50,130,0.15);
}

.bblcpg-item {
  margin-bottom: 10px;
}

/* --- Warning & Error Pages --- */
.bblcpg-warning-sign {
  font-size: 50px;
  color: var(--warn);
}

.bblcpg-error-message {
  color: #1A3282;
}

.bblcpg-error-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--warn);
  margin: 10px 0;
}

/* --- Success Page --- */
.bblcpg-checkmark {
  font-size: 50px;
  color: var(--success);
}

.bblcpg-message {
  font-size: 24px;
  color: #e8f0ff;
}

.bblcpg-receipt-label {
  font-weight: bold;
}

.bblcpg-order-id,
.bblcpg-policy,
.bblcpg-amount {
  font-size: 20px;
  display: inline-block;
}
