/* AURA GROUP - KNOCK (knockat.co.za)
 * Self-Serve Advertiser Portal Stylesheet
 * Ultra-Clean, High-Converting 4-Step Wizard
 */

:root {
  --bg-gradient: linear-gradient(180deg, #f0f7fc 0%, #e2effa 100%);
  --color-primary: #0284c7;
  --color-primary-dark: #0369a1;
  --color-emerald: #10b981;
  --color-gold: #f59e0b;
  --color-text-title: #0f172a;
  --color-text-body: #334155;
  --color-text-muted: #64748b;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-gradient);
  color: var(--color-text-body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.adv-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.adv-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 18px;
  font-weight: 900;
  color: #0284c7;
  letter-spacing: -0.02em;
}

.brand-tld {
  color: #0369a1;
}

.brand-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
}

.adv-header-actions {
  display: flex;
  gap: 10px;
}

.btn-header-home {
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
}

.btn-header-admin {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: #334155;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
}

/* Main Container */
.adv-main {
  max-width: 800px;
  margin: 32px auto 60px auto;
  padding: 0 16px;
}

.adv-card {
  background: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.16);
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: 0 16px 40px -8px rgba(2, 132, 199, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Wizard Progress Bar */
.wizard-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 13px;
}

.step-item.active {
  color: #0284c7;
}

.step-item.completed {
  color: #10b981;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.step-item.active .step-num {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.step-item.completed .step-num {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.step-divider {
  flex: 1;
  height: 2px;
  background: #f1f5f9;
  margin: 0 12px;
}

/* Pane Header */
.pane-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-text-title);
  margin-bottom: 6px;
}

.pane-header p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.span-2 {
  grid-column: span 2;
}

.form-group label {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  display: block;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  color: #0f172a;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-group input:focus {
  border-color: #0284c7;
  background: #ffffff;
}

/* Geo Scope Cards */
.scope-toggle-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.scope-card {
  background: #f8fafc;
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
}

.scope-card.active {
  background: #f0f9ff;
  border-color: #0284c7;
}

.scope-card input {
  display: none;
}

.scope-icon {
  font-size: 24px;
}

.scope-card strong {
  font-size: 14px;
  color: #0f172a;
}

.scope-card small {
  font-size: 11.5px;
  color: #64748b;
}

.province-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
}

.chk-item {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Audio Dropzone */
.audio-upload-dropzone {
  border: 2px dashed rgba(2, 132, 199, 0.35);
  background: #f8fafc;
  border-radius: 18px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-upload-dropzone:hover {
  background: #f0f9ff;
  border-color: #0284c7;
}

.audio-upload-dropzone.dragover {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  border-style: solid !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25) !important;
  transform: scale(1.02);
}

.audio-upload-dropzone.shake-error {
  animation: shakeDropzone 0.5s cubic-bezier(.36,.07,.19,.97) both;
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}

@keyframes shakeDropzone {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

.upload-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.audio-upload-dropzone strong {
  display: block;
  font-size: 14.5px;
  color: #0f172a;
  margin-bottom: 4px;
}

.audio-upload-dropzone small {
  font-size: 12px;
  color: #64748b;
}

.badge-duration {
  font-size: 11px;
  font-weight: 800;
  background: #0284c7;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 9999px;
}

.script-template-card {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 14px;
  padding: 14px;
  margin-top: 16px;
}

.script-template-card h4 {
  font-size: 12px;
  font-weight: 800;
  color: #854d0e;
  margin-bottom: 4px;
}

.script-template-card p {
  font-size: 12px;
  color: #713f12;
  font-style: italic;
}

/* Pricing Packages */
.pricing-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .pricing-packages-grid {
    grid-template-columns: 1fr;
  }
}

.pkg-card {
  background: #f8fafc;
  border: 1.5px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px 16px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.pkg-card.active {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
}

.pkg-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}

.pkg-badge.recommended {
  color: #d97706;
  background: #fef3c7;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
}

.pkg-price {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

.pkg-plays {
  font-size: 12.5px;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 6px;
}

.pkg-card small {
  font-size: 11px;
  color: #64748b;
}

/* Summary Card */
.checkout-summary-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 8px;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.pay-method-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-item {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}

.pay-item.active {
  background: #f0f9ff;
  border-color: #0284c7;
}

/* Buttons */
.wizard-btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

.btn-next, .btn-submit-campaign {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: transform 0.15s ease;
}

.btn-submit-campaign {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.btn-next:hover, .btn-submit-campaign:hover {
  transform: translateY(-2px);
}

.btn-prev {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #64748b;
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

/* Success Confirmation Screen */
.success-screen {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.success-screen h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.campaign-receipt-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px;
  max-width: 440px;
  margin: 24px auto;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 10px;
}

.status-pill-pending {
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
}

.btn-return-home {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 18px;
}
