/* Offboard — Work Heights Design System */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Brandon Grotesque', 'Brandon Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.5;
}

.ob-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px;
}

/* Progress Bar */
.ob-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  max-width: 420px;
  margin: 0 auto;
}

.ob-progress-step {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: capitalize;
  color: #999;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.ob-progress-step.active {
  color: #000;
}

.ob-progress-step.completed {
  color: #169156;
}

.ob-progress-arrow {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 24px;
  margin: 0 10px;
}

.ob-arrow-line {
  flex: 1;
  height: 1px;
  background-color: #999;
}

.ob-arrow-head {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #999;
  flex-shrink: 0;
}

/* Steps */
.ob-step {
  display: none;
}

.ob-step.active {
  display: block;
}

/* Cards */
.ob-card {
  background: #fff;
  border: 1px solid #e0e0de;
  border-radius: 4px;
  padding: 28px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Headings */
.ob-heading {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 8px;
}

.ob-heading-success {
  color: #000;
  margin-bottom: 16px;
}

.ob-subtext {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 24px;
}

/* Form Fields */
.ob-field {
  margin-bottom: 20px;
}

.ob-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #333;
}

.ob-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.2s;
}

.ob-input:focus {
  outline: none;
  border-color: #000;
}

.ob-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  resize: vertical;
  min-height: 72px;
  transition: border-color 0.2s;
}

.ob-textarea:focus {
  outline: none;
  border-color: #000;
}

/* Buttons */
.ob-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
  text-decoration: none;
}

.ob-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ob-btn-primary {
  width: 100%;
  background: #000;
  color: #fff;
}

.ob-btn-primary:hover:not(:disabled) {
  background: #222;
}

.ob-btn-secondary {
  width: 100%;
  background: transparent;
  color: #000;
  border: 1px solid #000;
}

.ob-btn-secondary:hover {
  background: #f0f0f0;
}

.ob-btn-confirm {
  margin-top: 8px;
}

/* Spinner */
.ob-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ob-spin 0.6s linear infinite;
  margin-left: 8px;
}

@keyframes ob-spin {
  to { transform: rotate(360deg); }
}

/* Messages */
.ob-message {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 4px;
  margin-top: 12px;
}

.ob-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Member Summary Card */
.ob-summary-card {
  background: #DCDAD1;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 0 8px 19px rgba(0, 0, 0, 0.28);
}

.ob-summary-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
}

.ob-summary-row + .ob-summary-row {
  margin-top: 20px;
}

.ob-summary-row::after {
  content: '';
  background: #000;
  opacity: 0.15;
  grid-column: 2;
  grid-row: 1;
}

.ob-summary-item {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

.ob-summary-item:first-child {
  padding-left: 0;
}

.ob-summary-item:last-child {
  padding-right: 0;
}

.ob-summary-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #169156;
  margin-bottom: 4px;
}

.ob-summary-value {
  font-size: 17px;
  font-weight: 600;
  color: #000;
}

/* Warning Banner */
.ob-banner {
  padding: 24px 28px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}

.ob-banner strong {
  display: block;
  margin-bottom: 4px;
}

.ob-banner p {
  margin: 0;
  line-height: 1.4;
}

.ob-banner-warning {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #92400e;
}

/* Option Cards */
.ob-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.ob-option {
  background: #fff;
  border: 1px solid #e0e0de;
  border-radius: 4px;
  padding: 24px 28px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ob-option:hover {
  border-color: #999;
}

.ob-option.selected {
  border-color: #169156;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ob-option.dimmed {
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s;
}

.ob-option.dimmed:hover {
  opacity: 0.6;
}

.ob-option-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ob-option-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.ob-option-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.ob-badge-savings {
  background: #ecfdf5;
  color: #169156;
}

.ob-badge-warning {
  background: #fffbeb;
  color: #b45309;
}

/* Detail Panel */
.ob-detail-panel {
  border-color: #169156;
  border-width: 2px;
}

.ob-detail-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.ob-detail-summary {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  padding: 14px 16px;
  background: #f9fafb;
  border-radius: 4px;
  margin-bottom: 20px;
}

.ob-detail-summary p {
  margin: 0 0 6px 0;
}

.ob-detail-summary p:last-child {
  margin-bottom: 0;
}

.ob-detail-summary strong {
  color: #000;
}

/* NPS Row */
.ob-nps {
  display: flex;
  gap: 4px;
}

.ob-nps-btn {
  flex: 1;
  padding: 8px 0;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  color: #000;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 0;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.ob-nps-btn:hover {
  border-color: #999;
  background: #f5f5f5;
}

.ob-nps-btn.active {
  background: #169156;
  color: #fff;
  border-color: #169156;
}

/* Checkbox */
.ob-checkbox-field {
  margin-bottom: 20px;
}

.ob-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.ob-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #169156;
}

/* Radio Group */
.ob-radio-group {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.ob-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  cursor: pointer;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  flex: 1;
  justify-content: center;
  transition: border-color 0.2s;
}

.ob-radio-label:has(input:checked) {
  border-color: #169156;
  background: #ecfdf5;
}

.ob-radio-label input[type="radio"] {
  accent-color: #169156;
}

.ob-pause-info {
  font-size: 13px;
  color: #555;
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: 4px;
  line-height: 1.4;
}

/* Stripe Elements container */
#payment-element {
  padding: 12px 0;
}

/* Confirmation */
.ob-confirmation-card {
  text-align: center;
  padding: 40px 24px;
}

.ob-check-icon {
  margin-bottom: 16px;
}

.ob-confirm-details {
  text-align: left;
  margin: 24px 0;
  padding: 16px 20px;
  background: #f9fafb;
  border-radius: 4px;
  border: 1px solid #e0e0de;
}

.ob-confirm-details .ob-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.ob-confirm-details .ob-detail-row:last-child {
  border-bottom: none;
}

.ob-confirm-details .ob-detail-label {
  color: #666;
}

.ob-confirm-details .ob-detail-value {
  font-weight: 500;
  color: #000;
}

.ob-confirm-details .ob-detail-value.ob-green {
  color: #169156;
}

.ob-confirm-details .ob-detail-value.ob-red {
  color: #dc2626;
}

/* Responsive */
@media (max-width: 600px) {
  .ob-container {
    padding: 12px;
  }

  .ob-progress {
    padding: 20px 0;
    max-width: 280px;
  }

  .ob-progress-step {
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .ob-progress-arrow {
    margin: 0 6px;
  }

  .ob-card {
    padding: 20px 16px;
  }

  .ob-heading {
    font-size: 19px;
  }

  .ob-summary-card {
    padding: 20px;
  }

  .ob-summary-item {
    padding: 0 14px;
  }

  .ob-summary-value {
    font-size: 15px;
  }

  .ob-nps {
    gap: 2px;
  }

  .ob-nps-btn {
    padding: 6px 0;
    font-size: 12px;
  }

  .ob-radio-group {
    gap: 8px;
  }

  .ob-option {
    padding: 16px;
  }

  .ob-option-title {
    font-size: 14px;
  }
}

/* iframe height communication */
html, body {
  overflow: visible;
}
