/* Overlay + modal */
.sam-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: none;
  z-index: 99999;
  padding: 24px;
  overflow: auto;
}

.sam-overlay.is-open { display: block; }

.sam-modal {
  max-width: 1100px;
  margin: 40px auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
}

/* Header */
.sam-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 10px;
}

.sam-modal__kicker {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 6px;
}

.sam-modal__title {
  color: #4a4a4a;
  font-size: 14px;
}

.sam-close {
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}
.sam-close:hover { background: rgba(0,0,0,.03); }

/* Progress */
.sam-progress {
  padding: 0 20px 14px;
}

.sam-progress__bar {
  height: 8px;
  background: #e9e7e1;
  border-radius: 999px;
  overflow: hidden;
}

.sam-progress__fill {
  height: 100%;
  width: 100%;
  background: #caa43a; /* warm gold */
  border-radius: 999px;
}

.sam-progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
  padding-top: 10px;
}

.sam-progress__right {
  text-align: right;
}

.sam-progress__label {
  font-weight: 800;
  font-size: 14px;
}

.sam-progress__step {
  font-size: 12px;
  color: #333;
}
.sam-muted { color: #888; }

/* Body */
.sam-modal__body {
  padding: 18px 20px 22px;
  background: #fff;
}

/* Form fields styled like screenshot */
.sam-form {
  background: #f5f3ee; /* warm light gray */
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.06);
}

.sam-field {
  margin-bottom: 14px;
}

.sam-field label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
  color: #2a2a2a;
}

.sam-field input,
.sam-field textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 12px 14px;
  background: #fff;
  outline: none;
}

.sam-field textarea {
  border-radius: 16px;
  resize: vertical;
}

.sam-field input:focus,
.sam-field textarea:focus {
  border-color: rgba(202,164,58,.7);
  box-shadow: 0 0 0 3px rgba(202,164,58,.18);
}

.sam-datewrap {
  position: relative;
}

.sam-hint {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
}

/* Buttons row */
.sam-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.sam-actions--single { justify-content: flex-end; }

.sam-btn {
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
}

.sam-btn--primary {
  border: none;
  background: #caa43a;
  color: #fff;
}
.sam-btn--primary:hover { filter: brightness(.97); }

/* Launch button (shortcode) */
.sam-launch-btn {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  background: #caa43a;
  color: #fff;
}
.sam-launch-btn:hover { filter: brightness(.97); }

/* Status message */
.sam-status {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
}
.sam-status.is-ok { color: #1f7a3a; }
.sam-status.is-err { color: #b3261e; }
