/* Sito Page - Modern & Elegant */

* {
  box-sizing: border-box;
}

/* Tokens: brand-tokens.css (--sito-*) */

.sito-dashboard-header {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* The studio is a fixed-height workspace, so the page header stays slim to
   leave the height to the editor and the preview. */
@media (min-width: 1201px) {
  .sito-dashboard-header {
    margin-bottom: 0.5rem;
  }

  .sito-dashboard-header .admin-dashboard-title {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.15rem;
  }

  .sito-dashboard-header .admin-dashboard-subtitle {
    font-size: var(--font-size-caption);
    margin-bottom: 0;
  }
}

#sitoForm,
.sito-file-input-hidden {
  display: none;
}

.image-preview:not(.is-visible) {
  display: none;
}

.image-preview.is-visible {
  display: block;
}

.palette-swatch--primary {
  background: var(--palette-primary);
}

.palette-swatch--secondary {
  background: var(--palette-secondary);
}

.palette-swatch--accent {
  background: var(--palette-accent);
}

.domain-status-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.domain-status-subtext {
  font-size: 0.9em;
  opacity: 0.85;
}

.domain-input-locked {
  background-color: var(--color-gray-100);
  cursor: not-allowed;
}

/* Main Page */
.sito-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 0.75rem 4rem;
}

/* Top bar: stepper + actions */
.sito-top-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--sito-border);
}

@media (min-width: 1201px) {
  .sito-top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

.sito-stepper {
  flex: 1;
  min-width: 0;
}

.sito-stepper-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--font-size-caption);
  color: var(--color-gray-400);
}

/* Match Modifica Post / post-drawer wizard pills */
.sito-stepper-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xl);
  border: none;
  background: var(--color-gray-100);
  font-size: inherit;
  font-weight: 500;
  color: var(--color-text-subtle);
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

.sito-stepper-item-sep {
  font-weight: 500;
  opacity: 0.9;
  flex-shrink: 0;
}

.sito-stepper-item.is-active {
  background: var(--sito-primary);
  color: var(--color-surface);
  font-weight: 500;
}

.sito-stepper-item.is-active .sito-stepper-item-sep {
  opacity: 0.95;
}

.sito-stepper-chevron {
  display: inline-flex;
  align-items: center;
  color: var(--color-gray-300);
  font-size: var(--font-size-2xs);
  line-height: 1;
  flex-shrink: 0;
}

.sito-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.sito-top-actions .btn {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Wizard + preview layout */
.sito-main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 993px) {
  .sito-main-layout {
    grid-template-columns: minmax(380px, 520px) minmax(280px, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1201px) {
  .sito-main-layout {
    grid-template-columns: minmax(420px, 560px) minmax(320px, 1fr);
    gap: 2.25rem;
  }
}

.sito-wizard-panel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--sito-border);
  box-shadow: var(--shadow-card);
  padding: 0;
  overflow: visible;
}

.sito-wizard-step {
  display: none;
  padding: 1.1rem 1.25rem 0;
}

@media (min-width: 769px) {
  .sito-wizard-step {
    padding: 1.15rem 1.4rem 0;
  }
}

.sito-wizard-step.is-active {
  display: block;
}

/* The step title stays put while the fields under it scroll. */
.sito-wizard-head {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: -1.1rem -1.25rem 0.9rem;
  padding: 0.85rem 1.25rem 0.6rem;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

@media (min-width: 769px) {
  .sito-wizard-head {
    margin: -1.15rem -1.4rem 0.9rem;
    padding: 0.9rem 1.4rem 0.6rem;
  }
}

.sito-wizard-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sito-text-light);
  margin-bottom: 0.2rem;
}

.sito-wizard-eyebrow-count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--sito-primary);
}

.sito-wizard-heading {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--sito-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
  padding-bottom: 0;
  border-bottom: none;
}

.sito-wizard-heading i {
  color: var(--sito-primary);
  font-size: var(--font-size-lg);
}

.sito-wizard-body {
  padding-bottom: 0.75rem;
}

.sito-wizard-body .form-group {
  margin-bottom: 1rem;
}

.sito-wizard-body .form-group:last-child {
  margin-bottom: 0;
}

/* Short fields sit side by side; they collapse to one column when the
   editor pane gets narrow. */
.sito-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0 0.85rem;
  margin-bottom: 1rem;
}

.sito-field-row .form-group {
  margin-bottom: 0;
}

@media (min-width: 1400px) {
  .sito-field-row--1-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

.sito-wizard-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.55rem;
  padding-left: 2.5rem;
}

.sito-wizard-switch .form-check-label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin: 0;
}

.sito-wizard-field-hint {
  font-size: var(--font-size-xs);
  color: var(--sito-text-light);
  margin: -0.2rem 0 0.5rem;
  line-height: 1.4;
  font-weight: 500;
}

.sito-wizard-field--bio textarea,
.sito-wizard-field--services textarea {
  resize: vertical;
  line-height: 1.6;
  padding: 0.7rem 0.85rem;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
  min-height: 0;
}

.sito-wizard-field--bio textarea {
  min-height: 11rem;
}

.sito-wizard-field--services textarea {
  min-height: 8rem;
}

.sito-contact-readonly {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--sito-border);
  background: linear-gradient(145deg, var(--color-surface-muted) 0%, var(--color-surface) 55%);
}

.sito-contact-readonly-title {
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--sito-text);
  margin-bottom: 0.35rem;
}

.sito-contact-readonly-hint {
  font-size: var(--font-size-caption);
  color: var(--sito-text-light);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.sito-social-readonly {
  margin-top: 0.5rem;
}

.sito-social-readonly-value {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 2.5rem;
  padding-top: 0.15rem;
}

.sito-social-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
}

.sito-social-status.is-connected {
  color: var(--brand-green-strong);
  background: rgba(var(--brand-green-rgb), 0.12);
}

.sito-social-status.is-disconnected {
  color: var(--color-text-muted);
  background: rgba(var(--rgb-neutral-500), 0.12);
}

.sito-social-label {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--sito-text);
  word-break: break-word;
}

.sito-wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem 0.75rem;
  border-top: 1px solid var(--sito-border);
  background: linear-gradient(180deg, var(--color-surface-2) 0%, var(--color-surface) 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

@media (min-width: 769px) {
  .sito-wizard-nav {
    padding: 0.75rem 1.4rem 0.8rem;
  }
}

.sito-wizard-nav .btn {
  font-weight: 600;
}

.sito-wizard-body .form-group label {
  font-size: var(--font-size-caption);
  font-weight: 600;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}




/* Loading Indicator */
.sito-loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: rgba(var(--rgb-white), 0.98);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.loader-carla {
  width: 56px;
  height: 56px;
  border: 4px solid var(--color-border);
  border-top-color: var(--sito-primary);
  border-right-color: var(--sito-primary);
  border-radius: var(--radius-round);
  animation: spin-smooth 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow: var(--shadow-brand);
}

@keyframes spin-smooth {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sito-loader p {
  color: var(--sito-text-light);
  font-size: var(--font-size-md);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Live preview: header + mobile / desktop iframes */
.sito-preview-wrapper {
  flex: 1;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--sito-border);
  transition: box-shadow var(--transition-speed) ease;
}

.sito-preview-wrapper:hover {
  box-shadow: var(--shadow-popover);
}

.sito-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--sito-border);
}

.sito-preview-title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--sito-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sito-preview-devices {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sito-preview-slot-head {
  margin-bottom: 0.5rem;
}

/* Same caption treatment as social calendar preview panel */
.sito-preview-wrapper .preview-device-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--sito-text-light);
  letter-spacing: 0.02em;
  text-transform: none;
}

.sito-preview-wrapper .preview-device-caption i {
  font-size: var(--font-size-base);
  opacity: 0.85;
  color: var(--sito-primary);
}

.sito-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--font-size-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--sito-text-light);
}

.sito-preview-badge i {
  font-size: var(--font-size-md);
  color: var(--sito-primary);
  opacity: 0.9;
}

.sito-preview-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-gray-100);
  border: 1px solid var(--color-border-alt);
  margin-bottom: 0.75rem;
}

.sito-preview-switch-btn {
  border: none;
  background: transparent;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-caption);
  font-weight: 600;
  color: var(--sito-text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.sito-preview-switch-btn i {
  font-size: var(--font-size-sm);
}

.sito-preview-switch-btn.is-active {
  background: var(--color-surface);
  color: var(--sito-primary-dark);
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.18);
}

.sito-preview-slot {
  display: none;
}

.sito-preview-slot.is-active {
  display: block;
}

/* ── iPhone 17 Pro Max–style mockup (aligned with social calendar preview) ── */
.sito-preview-mockup-area {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1rem;
  background: var(--color-surface-ios);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-cool);
  min-height: 0;
}

.sito-preview-mockup-area .iphone-mockup-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* iPhone 17 Pro Max — true-to-device proportions.
   Everything below is expressed in device points (440 x 956 logical) via
   --phone-pt, so the frame stays realistic at any --phone-frame-w. */
.sito-page .iphone-frame {
  --phone-frame-w: 320px;

  /* The bezel and the outer casing ring are fractions of the frame, not fixed
     pixels: a fixed 12px bezel reads as a chunky black border once the frame
     is scaled down to fit a pane. 3.75% and 0.625% are the 12px / 2px the
     320px reference frame used. */
  --phone-bezel: calc(var(--phone-frame-w) * 0.0375);
  --phone-ring: max(1px, calc(var(--phone-frame-w) * 0.00625));
  --phone-screen-w: calc(var(--phone-frame-w) - 2 * var(--phone-bezel));
  --phone-pt: calc(var(--phone-screen-w) / 440); /* 1 device point, in px */
  --phone-screen-radius: calc(58 * var(--phone-pt));

  width: var(--phone-frame-w);
  max-width: 100%;
  background: var(--color-ink-ios);
  border-radius: calc(var(--phone-screen-radius) + var(--phone-bezel));
  padding: var(--phone-bezel);
  box-shadow:
    0 0 0 var(--phone-ring) var(--color-charcoal),
    0 25px 50px -12px rgba(var(--rgb-black), 0.5),
    inset 0 0 0 1px rgba(var(--rgb-white), 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

/* Paint a bezel ring over any square iframe corners that leak past the screen
   radius — the compositor may refuse to clip a scaled nested document. */
.sito-page .iphone-frame::after {
  content: '';
  position: absolute;
  inset: var(--phone-bezel);
  border-radius: var(--phone-screen-radius);
  box-shadow: 0 0 0 var(--phone-bezel) var(--color-ink-ios);
  pointer-events: none;
  z-index: 10;
}

/* Narrow viewports: shrink the frame as a whole so the internal geometry
   (island, status bar, radii) stays in proportion instead of overflowing. */
@media (max-width: 380px) {
  .sito-page .iphone-frame {
    --phone-frame-w: 260px;
  }
}

.sito-page .iphone-screen {
  background: var(--neutral-100);
  border-radius: var(--phone-screen-radius);
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Sito: iframe fills the screen; status bar + island overlay it (no white band). */
.sito-iphone-screen {
  display: flex;
  flex-direction: column;
  aspect-ratio: 440 / 956;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(var(--rgb-black), 0.28);
}

.sito-iphone-screen .iphone-dynamic-island,
.sito-iphone-screen .iphone-status-bar,
.sito-iphone-screen .sito-iphone-home-indicator {
  pointer-events: none;
}

/* Dynamic Island: 125 x 36.7 pt, 11 pt below the top of the display. */
.sito-page .iphone-dynamic-island {
  position: absolute;
  top: calc(11 * var(--phone-pt));
  left: 50%;
  transform: translateX(-50%);
  width: calc(125 * var(--phone-pt));
  height: calc(36.7 * var(--phone-pt));
  background: var(--color-black);
  border-radius: var(--radius-pill);
  z-index: 5;
  box-shadow: inset 0 1px 2px rgba(var(--rgb-white), 0.06);
}

/* Status bar: 62 pt tall, split into the two "ears" either side of the island. */
.sito-page .iphone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: calc(62 * var(--phone-pt));
  display: grid;
  grid-template-columns: 1fr calc(133 * var(--phone-pt)) 1fr;
  align-items: center;
  padding-bottom: calc(3.3 * var(--phone-pt)); /* centres the row on the island */
  font-size: calc(17 * var(--phone-pt));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-black);
  background: transparent;
}

.sito-page .iphone-status-time {
  grid-column: 1;
  justify-self: center;
  padding-left: calc(6 * var(--phone-pt));
}

.sito-page .iphone-status-icons {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: calc(5 * var(--phone-pt));
  padding-right: calc(20 * var(--phone-pt));
}

.sito-page .iphone-status-icons svg {
  display: block;
  height: auto;
}

.sito-page .iphone-status-icons .ios-signal {
  width: calc(17 * var(--phone-pt));
}

.sito-page .iphone-status-icons .ios-wifi {
  width: calc(16 * var(--phone-pt));
}

.sito-page .iphone-status-icons .ios-battery {
  width: calc(27 * var(--phone-pt));
}

/* Home indicator: 140 x 5 pt, 8 pt above the bottom of the display. */
.sito-iphone-screen .sito-iphone-home-indicator {
  position: absolute;
  left: 50%;
  bottom: calc(8 * var(--phone-pt));
  transform: translateX(-50%);
  width: calc(140 * var(--phone-pt));
  height: calc(5 * var(--phone-pt));
  border-radius: var(--radius-pill);
  background: rgba(var(--rgb-black), 0.55);
  z-index: 6;
}

/* Logical viewport 440 × 956 — scaled to mockup width (container query) */
.sito-preview-iframe-viewport {
  container-type: inline-size;
  container-name: sito-phone-preview;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--neutral-100);
  border-radius: var(--phone-screen-radius);

  /* border-radius + overflow rounds the iframe *element*, but it does not clip
     the document inside it — that renders in its own compositing context and
     paints square corners over the casing. clip-path is applied to composited
     descendants, so it is what actually rounds the screen. */
  clip-path: inset(0 round var(--phone-screen-radius));
}

.sito-preview-iframe--device {
  /* The device's 58pt screen radius in the iframe's own 440 x 956 space. Not a
     --radius-* token: --radius-pill (999px) on this tall box resolves to huge
     elliptical corners that crop the page's left edge and bottom. */
  --phone-iframe-radius: 58px;

  position: absolute;
  top: 0;
  left: 0;
  width: 440px;
  height: 956px;
  border: none;
  background: var(--neutral-100);
  transform-origin: top left;
  transform: scale(calc(100cqi / 440px));

  /* The scale() puts this iframe on its own compositing layer, and a composited
     child is NOT clipped by an ancestor's rounded overflow — its square corners
     paint over the screen's rounded ones. clip-path on the iframe itself is
     what actually rounds the painted document. This box is the device's own
     440 x 956 point space, so the 58pt screen radius is literally 58px here
     and scales with the transform. */
  border-radius: var(--phone-iframe-radius);
  clip-path: inset(0 round var(--phone-iframe-radius));
}

.sito-preview-desktop-placeholder {
  padding: 1.5rem 1.25rem;
  background: linear-gradient(180deg, var(--color-surface-2) 0%, var(--color-surface-cool) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--sito-border);
  text-align: center;
}

.sito-preview-desktop-placeholder-text {
  margin: 0 0 1.25rem;
  font-size: var(--font-size-md);
  line-height: 1.55;
  color: var(--sito-text);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.sito-preview-desktop-placeholder .btn {
  font-weight: 600;
}

@media (max-width: 576px) {
  .sito-preview-wrapper {
    padding: 1rem;
  }
}

/* Modal Styles */
.sito-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 250;
  background: rgba(var(--rgb-black), 0.6);
  padding: 1.5rem;
  overflow-y: auto;
  animation: fade-in var(--transition-speed) ease;
  backdrop-filter: blur(4px);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sito-modal-overlay.active {
  display: flex;
}

.sito-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  max-width: 650px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: slide-up var(--transition-speed) ease;
  border: 1px solid var(--sito-border);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sito-modal-header {
  padding: 2.25rem 2.5rem;
  border-bottom: 1px solid var(--sito-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-surface-muted) 0%, var(--color-surface) 100%);
}

.sito-modal-header h3 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--sito-text);
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.sito-modal-header h3 i {
  color: var(--sito-primary);
  font-size: var(--font-size-2xl);
  opacity: 0.9;
}

.sito-modal-close {
  background: var(--sito-bg);
  border: 1px solid var(--sito-border);
  cursor: pointer;
  font-size: var(--font-size-xl);
  color: var(--sito-text-light);
  transition: all var(--transition-speed) ease;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.sito-modal-close:hover {
  background: var(--color-danger-tint);
  color: var(--color-danger-bright);
  border-color: var(--color-danger-border);
  transform: rotate(90deg);
}

.sito-modal-body {
  padding: 2.5rem;
  overflow-y: auto;
  flex: 1;
  background: var(--color-surface);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--sito-text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.3px;
}

.form-group label span.required {
  color: var(--color-danger-bright);
  margin-left: 0.25rem;
}

.form-group .form-control {
  font-size: var(--font-size-md);
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--sito-border);
  transition: all var(--transition-speed) ease;
  background: var(--color-surface);
  width: 100%;
  font-family: inherit;
  color: var(--sito-text);
}

.form-group .form-control:focus {
  outline: none;
  border-color: var(--sito-primary);
  box-shadow: var(--focus-ring);
}

.form-group .form-control::placeholder {
  color: var(--sito-text-light);
  opacity: 0.7;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  line-height: 1.5;
}

/* Image Upload Area */
.image-upload-area {
  position: relative;
  background: linear-gradient(135deg, var(--color-surface-muted) 0%, var(--color-surface) 100%);
  border: 2.5px dashed var(--sito-primary);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--brand-green-rgb), 0.03);
}

.image-upload-area:hover {
  border-color: var(--sito-primary-dark);
  background: linear-gradient(135deg, var(--brand-green-100) 0%, var(--color-surface-muted) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

.image-upload-area .file-input {
  display: none;
}

.upload-trigger {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.upload-trigger i {
  font-size: var(--font-size-5xl);
  color: var(--sito-primary);
  opacity: 0.8;
  transition: all var(--transition-speed) ease;
}

.image-upload-area:hover .upload-trigger i {
  opacity: 1;
  transform: scale(1.15);
}

.upload-trigger p {
  color: var(--sito-text-light);
  font-size: var(--font-size-md);
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

.upload-trigger .hint {
  font-size: var(--font-size-caption);
  opacity: 0.7;
  margin-top: 0.25rem;
}

.image-preview {
  max-width: 100%;
  max-height: 280px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--sito-border);
}

/* Color Palettes */
.color-palettes-modal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.color-palette-option {
  cursor: pointer;
  border: 2px solid var(--color-border-alt);
  border-radius: var(--radius-sm);
  padding: 1rem;
  transition: all 0.2s ease;
  display: block;
}

.color-palette-option:hover {
  border-color: var(--brand-green);
  box-shadow: var(--shadow-brand);
}

.color-palette-option.active {
  border-color: var(--brand-green);
  background: rgba(var(--brand-green-rgb), 0.05);
  box-shadow: var(--shadow-brand);
}

.color-palette-option input[type="radio"] {
  display: none;
}

.palette-preview {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.palette-preview span {
  height: 28px;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-xs);
}

.palette-name {
  text-align: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-gray-700);
  text-transform: capitalize;
}

/* Domain Input Group */
.domain-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.domain-input-group .form-control {
  flex: 1;
}

.domain-suffix {
  font-weight: 600;
  color: var(--color-text-subtle);
  white-space: nowrap;
  font-size: var(--font-size-sm);
}

.domain-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: var(--font-size-sm);
}

.domain-status.available {
  background: var(--brand-green-100);
  color: var(--brand-green-ink);
}

.domain-status.unavailable {
  background: var(--color-danger-tint);
  color: var(--color-danger-ink-bright);
}

/* Responsive */
@media (max-width: 992px) {
  .sito-modal {
    max-width: 90%;
    max-height: 90vh;
  }

  .sito-stepper-item {
    max-width: 11rem;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .sito-page {
    padding: 0.5rem;
    gap: 0.75rem;
  }

  .sito-top-bar {
    padding: 1rem;
  }

  .sito-stepper-list {
    gap: 0.35rem;
  }

  .sito-stepper-item {
    font-size: var(--font-size-xs);
    padding: 0.35rem 0.65rem;
  }

  .sito-wizard-step {
    padding: 1rem 1rem 0;
  }

  .sito-wizard-nav {
    padding: 1rem;
    flex-wrap: wrap;
  }

  .sito-modal-header {
    padding: 1.5rem;
  }

  .sito-modal-body {
    padding: 1.5rem;
  }

  .color-palettes-modal {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-upload-area {
    padding: 1.5rem;
  }

  .upload-trigger i {
    font-size: var(--font-size-2xl);
  }

  .upload-trigger p {
    font-size: var(--font-size-caption);
  }
}

@media (max-width: 576px) {
  .sito-stepper-list {
    gap: 0.35rem;
  }

  .sito-stepper-item {
    padding: 0.3rem 0.5rem;
    font-size: var(--font-size-2xs);
    max-width: none;
  }

  .sito-stepper-chevron {
    font-size: var(--font-size-3xs);
  }

  .sito-modal {
    max-width: 95%;
  }

  .sito-modal-header h3 {
    font-size: var(--font-size-base);
    gap: 0.5rem;
  }

  .sito-modal-header h3 i {
    font-size: var(--font-size-xl);
  }

  .color-palettes-modal {
    grid-template-columns: 1fr;
  }
}
