/* ============================================================
   ACES 2026 — UNIVERSAL WIZARD STYLES
============================================================ */

/* GLOBAL WRAPPER */
.wizard-page {
  min-height: 100vh;
  background: var(--aces-bg, #f7f8fb);
  padding-bottom: 60px;
}

/* HERO — full-bleed style */
.wizard-hero.wizard-hero--bg {
  position: relative;
  min-height: 380px;
  border-bottom: 1px solid var(--aces-border, rgba(212, 0, 0, 0.12));
  background-image: url("/Icons/hero-applications-aces.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 0;
}

.wizard-hero-overlay {
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.58) 0%,
    rgba(15, 23, 42, 0.5) 45%,
    rgba(15, 23, 42, 0.62) 100%
  );
}

.wizard-hero-content {
  max-width: 900px;
  color: #fff;
}

.wizard-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 12px;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.wizard-hero p {
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 780px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.wizard-back-btn--hero {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--aces-primary, #d40000);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.wizard-back-btn--hero:hover {
  background: #fff;
  border-color: #fff;
}

/* PROGRESS BAR */
.wizard-progress-wrap {
  width: 100%;
  height: 8px;
  background: #ffe4e4;
  border-radius: 999px;
  margin: 25px auto 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 0, 0, 0.12);
}

#wizard-progress {
  height: 100%;
  width: 0%;
  background: var(--aces-primary, #d40000);
  transition: width 0.25s ease;
}

/* TABS */
#wizard-tabs {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-tab {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff1f1;
  color: var(--aces-text, #1f2937);
  border: 1px solid rgba(212, 0, 0, 0.15);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.wizard-tab:hover {
  background: #ffe6e6;
  border-color: rgba(212, 0, 0, 0.25);
}

.wizard-tab.active {
  background: var(--aces-primary, #d40000);
  color: #ffffff;
  border-color: var(--aces-primary, #d40000);
}

/* WIZARD CONTAINER */
#wizard-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* STEP CARD */
.wizard-step-card {
  background: var(--aces-surface, #ffffff);
  border-radius: 14px;
  border: 1px solid var(--aces-border, rgba(212, 0, 0, 0.12));
  padding: 24px 26px 30px;
  box-shadow: var(--aces-shadow, 0 6px 20px rgba(0, 0, 0, 0.06));
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.wizard-step-card:hover {
  box-shadow: 0 10px 24px rgba(212, 0, 0, 0.12);
  border-color: rgba(212, 0, 0, 0.28);
}

/* STEP TITLE */
.wizard-step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--aces-text, #1f2937);
  margin-bottom: 20px;
}

/* FIELD WRAPPER */
.wizard-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wizard-field > label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
}

/* INPUTS */
.wizard-field input,
.wizard-field select,
.wizard-field textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--aces-border, rgba(212, 0, 0, 0.12));
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: #ffffff;
  color: var(--aces-text, #1f2937);
}

.wizard-field input:focus,
.wizard-field select:focus,
.wizard-field textarea:focus {
  border-color: var(--aces-primary, #d40000);
  box-shadow: 0 0 0 3px rgba(212, 0, 0, 0.12);
}

/* CHECKBOX GROUP — customer-friendly style */
.wizard-checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.wizard-checkbox-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 0, 0, 0.18);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
}

.wizard-checkbox-item:hover {
  border-color: rgba(212, 0, 0, 0.4);
  background: #fff8f8;
}

.wizard-checkbox-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #d40000;
  margin: 0;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.wizard-checkbox-item span {
  font-size: 0.96rem;
  color: #1f2937;
  line-height: 1.3;
}

/* Selected card style */
.wizard-checkbox-item:has(input[type="checkbox"]:checked) {
  border-color: #d40000;
  background: #fff1f1;
  box-shadow: 0 0 0 2px rgba(212, 0, 0, 0.08) inset;
}

/* Validation state */
.wizard-checkbox-group.invalid {
  padding: 10px;
  border: 1px solid #d40000;
  border-radius: 12px;
  background: #fff7f7;
}

.wizard-help {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* BUTTONS */
.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  gap: 10px;
}

.wizard-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.wizard-btn.back {
  background: #ffffff;
  color: var(--aces-text-muted, #555);
  border: 1px solid #d9d9d9;
}

.wizard-btn.back:hover {
  color: var(--aces-primary, #d40000);
  border-color: rgba(212, 0, 0, 0.35);
  background: #fffafa;
}

.wizard-btn.next {
  background: var(--aces-primary, #d40000);
  color: #ffffff;
}

.wizard-btn.next:hover {
  background: var(--aces-primary-hover, #ee0000);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 0, 0, 0.2);
}

/* REVIEW SECTION */
.review-section {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1dada;
}

.review-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--aces-primary, #d40000);
  margin-bottom: 10px;
}

.review-section p {
  font-size: 0.95rem;
  color: #374151;
  margin: 4px 0;
}

/* BACK TO APPLICATIONS BUTTON (default style) */
.wizard-back-btn {
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid rgba(212, 0, 0, 0.25);
  background: #fff;
  color: var(--aces-primary, #d40000);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.wizard-back-btn:hover {
  background: #fff1f1;
  border-color: var(--aces-primary, #d40000);
}

/* Reusable application hero block */
.app-selected-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 1.25rem;
  min-height: 260px;
  background-image: var(--app-hero-image, url("/Icons/heroservices/hero-wizard-application.png"));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.app-selected-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.25) 0%,
    rgba(15, 23, 42, 0.45) 45%,
    rgba(15, 23, 42, 0.72) 100%
  );
  z-index: 1;
}

.app-selected-overlay {
  position: relative;
  z-index: 2;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
}

.app-selected-content {
  color: #fff;
  max-width: 560px;
  width: 100%;
  text-align: left;
  margin-left: auto;
}

.app-selected-content h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.app-selected-content p {
  margin: 0;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.5;
  opacity: 0.95;
}

/* Mobile */
@media (max-width: 860px) {
  .wizard-hero.wizard-hero--bg,
  .wizard-hero-overlay {
    min-height: 300px;
  }

  .wizard-hero-overlay {
    padding: 32px 16px;
  }

  .app-selected-hero {
    min-height: 230px;
    background-position: center;
  }

  .app-selected-overlay {
    min-height: 230px;
    justify-content: flex-start;
    padding: 1rem;
  }

  .app-selected-content {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .wizard-checkbox-group {
    grid-template-columns: 1fr;
  }
}
