/* Data integration DI-2e: the 6 Nov design's assets/css/opt-out-import.css
 * (assetsUI/data-integration-06-11-2026), unchanged. Every selector is .opt-* or under
 * .layout-import, the page's root, so nothing reaches other pages. */
/* ==========================================================================
   OPT-OUT CONTACT IMPORT FLOW (assets/css/opt-out-import.css)
   --------------------------------------------------------------------------
   - 100% theme variable driven (zero hardcoded colors)
   - Consistent with CRM design system, components.css, and utilities.css
   - Fully responsive across desktop, tablet, and mobile
   - Independent and modular structure
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page Layout & Reset for Import Shell
   -------------------------------------------------------------------------- */
.layout-import {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font, 'Lexend Deca', sans-serif);
}

.layout-import .auth {
  padding: 0;
  margin: 0;
  max-width: 100%;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.layout-import .auth__theme {
  display: none !important;
}

.opt-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  position: relative;
}

/* --------------------------------------------------------------------------
   Top Navigation Header with Stepper
   -------------------------------------------------------------------------- */
.opt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--sp-6, 24px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  gap: var(--sp-4, 16px);
}

.opt-header__left {
  display: flex;
  align-items: center;
  gap: var(--sp-3, 12px);
  min-width: 160px;
}

.opt-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color .15s ease;
}

.opt-header__back:hover {
  color: var(--brand);
}

.opt-header__brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Stepper Component
   -------------------------------------------------------------------------- */
.opt-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 1;
  max-width: 580px;
  margin: 0 auto;
}

.opt-step-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  cursor: default;
  user-select: none;
}

.opt-step-node.is-clickable {
  cursor: pointer;
}

.opt-step-node__indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  transition: all .2s ease;
  flex-shrink: 0;
}

.opt-step-node.is-active .opt-step-node__indicator {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-contrast, #ffffff);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.opt-step-node.is-complete .opt-step-node__indicator {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-contrast, #ffffff);
}

.opt-step-node__label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .2s ease, font-weight .2s ease;
}

.opt-step-node.is-active .opt-step-node__label {
  color: var(--text);
  font-weight: 700;
}

.opt-step-node.is-complete .opt-step-node__label {
  color: var(--text);
  font-weight: 600;
}

.opt-step-line {
  flex: 1;
  height: 2px;
  min-width: 40px;
  background: var(--border-strong);
  transition: background-color .2s ease;
}

.opt-step-line.is-complete {
  background: var(--brand);
}

.opt-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-4, 16px);
  min-width: 160px;
}

.opt-step-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.opt-header__exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.opt-header__exit:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */
.opt-main {
  flex: 1;
  padding: 40px var(--sp-6, 24px) 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.opt-container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.opt-step-view {
  width: 100%;
  animation: optFadeIn .2s ease-out;
}

.opt-step-view[hidden] {
  display: none !important;
}

@keyframes optFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.opt-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.opt-desc {
  margin: 0 0 28px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.opt-link {
  color: var(--brand);
  text-decoration: underline;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s ease;
}

.opt-link:hover {
  color: var(--brand-hover);
}

/* --------------------------------------------------------------------------
   Step 1: Upload Dropzone
   -------------------------------------------------------------------------- */
.opt-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  background: var(--surface);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg, 12px);
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease;
  margin-bottom: 24px;
}

.opt-dropzone:hover,
.opt-dropzone.is-dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.opt-dropzone__icon-wrap {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--brand);
  margin-bottom: 14px;
}

.opt-dropzone__icon-wrap svg {
  width: 26px;
  height: 26px;
}

.opt-dropzone__prompt {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.opt-dropzone__btn {
  font-weight: 600;
}

/* Selected File State inside Dropzone */
.opt-selected-file-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.opt-success-icon-wrap {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  margin-bottom: 14px;
}

.opt-success-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.opt-file-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  word-break: break-all;
}

.opt-file-size {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.opt-change-link {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  transition: color .15s ease;
}

.opt-change-link:hover {
  color: var(--brand-hover);
}

/* Helper Info Box */
.opt-info-card {
  padding: 20px 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
}

.opt-info-card h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.opt-info-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Step 2: Import Details
   -------------------------------------------------------------------------- */
.opt-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 24px;
  align-items: start;
}

.opt-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.opt-helper-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  padding-top: 28px;
}

/* Custom Dropdown for Columns */
.opt-dropdown-wrap {
  position: relative;
  width: 100%;
}

.opt-dropdown-trigger {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
  user-select: none;
}

.opt-dropdown-trigger:hover {
  border-color: var(--text-muted);
}

.opt-dropdown-trigger:focus-visible,
.opt-dropdown-wrap.is-open .opt-dropdown-trigger {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(36, 86, 230, .15);
}

.opt-dropdown-trigger.has-value .opt-select-value {
  color: var(--text);
  font-weight: 500;
}

.opt-select-value {
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opt-select-caret {
  color: var(--text-muted);
  display: inline-flex;
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.opt-dropdown-wrap.is-open .opt-select-caret {
  transform: rotate(180deg);
}

.opt-dropdown-menu {
  position: absolute;
  z-index: 10090;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(16, 24, 40, .14);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.opt-dropdown-menu[hidden] {
  display: none !important;
}

.opt-dropdown-menu.is-open-above {
  top: auto;
  bottom: calc(100% + 4px);
  box-shadow: 0 -10px 28px rgba(16, 24, 40, .14);
}

.opt-dropdown-option {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color .15s ease, color .15s ease;
}

.opt-dropdown-option:hover,
.opt-dropdown-option:focus-visible {
  background: var(--surface-hover);
  outline: none;
}

.opt-dropdown-option.is-selected {
  background: var(--surface-3);
  color: var(--brand);
  font-weight: 600;
}

.opt-dropdown-option.is-selected::after {
  content: "✓";
  font-weight: 700;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Step 3: Confirm Your Opt-Out
   -------------------------------------------------------------------------- */
.opt-warning-text {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

.opt-input-wrap {
  width: 100%;
  margin-bottom: 8px;
}

.opt-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 14.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.opt-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(36, 86, 230, .15);
}

.opt-confirm-hint {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.opt-confirm-hint strong {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Fixed Bottom Action Bar
   -------------------------------------------------------------------------- */
.opt-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  padding: 0 var(--sp-6, 24px);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 16px rgba(16, 24, 40, .05);
}

.opt-footer__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opt-footer__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.opt-footer-tip {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .opt-header {
    height: 56px;
    padding: 0 16px;
  }

  .opt-stepper {
    display: none; /* Keep clean on small mobile, show Step X of 3 on right */
  }

  .opt-header__left {
    min-width: auto;
  }

  .opt-header__right {
    min-width: auto;
  }

  .opt-main {
    padding: 24px 16px 90px;
  }

  .opt-title {
    font-size: 22px;
  }

  .opt-details-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .opt-helper-text {
    padding-top: 0;
  }

  .opt-footer-tip {
    display: none;
  }
}

