/* =========================
   ResponseLinq theme styles
   Bootstrap-safe (scoped)
   Usage: wrap UI with <div class="rl-theme"> ... </div>
   Load bootstrap.css BEFORE this file.
   ========================= */

/* --------- variables (prefixed) --------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --rl-primary: #194bf3;
  --rl-primary-dark: #1645ab;
  --rl-action-primary: #3d80c4;
  --rl-action-primary-dark: #346ea9;
  --rl-success: #10b981;
  --rl-surface: #ffffff;
  --rl-surface-hover: #f8fafc;
  --rl-border: #72757b;
  --rl-border-focus: #4a85ef;
  --rl-text: ##797676;
  --rl-label: #64728c;
  --rl-text-muted: #797676;
  --rl-text-light: #94a3b8;
  --rl-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --rl-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --rl-radius: 0.5rem;
  --rl-font-sans: "Roboto", sans-serif;
  --rl-white: #fff;
  --rl-gray-50: #f9fafb;
  --rl-gray-100: #f3f4f6;
  --rl-gray-200: #e5e7eb;
  --rl-danger: #e34343;
  --btn-primary: #f60607;
  --btn-primary-dark: #e50909;
}

/* ------------------------------------------------
   IMPORTANT: wrap the page HTML for theme UI:
   <div class="rl-theme">
     ... your theme HTML ...
   </div>
   ------------------------------------------------ */
.rl-page-wrapper {
  background-color: #F9F9F9;
  padding: 40px 0;
}

.rl-theme {
  font-family: var(--rl-font-sans);
  color: var(--rl-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

}

/* Basic element resets inside scope */
.rl-theme img {
  max-width: 100%;
  height: auto;
  display: block;
}

.rl-theme a {
  color: var(--rl-primary);
  text-decoration: none;
}

.rl-theme a:hover {
  text-decoration: underline;
}


/* -------------------------
   Containers & layout
   ------------------------- */
.rl-theme .rl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.rl-theme .header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.rl-theme .logo {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--rl-primary), var(--rl-success));
  border-radius: var(--rl-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--rl-shadow-lg);
}

.rl-theme .header-content h1 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: #000;
}

.rl-theme .header-content p {
  margin: 0.25rem 0 0 0;
  color: var(--rl-text-muted);
  font-size: 0.875rem;
}

/* main card and grid */
.rl-theme .main-card {
  border-radius: 6px;
  background-color: #fff;
  padding: 1.5em;
  font-size: 18px;
  box-shadow: -1px 15px 33px 4px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.rl-theme .form-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 600px;
}

@media (max-width: 1024px) {
  .rl-theme .form-grid {
    grid-template-columns: 1fr;
  }
}

/* form section */
.rl-theme .form-section {
  padding-right: 2rem;
}

.rl-theme .field-group {
  margin-bottom: 1.5rem;
}

.rl-theme label {
  display: block;
  font-weight: 400;
  color: var(--rl-label);
  line-height: 1;
  padding: .6em 0;
  font-size: .6em;
  cursor: text;
  margin: 0 !important;
}

/* inputs */
.rl-theme input[type="text"],
.rl-theme input[type="email"],
.rl-theme input[type="tel"],
.rl-theme select,
.rl-theme textarea {
  font-size: .9em;
  font-weight: 500;
  line-height: 1.5;
  padding: .5em 1em;
  border: 1px solid;
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 3px;
  border-color: var(--rl-border);
  background-color: var(--rl-white);
  color: #000 !important;
}

.rl-theme input[type="text"]:focus,
.rl-theme input[type="email"]:focus,
.rl-theme input[type="tel"]:focus,
.rl-theme select:focus,
.rl-theme textarea:focus {
  outline: none !important;
  border-color: var(--rl-border-focus) !important;
  box-shadow: 0 0 0 2px rgba(74, 133, 239, .3) !important;
  background-color: var(--rl-white) !important;
}

.rl-theme input[type="text"]::placeholder,
.rl-theme input[type="email"]::placeholder,
.rl-theme input[type="tel"]::placeholder,
.rl-theme select::placeholder,
.rl-theme textarea::placeholder {
  font-weight: 400;
  color: var(--rl-text-muted);
}

.rl-theme textarea {
  resize: vertical;
  min-height: 4rem;
}

/* option grid & option card */
.rl-theme .option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.rl-theme .option-card {
  border: 1px solid var(--rl-border);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.18s ease;
  background: var(--rl-white);
  position: relative;
}

.rl-theme .option-card:hover {
  border-color: var(--rl-primary);
  background: var(--rl-surface-hover);
  box-shadow: var(--rl-shadow);
}

.rl-theme .option-card.selected {
  border-color: var(--rl-primary);
  background: rgba(59, 130, 246, 0.05);
  box-shadow: var(--rl-shadow);
}

.rl-theme .option-card.selected:before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  right: 5px;
  top: 5px;
  background-color: var(--rl-primary);
  border-radius: 50%;
}

.rl-theme .option-card.selected:after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  right: 12px;
  top: 12px;
  border-radius: 50%;
  background-color: var(--rl-white);
  z-index: 1;
}

.rl-theme .option-card input {
  display: none;
}

.rl-theme .option-title {
  font-weight: 600;
  color: var(--rl-text);
  margin-bottom: 0.25rem;
}

.rl-theme .option-description {
  color: var(--rl-text-muted);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.rl-theme .price-badge {
  display: inline-block;
  background: var(--btn-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: calc(var(--rl-radius) / 2);
  font-weight: 600;
  font-size: 0.875rem;
}

/* controls */
.rl-theme .controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.rl-theme .control-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rl-border);
  border-radius: 6px;
  cursor: pointer;
}

.rl-theme .control-option:hover {
  background: var(--rl-surface-hover);
}

.rl-theme .control-option.selected {
  background: rgba(59, 130, 246, 0.05);
  border-color: var(--rl-primary);
}

.rl-theme .control-option input {
  margin: 0;
}

/* helper text */
.rl-theme .helper-text {
  color: var(--rl-text-light);
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

/* summary (right column) */
.rl-theme .summary-section {
  background: #f8fafc;
  padding: 1.5rem;
}

@media (max-width: 1024px) {
  .rl-theme .summary-section {
    border-left: none;
  }
}

.rl-theme .summary-card,
.billing-section {
  background: var(--rl-surface);
  border-radius: var(--rl-radius);
  padding: 1rem;
  box-shadow: var(--rl-shadow);
  margin-bottom: 1.5rem;
}

.rl-theme .summary-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--rl-primary);
}

.rl-theme .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.summary-label {
  font-size: 0.9em;
  opacity: 0.8;
}

.summary-value {
  color: #000;
  opacity: 0.8;
}

.rl-theme .summary-row.total {
  font-weight: 800;
  color: var(--rl-primary-dark);
  border-top: 2px solid var(--rl-border);
  padding-top: 1rem;
}

/* Billing section */
.rl-theme .billing-section {
  margin-top: 1.5rem;
}

.rl-theme .billing-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--rl-action-primary);
}

/* card placeholder */
.rl-theme .card-placeholder {
  border: 2px dashed var(--rl-border);
  border-radius: var(--rl-radius);
  padding: 1rem;
  text-align: center;
  color: var(--rl-text-muted);
  margin-bottom: 0.5rem;
}

/* form-row */
.rl-theme .form-row {
  margin-bottom: 1rem;
}

#addedUsersContainer,
#modelSection1 {
  background: aliceblue;
  padding: 0.8rem 1.2rem 1.2rem;
  border-radius: 6px;
  border: 1px solid aquamarine;
}

/* 
.rl-theme .form-row.single {
  grid-template-columns: 1fr;
} */

@media (max-width: 640px) {
  .rl-theme .form-row {
    grid-template-columns: 1fr;
  }
}

/* -------------------------
   Buttons (renamed to rl-btn)
   ------------------------- */
.rl-theme .rl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--rl-radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}

.rl-theme .rl-btn-primary {
  background: var(--btn-primary);
  color: white;
  border: 0px none;
  transition: all 0.5s ease;
  padding: 0.6em 1em;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: .08em;
  font-size: .9em;
  border-radius: 3px;
}

.rl-theme .rl-btn-primary:hover {
  background: var(--btn-primary-dark);
  box-shadow: var(--rl-shadow-lg);
  border: 0px none;
}

.rl-theme .rl-btn-secondary {
  background: var(--rl-primary);
  color: var(--rl-white);
  border: 0px none;
  transition: all 0.5s ease;
  padding: 0.6em 1em;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: .08em;
  font-size: .9em;
  border-radius: 3px;
}

.rl-theme .rl-btn-secondary:hover {
  background: var(--rl-primary-dark);
  box-shadow: var(--rl-shadow-lg);
  border: 0px none;
}

.rl-theme .modal-actions .rl-btn-secondary {
  background: var(--rl-action-primary);
  color: var(--rl-white);
  border: 0px none;
  transition: all 0.5s ease;
  padding: 0.6em 1em;
  font-weight: 400;
  font-size: .85em;
  border-radius: 3px;
  line-height: normal;
}

.rl-theme .modal-actions .rl-btn-secondary:hover {
  background: var(--rl-action-primary-dark);
  box-shadow: var(--rl-shadow-lg);
  border: 0px none;
}

/* full width */
.rl-theme .rl-btn-full {
  width: 100%;
  margin-top: 10px;
}

/* hidden utility */
.rl-theme .hidden {
  display: none !important;
}

.form-group {
  position: relative;
}

.clear-btn,
.modal-close {
  opacity: .3;
  margin-right: .4em;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIxLjY0IDExLjE3MmwtNC42NDggNC42NDggNC42NDkgNC42NDktMS4xNzIgMS4xNzItNC42NDktNC42NDktNC42NDggNC42NDlMMTAgMjAuNDY5bDQuNjQ4LTQuNjQ5TDEwIDExLjE3MiAxMS4xNzIgMTBsNC42NDggNC42NDhMMjAuNDcgMTB6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=);
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 76.6%;
  cursor: pointer;
  font-size: .7em;
  width: 3em;
  height: 3em;
  padding: 0;
  position: absolute;
  border: 1px solid hsla(0, 0%, 100%, 0);
  top: 0;
  bottom: 0;
  z-index: 1;
  right: 0;
  background-color: transparent !important;
  transition: all .33s ease;
}

.clear-btn:hover,
.clear-btn:focus {
  opacity: 1;
  background-color: transparent !important;
  border: 1px solid transparent !important;
  position: absolute !important;
}

/* -------------------------
   Radio card (styled radio)
   ------------------------- */
.rl-theme .radio-group {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.rl-theme .radio-card {
  display: block;
  cursor: pointer;
  /* width: 120px;
  border-radius: 12px; */
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
  position: relative;
}

.rl-theme .radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.rl-theme .radio-card .card-content {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  /* padding: 6px 12px; */
  border-radius: 6px;
  /* background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0.35));
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06) inset; 
  min-height: 40px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; */
}

.rl-theme .radio-card .custom-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--rl-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.85),
      rgba(255, 255, 255, 0.6));
  box-shadow: 0 2px 6px rgba(2, 6, 23, 0.06) inset;
  transition: transform 0.18s ease, background 0.18s; */
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--rl-primary);
}

.rl-theme .radio-card .custom-radio::after {
  content: "";
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--rl-primary);
  display: block;
  transition: width 0.18s, height 0.18s;
}

.rl-theme .radio-card .label-text {
  font-weight: 400;
  color: var(--rl-text);
  font-size: 0.95rem;
}

.rl-theme .radio-card .card-sub {
  font-size: 0.75rem;
  color: var(--rl-text-light);
  margin-top: -4px;
  display: block;
}


.rl-theme .radio-card input:focus {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
  outline: none;
  border-color: var(--rl-border-focus);
}

.rl-theme .radio-card input[type="radio"]:checked+.card-content .custom-radio {
  /* background: linear-gradient(135deg, var(--rl-primary), var(--rl-primary-dark)); */
  border: 2px solid var(--rl-primary);
}

.rl-theme .radio-card input[type="radio"]:checked+.card-content .custom-radio::after {
  width: 10px;
  height: 10px;
}

/* -------------------------
   Modal (renamed rl-modal)
   ------------------------- */


/* Modal overlay */
.terms-modal-overlay #modalTitle {
  text-align: left !important;
}

.terms-modal-overlay .rl-questions {
  margin-top: 16px ! important;
}

.page-template .modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.55));
  z-index: 12000;
  padding: 24px;
}

/* centered panel */
.rl-theme .modal-panel {
  width: 100%;
  max-width: 1040px;
  background: #F9F9F9;
  border-radius: 6px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: scaleIn 220ms ease;

}

.modal-content {
  width: 100%;
  overflow: auto;
  max-height: 80vh;
  position: relative;
}

/* close button */
/* .rl-theme .modal-close {
  position: absolute;
  top: -10px;
  right: 0;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--btn-primary-dark);
  cursor: pointer;
  padding: 0;
} */

/* header */
.rl-theme .modal-panel h2 {
  margin: 0 0 6px 0;
  font-size: 1.4rem;
  color: var(--text);
  text-align: center;
}

.rl-theme .modal-sub {
  text-align: center;
  color: var(--text-light);
  margin: 6px 0 18px 0;
  font-size: 0.95rem;
}

/* users table */
.rl-theme .users-table {
  background: aliceblue;
  padding: 1.2rem;
  border-radius: 6px;
}

/* header row */
/* .rl-theme .users-row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr 1.2fr 1fr 48px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: transparent;
} */
.d-flex {
  display: flex;
}

.rl-theme .users-row.header {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* single data row */
.users-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 8px 0 !important;
}

.users-row>div {
  flex: 1;
}

/* .rl-theme .users-row.row {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 250, 251, 0.9));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  align-items: center;
} */


/* inputs */


/* remove row button (trash) */
.rl-theme .remove-row {
  background: transparent;
  color: var(--btn-primary);
  font-size: 18px;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid;
  margin-left: 8px;
  transition: all 0.3s ease;
}

.rl-theme .remove-row:hover {
  background: transparent;
  color: var(--btn-primary-dark);
  font-size: 18px;
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid var(--btn-primary-dark);
  margin-left: 8px;
}

/* actions area */
.rl-theme .modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

/* small responsive adjustments */
@media (max-width: 880px) {
  .rl-theme .users-row {
    grid-template-columns: 72px 1fr 1fr;
    grid-auto-rows: auto;
  }

  .rl-theme .users-row.header {
    display: none;
  }

  .rl-theme .users-row.row {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 8px;
  }

  .rl-theme .users-row.row>*:nth-child(4),
  .rl-theme .users-row.row>*:nth-child(5),
  .rl-theme .users-row.row>*:nth-child(6) {
    /* display:none; */
  }
}

/* -------------------------
   Error / Field validation
   ------------------------- */
.rl-theme .is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15);
}

.rl-theme .invalid-highlight {
  outline: 2px solid rgba(220, 53, 69, 0.15);
  border-radius: 6px;
  padding: 0.25rem;
}

.rl-theme .field-error-tip {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

.rl-questions {
  font-size: 0.8em;
  color: #323232;
  margin: 24px 0 4px 0;
}

/* -------------------------
   Loading & error overlays
   ------------------------- */
.rl-theme .payment-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(6px);
}

.rl-theme .payment-loading-content {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* small spinner */
.rl-theme .loading-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid var(--rl-success);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 2rem;
}

/* error popup */
.rl-theme .error-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.rl-theme .error-popup-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* -------------------------
   Invoice / items / tables
   ------------------------- */
.rl-theme .invoice-card {
  margin: 2rem;
  background: var(--rl-white);
  border-radius: var(--rl-radius);
  overflow: hidden;
  box-shadow: var(--rl-shadow-lg);
}

.rl-theme .invoice-head {
  padding: 2rem;
  border-bottom: 1px solid var(--rl-gray-100);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.rl-theme .invoice-head h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--rl-text);
  margin-bottom: 1rem;
}

.rl-theme .invoice-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rl-theme .meta-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--rl-text-muted);
}

/* table container */
.rl-theme .table-container {
  background: var(--rl-white);
  border-radius: var(--rl-radius);
  overflow: hidden;
  box-shadow: var(--rl-shadow);
  border: 1px solid var(--rl-gray-200);
}

.rl-theme table {
  width: 100%;
  border-collapse: collapse;
}

.rl-theme thead {
  background: linear-gradient(135deg, var(--rl-gray-50), var(--rl-gray-100));
}

.rl-theme th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--rl-text);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--rl-gray-200);
}

.rl-theme td {
  padding: 1rem;
  color: var(--rl-text);
}

/* -------------------------
   Addresses / cards
   ------------------------- */
.rl-theme .addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: var(--rl-gray-50);
}

.rl-theme .info-card {
  background: var(--rl-white);
  border-radius: var(--rl-radius);
  padding: 1.5rem;
  box-shadow: var(--rl-shadow);
  border: 1px solid var(--rl-gray-200);
}

/* -------------------------
   Animations & keyframes
   ------------------------- */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.98);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------------
   Small / Responsive tweaks
   ------------------------- */
@media (max-width: 640px) {
  .rl-theme .container {
    padding: 1rem;
  }

  .rl-theme .header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .rl-theme .form-section {
    padding: 1.5rem;
  }

  .rl-theme .summary-section {
    padding: 1.5rem;
  }

  .rl-theme .option-grid {
    grid-template-columns: 1fr;
  }

  .rl-theme .controls {
    flex-direction: column;
    align-items: stretch;
  }
}




/* --- Added users list styles --- */
.added-users-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.added-users-list.empty .empty-state {
  color: var(--rl-text-light);
  padding: 14px;
  border: 1px dashed var(--rl-border);
  border-radius: 10px;
  text-align: center;
  background-color: var(--rl-white);
}

/* user card */
.user-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95));
  border: 1px solid #b8edd3;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.03);
}

.user-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
  min-width: 0;
}

.user-meta .name {
  font-weight: 600;
  color: var(--text);
}

.user-meta .small {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* actions on the right */
.user-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.user-actions button {
  border: 0;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  font-size: 18px;
}

.user-actions button.delete {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIxLjY0IDExLjE3MmwtNC42NDggNC42NDggNC42NDkgNC42NDktMS4xNzIgMS4xNzItNC42NDktNC42NDktNC42NDggNC42NDlMMTAgMjAuNDY5bDQuNjQ4LTQuNjQ5TDEwIDExLjE3MiAxMS4xNzIgMTBsNC42NDggNC42NDhMMjAuNDcgMTB6IiBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=);
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 76.6%;
  background-color: transparent;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.user-actions button.delete:hover {
  border: 1px solid var(--btn-primary);
}

/* small screens */
@media (max-width:640px) {
  .user-card {
    flex-direction: row;
  }

  .user-thumb {
    width: 56px;
    height: 56px;
  }
}



/* -------------------------
   Terms block and footer helpers
   ------------------------- */
.rl-theme .terms-block {
  margin: 1.25rem 0;
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Roboto", sans-serif;
  color: #374151;
}

.rl-theme .terms-block__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: #111827;
  font-weight: 700;
}

.rl-theme .terms-block__text {
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
}

.rl-theme .terms-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  cursor: pointer;
  user-select: none;
}

/* -------------------------
   Utility: small error / success overlay
   ------------------------- */
.rl-theme .success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeInUp 0.4s ease;
}

/* -------------------------
   Accessibility helpers
   ------------------------- */
.rl-theme .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* tiny helpers */
.rl-theme #modelSection {
  margin-top: 0.5rem;
}

.rl-theme .model-duplicate {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

/* .rl-theme .model-duplicate input {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.rl-theme #bdaCount {
  min-width: 200px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
} */
.recurly-element,
.recurly-hosted-field {
  padding: 0 !important;
}

/* .payment-confirmation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
} */

.payment-confirmation-grid,
.payment-confirmation-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  padding: 24px;
}

.rl-theme .payment-confirmation-grid .main-card,
.rl-theme .payment-confirmation-details-grid .main-card {
  box-shadow: 0 6px 18px rgba(18, 24, 39, 0.04);
  flex: 1 1 calc(50% - 18px);
}

.rl-theme .payment-confirmation-grid:only-child>.main-card,
.rl-theme .payment-confirmation-grid>.main-card:only-child {
  flex: 1 1 100%;
}

.terms-panel .main-card {
  box-shadow: 0 6px 18px rgba(18, 24, 39, 0.04);
}

.m-0 {
  margin: 0 !important;
}

.pt-0 {
  padding-top: 0 !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.two-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  align-items: start;
}

.two-col-list dt {
  font-size: 13px;
  font-weight: 400;
}

.two-col-list dd {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 900px) {

  .rl-theme .payment-confirmation-grid .main-card,
  .rl-theme .payment-confirmation-details-grid .main-card {
    max-width: 100%;
    flex-basis: 100%;
  }
}