/* ==============================
   iSuit – Registro Especialista 
   Modern Wizard Styles
   ============================== */

/* ── VARIABLES ─────────────────── */
:root {
  --brand-dark:  #3b065e;
  --brand-mid:   #6a1fa0;
  --brand-light: #f0e8fa;   
  --brand-cyan:  #29b7dd; 
  --text-main:   #2d2d3a; 
  --text-muted:  #8a8a9a;
  --border:      #e4daf0;
  --bg:          #f7f4fc; 
  --white:       #ffffff;
  --radius:      14px; 
  --radius-lg:   20px;
  --shadow:      0 4px 28px rgba(59,6,94,0.10);
}

/* ── PAGE BACKGROUND ───────────── */
body { 
  background: var(--bg) !important;
}

.content-wrapper {
  padding-top: 0 !important;
}

.container-xxl {
  padding-top: 0 !important;
  max-width: 100% !important;
}

/* ── WIZARD WRAPPER ────────────── */
.reg-wizard {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

/* ── HEADER ────────────────────── */
.reg-header {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
} 

.reg-header-brand {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.reg-brand-dot { color: var(--brand-mid); }

.reg-header-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.reg-header-info { flex: 1; }

.reg-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin: 0 0 4px;
  line-height: 1.2;
}

.reg-subtitle {
  color: var(--text-muted);
  font-size: .84rem;
  margin: 0;
}

/* ── STEP INDICATOR ────────────── */
.reg-steps-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px 32px;
  margin-bottom: 24px;
}

.reg-steps-track {
  display: flex; 
  align-items: flex-start;
  justify-content: center;
}

.reg-stp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.reg-stp-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  align-self: flex-start;
  margin-top: 21px;
  min-width: 24px;
  border-radius: 2px;
}

/* Step circles */
.inner-circle-active,
.inner-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: background .3s, box-shadow .3s, color .3s;
  flex-shrink: 0;
}

.inner-circle-active {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid));
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,6,94,0.28);
}

.inner-circle {
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-muted);
  box-shadow: none;
}

/* Step labels */
.reg-stp-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}

.inner-circle-active + .reg-stp-label {
  color: var(--brand-mid);
}

/* ── LOADER ────────────────────── */
.reg-loader {
  text-align: center;
  padding: 48px;
}

/* ── STEP CONTENT CARD ─────────── */
.reg-step-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 44px;
  border: 1px solid var(--border);
}

.reg-step-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.reg-step-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 6px;
}

.reg-step-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ── FORM GRID ─────────────────── */
.reg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 8px;
}

.reg-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.reg-field--full {
  grid-column: 1 / -1;
}

/* ── FORM ELEMENTS ─────────────── */
.reg-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.reg-input, 
.reg-select,
.reg-textarea {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-main);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.reg-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a1fa0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 42px;
  cursor: pointer;
  box-shadow: none;
}

/* Suprimir estado :invalid nativo del navegador y Bootstrap */
.reg-input:invalid,
.reg-select:invalid,
.reg-textarea:invalid,
select:invalid,
input:invalid {
  border-color: var(--border) !important;
  box-shadow: none !important;
  outline: none !important;
  background-image: none; 
}


.reg-input:focus,
.reg-select:focus,
.reg-textarea:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(106,31,160,0.12);
}

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

.reg-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.reg-counter {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

/* ── BUTTONS ───────────────────── */
.reg-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.reg-actions--right   { justify-content: flex-end; }
.reg-actions--between { justify-content: space-between; }

.reg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

.reg-btn--primary {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid));
  color: #fff !important;
}

.reg-btn--primary:hover {
  background: linear-gradient(135deg, #4e0a7e, #7d28b8);
  box-shadow: 0 6px 20px rgba(59,6,94,0.35);
  transform: translateY(-1px);
  color: #fff !important;
}

.reg-btn--secondary {
  background: var(--brand-light);
  color: var(--brand-mid) !important;
}

.reg-btn--secondary:hover {
  background: #e0d0f5;
  color: var(--brand-mid) !important;
}

.reg-btn--outline {
  background: transparent;
  color: var(--brand-dark) !important;
  border: 2px solid var(--brand-dark);
}

.reg-btn--outline:hover {
  background: var(--brand-dark);
  color: #fff !important;
}

.reg-btn--finish {
  padding: 13px 36px;
  font-size: 15px;
}

/* ── SERVICES TABLE ────────────── */
.reg-list-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 12px;
}

.reg-service-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 0;
}

.reg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.reg-table thead th {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  padding: 11px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.reg-table tbody td {
  padding: 11px 18px;
  border-bottom: 1px solid #f4f0fb;
  color: var(--text-main);
  vertical-align: middle;
}

.reg-table tbody tr:last-child td {
  border-bottom: none;
}

.reg-table tbody tr:hover {
  background: #faf8fe;
}

/* ── SCHEDULE ──────────────────── */
.reg-schedule {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.reg-day-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: #faf8fe;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.reg-day-row:hover {
  border-color: var(--brand-mid);
  background: #f5f0fc;
}

.reg-day-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 120px;
}

/* Custom toggle switch */
.reg-day-check {
  appearance: none;
  -webkit-appearance: none;
  width: 42px !important;
  height: 24px !important;
  background: #d8d0e8;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
  flex-shrink: 0;
  border: none !important;
  outline: none !important;
}

.reg-day-check::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.reg-day-check:checked {
  background: var(--brand-mid);
}

.reg-day-check:checked::before {
  transform: translateX(18px);
}

.reg-day-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  width: 80px;
}

.reg-day-times {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.reg-time {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text-main);
  background: #fff;
  transition: border-color 0.2s;
  flex: 1;
  font-family: inherit;
}

.reg-time:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(106,31,160,0.1);
}

.reg-time-sep {
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── PHOTO UPLOAD ──────────────── */
.reg-photo-upload {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  margin-top: 28px;
  align-items: start;
}

.reg-file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-light);
  color: var(--brand-mid);
  border-radius: 50px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  border: 2px dashed var(--brand-mid);
  margin-top: 8px;
}

.reg-file-label:hover {
  background: #e0d0f5;
}

.reg-file-input {
  display: none;
}

.reg-photo-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reg-preview-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--brand-cyan), 0 8px 24px rgba(41,183,221,0.25);
  display: block;
}

#div-preview-avatar {
  display: none;
}

/* ── RESPONSIVE ────────────────── */
@media (max-width: 680px) {
  .reg-header {
    flex-direction: column;
    text-align: center;
    padding: 22px 20px; 
    gap: 12px;
  }

  .reg-header-divider {
    width: 40px;
    height: 1px;
  }

  .reg-step-content {
    padding: 28px 20px;
  }

  .reg-form-grid {
    grid-template-columns: 1fr;
  }

  .reg-photo-upload {
    grid-template-columns: 1fr;
  }

  .reg-photo-preview-col {
    order: -1;
  }

  .reg-preview-img {
    width: 120px;
    height: 120px;
  }

  .reg-day-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .reg-day-toggle {
    min-width: auto;
  }

  .reg-day-times {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .reg-stp-label {
    display: none;
  }

  .inner-circle-active,
  .inner-circle {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .reg-stp-line {
    margin-top: 18px; 
    min-width: 16px;
  }

  .reg-steps-wrapper {
    padding: 18px 16px;
  }

  .reg-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}
