/* Kashi Digital - High Converting Success Dialog Styles */
.success-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-modal-box {
  background: #18231b;
  background: linear-gradient(170deg, #1c2a20 0%, #121b14 100%);
  border: 1px solid rgba(167, 243, 208, 0.25);
  border-radius: 22px;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(16, 185, 129, 0.12);
  color: #f3f4f6;
  padding: 36px 32px 32px;
  text-align: center;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.success-modal-overlay.active .success-modal-box {
  transform: scale(1) translateY(0);
}

.success-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.success-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: rotate(90deg);
}

/* Animated Checkmark Icon */
.success-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.3);
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 35px rgba(16, 185, 129, 0.6); }
}

.success-icon-svg {
  width: 38px;
  height: 38px;
  stroke: #10b981;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.success-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.25;
}

.success-subtitle {
  font-size: 14px;
  color: #c4d4c2;
  line-height: 1.55;
  margin-bottom: 22px;
}

/* Summary Card */
.success-summary-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  text-align: left;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-label {
  color: #9ca3af;
}

.summary-val {
  font-weight: 600;
  color: #ffffff;
  text-align: right;
}

.summary-badge {
  background: rgba(235, 94, 40, 0.2);
  border: 1px solid rgba(235, 94, 40, 0.4);
  color: #ff9164;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

/* Steps Timeline */
.next-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  text-align: left;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-number {
  background: #253d2d;
  color: #86efac;
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text strong {
  display: block;
  font-size: 13px;
  color: #f3f4f6;
  margin-bottom: 2px;
}

.step-text span {
  font-size: 12px;
  color: #a1b09f;
  line-height: 1.4;
}

/* Modal Actions */
.modal-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-modal-wa-cta {
  background: #25d366;
  color: #0b2212;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-modal-wa-cta:hover {
  background: #22bf5b;
  transform: translateY(-2px);
}

.btn-modal-call-cta {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  font-weight: 600;
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-call-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ================= INDUSTRY-STANDARD BUTTON LOADING STATES ================= */
.button.btn-loading,
button[type="submit"].btn-loading,
.btn-loading {
  position: relative !important;
  cursor: wait !important;
  pointer-events: none !important;
  opacity: 0.92 !important;
  transform: scale(0.99) !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 15px rgba(250, 79, 32, 0.35) !important;
  filter: brightness(1.05) !important;
}

.button.btn-loading::before,
button[type="submit"].btn-loading::before,
.btn-loading::before {
  content: '' !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  border: 2.5px solid rgba(255, 255, 255, 0.35) !important;
  border-top-color: #ffffff !important;
  border-radius: 50% !important;
  animation: btnSpinnerRotate 0.75s linear infinite !important;
  flex-shrink: 0 !important;
}

@keyframes btnSpinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.button.btn-success-state,
button[type="submit"].btn-success-state,
.btn-success-state {
  background: #16a34a !important;
  border-color: #15803d !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.5) !important;
  transform: scale(1.01) !important;
  transition: all 0.25s ease !important;
}

.btn-error-shake {
  animation: btnShakeAnim 0.45s ease-in-out !important;
  border-color: #ef4444 !important;
}

@keyframes btnShakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.submitting-live-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulseHint 1.5s infinite ease-in-out;
}
@keyframes pulseHint {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

