/* ============================================================
   Outdraft Client Intake Form Styles
   BosonHub Digital Development Agency LLC
   ============================================================ */

:root {
  --od-primary:      #1a3c5e;   /* Outdraft navy */
  --od-accent:       #c8922a;   /* Outdraft gold */
  --od-bg:           #f8f9fa;
  --od-white:        #ffffff;
  --od-border:       #dde1e7;
  --od-text:         #2d3748;
  --od-muted:        #718096;
  --od-success:      #2f855a;
  --od-error:        #c53030;
  --od-radius:       8px;
  --od-shadow:       0 2px 12px rgba(0,0,0,0.08);
  --od-transition:   0.2s ease;
}

/* ── Wrapper ── */
.outdraft-intake-wrapper {
  max-width: 640px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--od-text);
}

/* ── Progress Bar ── */
.outdraft-progress-bar {
  margin-bottom: 32px;
}

.outdraft-progress-track {
  background: var(--od-border);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.outdraft-progress-fill {
  height: 100%;
  background: var(--od-accent);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.outdraft-progress-steps {
  display: flex;
  justify-content: space-between;
}

.outdraft-step-label {
  font-size: 12px;
  color: var(--od-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--od-transition);
}

.outdraft-step-label.active {
  color: var(--od-primary);
  font-weight: 700;
}

/* ── Step Fieldset ── */
.outdraft-step {
  background: var(--od-white);
  border: 1px solid var(--od-border);
  border-radius: var(--od-radius);
  padding: 32px;
  box-shadow: var(--od-shadow);
}

.outdraft-step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--od-primary);
  margin: 0 0 6px 0;
  border: none;
  padding: 0;
}

.outdraft-step-subtitle {
  font-size: 14px;
  color: var(--od-muted);
  margin: 0 0 28px 0;
}

/* ── Field Groups ── */
.outdraft-field-group {
  margin-bottom: 20px;
}

.outdraft-field-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--od-text);
  margin-bottom: 6px;
}

.outdraft-required {
  color: var(--od-error);
  font-size: 12px;
}

.outdraft-field-group input[type="text"],
.outdraft-field-group input[type="email"],
.outdraft-field-group input[type="tel"],
.outdraft-field-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--od-border);
  border-radius: var(--od-radius);
  font-size: 15px;
  color: var(--od-text);
  background: var(--od-bg);
  transition: border-color var(--od-transition), box-shadow var(--od-transition);
  box-sizing: border-box;
  outline: none;
}

.outdraft-field-group input:focus,
.outdraft-field-group textarea:focus {
  border-color: var(--od-primary);
  box-shadow: 0 0 0 3px rgba(26,60,94,0.12);
  background: var(--od-white);
}

.outdraft-field-group input.outdraft-invalid,
.outdraft-field-group textarea.outdraft-invalid {
  border-color: var(--od-error);
}

.outdraft-field-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Radio Cards ── */
.outdraft-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.outdraft-radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--od-border);
  border-radius: var(--od-radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--od-transition), background var(--od-transition);
  background: var(--od-bg);
}

.outdraft-radio-card:hover {
  border-color: var(--od-primary);
  background: #eef2f7;
}

.outdraft-radio-card input[type="radio"] {
  accent-color: var(--od-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.outdraft-radio-card:has(input:checked) {
  border-color: var(--od-primary);
  background: #eef2f7;
  font-weight: 700;
}

/* ── Tooltip Button ── */
.outdraft-tooltip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--od-muted);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: background var(--od-transition);
}

.outdraft-tooltip-btn:hover {
  background: var(--od-primary);
}

/* ── Tooltip Popup ── */
.outdraft-tooltip-popup {
  position: absolute;
  z-index: 9999;
  max-width: 260px;
  background: var(--od-primary);
  color: white;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: var(--od-radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  pointer-events: none;
}

.outdraft-tooltip-popup::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 16px;
  border: 6px solid transparent;
  border-bottom-color: var(--od-primary);
  border-top: none;
}

/* ── Review Card ── */
.outdraft-review-card {
  background: var(--od-bg);
  border: 1px solid var(--od-border);
  border-radius: var(--od-radius);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.outdraft-review-card strong {
  color: var(--od-primary);
  display: inline-block;
  min-width: 130px;
}

/* ── Consent Text ── */
.outdraft-consent-text {
  font-size: 12px;
  color: var(--od-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ── Navigation Row ── */
.outdraft-nav-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

/* ── Buttons ── */
.outdraft-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--od-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--od-transition), transform var(--od-transition);
  text-decoration: none;
}

.outdraft-btn:active {
  transform: scale(0.98);
}

.outdraft-btn-next,
.outdraft-btn-submit {
  background: var(--od-primary);
  color: white;
}

.outdraft-btn-next:hover,
.outdraft-btn-submit:hover {
  background: #142e4a;
}

.outdraft-btn-secondary {
  background: transparent;
  color: var(--od-primary);
  border: 1.5px solid var(--od-primary);
}

.outdraft-btn-secondary:hover {
  background: #eef2f7;
}

.outdraft-btn-submit {
  background: var(--od-accent);
  color: white;
  min-width: 200px;
  justify-content: center;
}

.outdraft-btn-submit:hover {
  background: #b07d22;
}

.outdraft-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Success / Error Messages ── */
.outdraft-success-msg {
  text-align: center;
  padding: 40px 32px;
  background: var(--od-white);
  border: 1px solid var(--od-border);
  border-radius: var(--od-radius);
  box-shadow: var(--od-shadow);
}

.outdraft-success-icon {
  width: 56px;
  height: 56px;
  background: var(--od-success);
  color: white;
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.outdraft-success-msg h3 {
  font-size: 22px;
  color: var(--od-primary);
  margin: 0 0 8px;
}

.outdraft-success-msg p {
  color: var(--od-muted);
  font-size: 15px;
}

.outdraft-error-msg {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: var(--od-radius);
  padding: 14px 18px;
  color: var(--od-error);
  font-size: 14px;
  margin-top: 16px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .outdraft-step {
    padding: 20px 16px;
  }
  .outdraft-radio-grid {
    grid-template-columns: 1fr;
  }
  .outdraft-nav-row {
    flex-direction: column-reverse;
  }
  .outdraft-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Image Upload Area ── */
.outdraft-upload-group {
  margin-top: 8px;
}

.outdraft-optional {
  font-size: 12px;
  color: var(--od-muted);
  font-weight: 400;
}

.outdraft-upload-area {
  border: 2px dashed var(--od-border);
  border-radius: var(--od-radius);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--od-bg);
  transition: border-color var(--od-transition), background var(--od-transition);
  position: relative;
}

.outdraft-upload-area:hover,
.outdraft-upload-area.outdraft-drag-over {
  border-color: var(--od-primary);
  background: #eef2f7;
}

.outdraft-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.outdraft-upload-prompt {
  pointer-events: none;
}

.outdraft-upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.outdraft-upload-prompt p {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--od-text);
}

.outdraft-upload-hint {
  font-size: 12px !important;
  color: var(--od-muted) !important;
}

.outdraft-upload-note {
  font-size: 12px;
  color: var(--od-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Image Preview Thumbnails ── */
.outdraft-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0 4px;
}

.outdraft-img-thumb {
  position: relative;
  width: 90px;
  text-align: center;
}

.outdraft-img-thumb img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1.5px solid var(--od-border);
  display: block;
}

.outdraft-remove-img {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--od-error);
  color: white;
  border: none;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
  padding: 0;
}

.outdraft-remove-img:hover {
  background: #9b2c2c;
}

.outdraft-img-name {
  display: block;
  font-size: 10px;
  color: var(--od-muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90px;
}
