/* ==========================================================================
   Publyz SELECT registration flow
   Route: /select/register
   Builds on select-landing.css (header, footer, buttons, tokens).
   ========================================================================== */

body.select-register-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--select-white);
}

.select-register-page .select-reg-main {
  flex: 1;
  width: 100%;
  padding: 48px 20px 88px;
}

/* --------------------------------------------------------------------------
   Headings + card
   -------------------------------------------------------------------------- */

.select-reg-head {
  width: min(100%, 640px);
  margin: 0 auto 28px;
  text-align: center;
}

.select-reg-head h1,
.select-reg-complete h1 {
  margin: 0;
  font-family: var(--select-serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--select-ink);
}

.select-reg-head p {
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--select-body);
  font-size: 16px;
  line-height: 1.6;
}

.select-reg-card {
  width: min(100%, 680px);
  margin: 0 auto;
  background: var(--select-grey);
  border-radius: 14px;
  padding: 36px;
}

/* --------------------------------------------------------------------------
   Form fields
   -------------------------------------------------------------------------- */

.select-reg-field {
  margin-bottom: 18px;
}

.select-reg-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--select-ink);
  font-size: 14px;
  font-weight: 600;
}

.select-reg-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.select-reg-count {
  color: var(--select-muted);
  font-size: 12px;
  font-weight: 500;
}

.select-reg-input {
  width: 100%;
  min-height: 46px;
  background: var(--select-white);
  border: 1px solid #e5e5e2;
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--select-ink);
  font-family: var(--select-sans);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.select-reg-input::placeholder {
  color: #a4a5a8;
}

.select-reg-input:focus {
  outline: none;
  border-color: var(--select-green);
  box-shadow: 0 0 0 3px rgba(8, 170, 119, 0.14);
}

select.select-reg-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8b8e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.select-reg-textarea {
  resize: vertical;
  min-height: 150px;
}

.select-reg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.select-reg-grid--name {
  grid-template-columns: minmax(96px, .6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.select-reg-grid--name .select-reg-field {
  margin-bottom: 18px;
}

.select-reg-grid--title {
  grid-template-columns: minmax(0, 180px);
}

.select-reg-help {
  margin: 7px 0 0;
  color: var(--select-muted);
  font-size: 12.5px;
}

.select-reg-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  font-size: 15px;
}

.select-reg-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.select-reg-note {
  margin: 14px 0 0;
  text-align: center;
  color: var(--select-muted);
  font-size: 12.5px;
}

.select-reg-back {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: var(--select-body);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.select-reg-back:hover {
  color: var(--select-ink);
}

.select-reg-alert {
  margin: 0 auto 20px;
  width: min(100%, 600px);
  background: #fdf1f1;
  border: 1px solid #f3d5d5;
  border-radius: 10px;
  padding: 12px 16px;
  color: #a13636;
  font-size: 14px;
  line-height: 1.5;
}

.select-reg-card .select-reg-alert {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Payment screen
   -------------------------------------------------------------------------- */

.select-reg-card--payment {
  text-align: center;
}

.select-reg-payment-box {
  background: var(--select-white);
  border: 1px solid #e5e5e2;
  border-radius: 12px;
  margin: 6px 0 18px;
  padding: 18px;
}

.select-reg-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--select-green);
  color: var(--select-white);
  border-radius: 14px;
  min-height: 76px;
  padding: 16px 24px;
  box-shadow: 0 16px 34px rgba(8, 170, 119, 0.22);
}

.select-reg-price span {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.select-reg-price small {
  font-size: 14px;
  font-weight: 500;
}

.select-reg-summary {
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}

.select-reg-summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  background: var(--select-white);
  border-radius: 8px;
  padding: 11px 14px;
}

.select-reg-summary dt {
  color: var(--select-muted);
  font-size: 13px;
  font-weight: 500;
}

.select-reg-summary dd {
  margin: 0;
  color: var(--select-ink);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.select-reg-discount-row dd {
  color: var(--select-green-dark);
}

.select-reg-coupon-field {
  margin-bottom: 0;
}

.select-reg-coupon-field label span {
  color: var(--select-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Profile upload
   -------------------------------------------------------------------------- */

.select-reg-upload {
  display: flex;
  align-items: center;
  gap: 16px;
}

.select-reg-upload-preview {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--select-white);
  border: 1px dashed #d4d4d1;
  color: #a4a5a8;
  overflow: hidden;
}

.select-reg-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.select-reg-upload-preview svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.select-reg-upload-copy {
  flex: 1;
  min-width: 0;
}

.select-reg-upload-copy input[type="file"] {
  width: 100%;
  font-size: 13.5px;
  color: var(--select-body);
}

.select-reg-upload-copy p {
  margin: 7px 0 0;
  color: var(--select-muted);
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Completion screen
   -------------------------------------------------------------------------- */

.select-reg-complete {
  width: min(100%, 600px);
  margin: 24px auto 0;
  text-align: center;
}

.select-reg-success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--select-green-pale);
  color: var(--select-green-dark);
}

.select-reg-success-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.select-reg-complete p {
  margin: 14px auto 0;
  max-width: 520px;
  color: var(--select-body);
  font-size: 16px;
  line-height: 1.6;
}

.select-reg-profile-preview {
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: var(--select-grey);
  border-radius: 12px;
  padding: 16px 18px;
}

.select-reg-profile-preview img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  object-fit: cover;
}

.select-reg-profile-preview strong {
  display: block;
  color: var(--select-ink);
  font-size: 15px;
  font-weight: 600;
}

.select-reg-profile-preview span {
  display: block;
  margin-top: 2px;
  color: var(--select-body);
  font-size: 13.5px;
  line-height: 1.45;
}

.select-reg-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.select-reg-actions .select-btn {
  min-height: 48px;
  padding: 12px 26px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .select-register-page .select-reg-main {
    padding: 32px 16px 64px;
  }

  .select-reg-card {
    padding: 24px 18px;
    border-radius: 12px;
  }

  .select-reg-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .select-reg-grid .select-reg-field {
    margin-bottom: 18px;
  }

  .select-reg-price span {
    font-size: 26px;
  }

  .select-reg-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .select-reg-actions .select-btn {
    width: 100%;
  }
}
