:root {
  --cpr-bg: #0f3d3e;
  --cpr-bg-2: #1a5c5e;
  --cpr-accent: #f0b429;
  --cpr-accent-dark: #d49a12;
  --cpr-surface: #ffffff;
  --cpr-text: #163032;
  --cpr-muted: #5d7374;
  --cpr-line: #d7e3e3;
  --cpr-ok: #1f8a70;
  --cpr-danger: #c44536;
  --cpr-radius: 20px;
  --cpr-shadow: 0 14px 42px rgba(15, 61, 62, 0.18);
}

body.customers .wrapper,
body.cpr-preregister .wrapper,
body.customers #wrapper,
body.cpr-preregister #wrapper {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.customers .container,
body.cpr-preregister .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cpr-app {
  position: relative;
  min-height: 100vh;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 18px 48px;
  color: var(--cpr-text);
  font-family: "Vazirmatn", "IRANSans", Tahoma, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
  box-sizing: border-box;
}

.cpr-app *,
.cpr-app *::before,
.cpr-app *::after {
  box-sizing: border-box;
}

.cpr-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(240, 180, 41, 0.28), transparent 42%),
    radial-gradient(circle at 90% 20%, rgba(26, 92, 94, 0.45), transparent 40%),
    linear-gradient(165deg, #e8f3f3 0%, #f7faf8 45%, #eef5ef 100%);
}

.cpr-bg::after {
  content: "";
  position: absolute;
  inset: auto -20% -10% -20%;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(15, 61, 62, 0.08));
  clip-path: ellipse(70% 60% at 50% 100%);
}

.cpr-header {
  margin-bottom: 22px;
}

.cpr-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cpr-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 22px rgba(15, 61, 62, 0.14);
  flex-shrink: 0;
}

.cpr-brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, var(--cpr-accent), #f7d06a),
    var(--cpr-accent);
  box-shadow: 0 8px 20px rgba(240, 180, 41, 0.35);
  position: relative;
  flex-shrink: 0;
}

.cpr-brand-mark::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(15, 61, 62, 0.55);
  border-radius: 8px;
  transform: rotate(12deg);
}

.cpr-brand h1 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.35;
  color: var(--cpr-bg);
  font-weight: 800;
}

.cpr-brand p {
  margin: 4px 0 0;
  color: var(--cpr-muted);
  font-size: 1rem;
}

.cpr-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 22px;
  position: relative;
  padding: 14px 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 61, 62, 0.08);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15, 61, 62, 0.06);
}

.cpr-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 18%;
  left: 18%;
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 61, 62, 0.18), rgba(15, 61, 62, 0.08));
  z-index: 0;
}

.cpr-step {
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cpr-step.is-active,
.cpr-step.is-done {
  opacity: 1;
}

.cpr-step span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #8aa0a1;
  color: #3d5556;
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 8px;
  box-shadow: 0 2px 0 rgba(15, 61, 62, 0.05);
}

.cpr-step.is-active span,
.cpr-step.is-done span {
  background: var(--cpr-bg);
  border-color: var(--cpr-bg);
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 61, 62, 0.25);
}

.cpr-step.is-done span {
  background: var(--cpr-ok);
  border-color: var(--cpr-ok);
}

.cpr-step small {
  display: block;
  font-size: 0.82rem;
  color: #4a6364;
  line-height: 1.3;
  font-weight: 600;
}

.cpr-step.is-active small {
  color: var(--cpr-bg);
  font-weight: 800;
}

.cpr-main {
  background: var(--cpr-surface);
  border-radius: calc(var(--cpr-radius) + 4px);
  box-shadow: var(--cpr-shadow);
  padding: 24px 18px 28px;
  animation: cpr-rise 0.45s ease both;
}

@keyframes cpr-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.cpr-panel {
  display: none;
}

.cpr-panel.is-visible {
  display: block;
  animation: cpr-fade 0.35s ease both;
}

@keyframes cpr-fade {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

.cpr-panel h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: var(--cpr-bg);
  font-weight: 800;
}

.cpr-panel h2.mt {
  margin-top: 26px;
}

.cpr-panel-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.cpr-link {
  border: 0;
  background: none;
  color: var(--cpr-bg-2);
  padding: 0;
  font-size: 1rem;
  text-align: right;
  cursor: pointer;
}

.cpr-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cpr-choice {
  border: 2px solid var(--cpr-line);
  background: #fbfefe;
  border-radius: var(--cpr-radius);
  padding: 22px 14px;
  min-height: 120px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cpr-choice::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cpr-ok);
  box-shadow: 0 4px 10px rgba(31, 138, 112, 0.35);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.cpr-choice.is-selected::after {
  opacity: 1;
  transform: scale(1);
}

.cpr-choice:active {
  transform: scale(0.98);
}

.cpr-choice.is-selected {
  border-color: var(--cpr-bg);
  box-shadow: 0 0 0 4px rgba(15, 61, 62, 0.12);
  background: #eef7f7;
}

.cpr-choice strong {
  display: block;
  margin-top: 10px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--cpr-text);
}

.cpr-choice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d9eeee, #f4fafa);
  color: var(--cpr-bg);
}

.cpr-choice-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.cpr-icon-adult {
  color: #0f3d3e;
  background: linear-gradient(145deg, #d4ecec, #edf7f7);
}

.cpr-icon-child {
  color: #1f7a8c;
  background: linear-gradient(145deg, #d8f1f6, #eef9fb);
}

.cpr-icon-male {
  color: #1d4e89;
  background: linear-gradient(145deg, #d9e6f7, #eef4fc);
}

.cpr-icon-female {
  color: #b84d7a;
  background: linear-gradient(145deg, #f7dce8, #fdf0f6);
}

.cpr-choice.is-selected .cpr-choice-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(15, 61, 62, 0.12);
}

.cpr-actions {
  margin-top: 26px;
}

.cpr-actions-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.cpr-actions-dual {
  grid-template-columns: 0.85fr 1.35fr;
  align-items: stretch;
}

.cpr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 0;
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cpr-btn:active {
  transform: scale(0.985);
}

.cpr-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cpr-btn-primary {
  background: linear-gradient(135deg, var(--cpr-accent), var(--cpr-accent-dark));
  color: #1b2a12 !important;
  box-shadow: 0 10px 24px rgba(240, 180, 41, 0.35);
}

.cpr-btn-secondary {
  background: #fff;
  color: var(--cpr-bg) !important;
  border: 2px solid rgba(15, 61, 62, 0.22);
  box-shadow: none;
  font-weight: 700;
}

.cpr-btn-secondary:hover,
.cpr-btn-secondary:focus {
  background: #eef7f7;
  border-color: var(--cpr-bg);
}

.cpr-location-filter {
  margin-bottom: 18px;
}

.cpr-location-filter-label {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cpr-muted);
}

.cpr-location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cpr-location-chip {
  border: 2px solid var(--cpr-line);
  background: #fbfefe;
  color: var(--cpr-text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cpr-location-chip.is-selected {
  border-color: var(--cpr-bg);
  background: #eef7f7;
  color: var(--cpr-bg);
  box-shadow: 0 0 0 3px rgba(15, 61, 62, 0.1);
}

.cpr-location-chip:active {
  transform: scale(0.98);
}

.cpr-course-list {
  display: grid;
  gap: 14px;
}

.cpr-course {
  border: 1px solid var(--cpr-line);
  border-radius: var(--cpr-radius);
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f8fbfb);
}

.cpr-course h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--cpr-bg);
  font-weight: 800;
}

.cpr-location {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.22), rgba(240, 180, 41, 0.08));
  border: 1px solid rgba(212, 154, 18, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.cpr-location-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cpr-accent-dark);
  letter-spacing: 0.02em;
}

.cpr-location-value {
  font-size: 1.22rem;
  line-height: 1.4;
  font-weight: 800;
  color: var(--cpr-bg);
  word-break: break-word;
}

.cpr-location-selected {
  margin-top: 12px;
  margin-bottom: 0;
}

.cpr-course-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--cpr-muted);
  font-size: 1rem;
}

.cpr-course-meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cpr-course-meta strong {
  color: var(--cpr-text);
  font-weight: 700;
  text-align: left;
}

.cpr-course-desc {
  margin: 0 0 12px;
  color: var(--cpr-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.cpr-seat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 138, 112, 0.12);
  color: var(--cpr-ok);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cpr-seat.is-full {
  background: rgba(196, 69, 54, 0.12);
  color: var(--cpr-danger);
}

.cpr-btn-course {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 0;
  background: var(--cpr-bg);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cpr-btn-course:disabled {
  background: #9aa8a8;
  cursor: not-allowed;
}

.cpr-loading,
.cpr-empty {
  text-align: center;
  color: var(--cpr-muted);
  padding: 32px 10px;
  font-size: 1.05rem;
}

.cpr-selected {
  background: #eef7f7;
  border: 1px dashed var(--cpr-bg-2);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.cpr-hint {
  margin: 0 0 10px;
  color: var(--cpr-muted);
  font-size: 0.98rem;
}

.cpr-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.cpr-form label {
  display: grid;
  gap: 8px;
}

.cpr-form label span {
  font-size: 1rem;
  color: var(--cpr-muted);
  font-weight: 600;
}

.cpr-field-help {
  display: block;
  margin-top: 8px;
  color: var(--cpr-muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
}

.cpr-form input {
  width: 100%;
  min-height: 54px;
  border: 1.5px solid var(--cpr-line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1.1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cpr-form input:focus {
  outline: none;
  border-color: var(--cpr-bg);
  box-shadow: 0 0 0 3px rgba(15, 61, 62, 0.12);
}

.cpr-error {
  background: rgba(196, 69, 54, 0.1);
  color: var(--cpr-danger);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
}

.cpr-confirm {
  background: rgba(15, 61, 62, 0.06);
  border: 1px solid var(--cpr-line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.cpr-confirm p {
  margin: 0;
  color: var(--cpr-text);
  font-size: 1rem;
  line-height: 1.7;
}

.cpr-payment-warning {
  margin: 18px 0 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(196, 69, 54, 0.12), rgba(240, 180, 41, 0.14));
  border: 1px solid rgba(196, 69, 54, 0.28);
  color: #7a2e26;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.85;
  text-align: center;
}

.cpr-success-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 4px auto 16px;
  background: linear-gradient(145deg, #2aa584, var(--cpr-ok));
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 10px 24px rgba(31, 138, 112, 0.35);
  animation: cpr-pop 0.45s ease both;
}

@keyframes cpr-pop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cpr-summary {
  background: #f7fbfb;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.cpr-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cpr-summary strong {
  color: var(--cpr-bg);
}

@media (max-width: 420px) {
  .cpr-app {
    padding: 18px 14px 40px;
    font-size: 17px;
  }

  .cpr-brand h1 {
    font-size: 1.35rem;
  }

  .cpr-logo,
  .cpr-brand-mark {
    width: 56px;
    height: 56px;
  }

  .cpr-steps {
    padding: 12px 6px 10px;
  }

  .cpr-step small {
    font-size: 0.76rem;
  }

  .cpr-main {
    padding: 18px 14px 22px;
  }

  .cpr-choice {
    min-height: 110px;
    padding: 18px 10px;
  }

  .cpr-choice-icon {
    width: 52px;
    height: 52px;
  }

  .cpr-choice-icon svg {
    width: 28px;
    height: 28px;
  }
}
