/**
 * Instamaag Elementor Addon - Widgets Styles
 * Mobile-First, High-Converting Direct Response Styles
 */

/* ========================================================
   1. COUNTDOWN TIMER WIDGET
   ======================================================== */
.im-countdown-wrapper {
  background: #0f172a;
  color: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  margin: 16px 0;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
  border: 1px solid #1e293b;
}

.im-countdown-label {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.im-countdown-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.im-digit-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  min-width: 58px;
  padding: 8px 6px;
}

.im-digit-num {
  font-size: 24px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  display: block;
}

.im-digit-text {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 2px;
}

.im-digit-sep {
  font-size: 20px;
  font-weight: 700;
  color: #64748b;
}

/* ========================================================
   2. SYMPTOM CHECKLIST / QUIZ WIDGET
   ======================================================== */
.im-symptoms-wrapper {
  margin: 20px 0;
}

.im-symptoms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .im-symptoms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.im-symptom-item {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.im-symptom-item:hover {
  border-color: #cbd5e1;
}

.im-symptom-item.is-active {
  border-color: #15803d;
  background: #f0fdf4;
}

.im-symptom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.im-symptom-item.is-active .im-symptom-checkbox {
  background: #15803d;
  border-color: #15803d;
}

.im-symptom-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.45;
}

.im-symptom-text strong {
  color: #0f172a;
}

.im-symptom-result {
  margin-top: 16px;
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px dashed #cbd5e1;
  background: #ffffff;
  color: #64748b;
}

.im-symptom-result.has-warning {
  border: 2px solid #ea580c;
  background: #fff7ed;
  color: #1e293b;
}

/* ========================================================
   3. COMPARISON TABLE WIDGET
   ======================================================== */
.im-compare-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  margin: 20px 0;
}

.im-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.im-compare-table th {
  padding: 14px 12px;
  font-weight: 800;
  border-bottom: 2px solid #e2e8f0;
}

.im-compare-table th.col-feature {
  width: 40%;
  background: #f8fafc;
}

.im-compare-table th.col-instamaag {
  width: 30%;
  background: #15803d;
  color: #ffffff;
  text-align: center;
}

.im-compare-table th.col-other {
  width: 30%;
  background: #f1f5f9;
  text-align: center;
  color: #475569;
}

.im-compare-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.im-compare-table td.col-instamaag {
  background: #f0fdf4;
  text-align: center;
  font-weight: 700;
  color: #166534;
}

.im-compare-table td.col-other {
  text-align: center;
  color: #64748b;
}

.im-check-icon {
  color: #16a34a;
  font-weight: 800;
  font-size: 16px;
}

.im-cross-icon {
  color: #e11d48;
  font-weight: 800;
  font-size: 16px;
}

/* ========================================================
   4. TIERED BUNDLE PRICING WIDGET
   ======================================================== */
.im-pricing-wrapper {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.im-pricing-card {
  position: relative;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
}

.im-pricing-card:hover {
  border-color: #cbd5e1;
}

.im-pricing-card.is-selected {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15), 0 10px 20px -5px rgba(234, 88, 12, 0.15);
  background: #fffbf7;
}

.im-pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #ea580c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}

.im-pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.im-pricing-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.im-pricing-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  position: relative;
  flex-shrink: 0;
  margin-top: 3px;
  transition: all 0.2s ease;
}

.im-pricing-card.is-selected .im-pricing-radio {
  border-color: #ea580c;
}

.im-pricing-card.is-selected .im-pricing-radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #ea580c;
}

.im-pricing-tag {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
  display: block;
}

.im-pricing-card.is-selected .im-pricing-tag {
  color: #ea580c;
}

.im-pricing-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.im-pricing-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

.im-pricing-cost {
  text-align: right;
  flex-shrink: 0;
}

.im-price-normal {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  display: block;
}

.im-price-promo {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  display: block;
}

.im-pricing-card.is-selected .im-price-promo {
  color: #ea580c;
}

.im-price-unit {
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  display: block;
  margin-top: 2px;
}

.im-savings-banner {
  margin-top: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
}

.im-pricing-features {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  list-style: none;
  padding-left: 0;
  font-size: 13px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ========================================================
   5. ORDER FORM WIDGET (DIRECT TO WHATSAPP)
   ======================================================== */
.im-orderform-container {
  border-radius: 18px;
  border: 2px solid #15803d;
  box-shadow: 0 10px 30px -10px rgba(21, 128, 61, 0.25);
  overflow: hidden;
  background: #ffffff;
  margin: 24px 0;
}

.im-orderform-header {
  background: #15803d;
  color: #ffffff;
  padding: 16px 20px;
  text-align: center;
}

.im-orderform-header h3 {
  color: #ffffff;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.im-orderform-header p {
  color: #dcfce7;
  font-size: 13px;
  margin: 4px 0 0;
}

.im-orderform-body {
  padding: 20px;
}

.im-form-group {
  margin-bottom: 14px;
}

.im-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.im-form-group label span.req {
  color: #e11d48;
}

.im-form-control {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 11px 14px;
  font-size: 14px;
  color: #1e293b;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.im-form-control:focus {
  outline: none;
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.im-form-control.has-error {
  border-color: #e11d48 !important;
}

.im-error-text {
  font-size: 11px;
  color: #e11d48;
  margin-top: 4px;
  display: none;
}

.im-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.im-payment-opt {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  user-select: none;
}

.im-payment-opt.is-selected {
  border-color: #15803d;
  background: #f0fdf4;
}

.im-payment-opt strong {
  font-size: 13px;
  color: #0f172a;
}

.im-payment-opt span {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.im-order-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 13px;
}

.im-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #475569;
}

.im-summary-row.total-row {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.im-summary-row.total-row .total-amount {
  color: #ea580c;
  font-size: 18px;
}

.im-submit-button {
  width: 100%;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 60%, #f59e0b 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 10px 24px -6px rgba(234, 88, 12, 0.45);
  transition: all 0.2s ease;
}

.im-submit-button:hover {
  filter: brightness(1.05);
}

.im-submit-button:active {
  transform: translateY(1px);
}

.im-bank-logos-wrap {
  text-align: center;
  margin-top: 14px;
}

.im-bank-logos-wrap p {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.im-bank-logos-wrap img {
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ========================================================
   6. BPOM AUTHORITY & VERIFY WIDGET
   ======================================================== */
.im-bpom-card {
  background: #ffffff;
  border: 2px solid #16a34a;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.08);
}

.im-bpom-shield {
  width: 50px;
  height: 50px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 24px;
}

.im-bpom-number-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 12px auto;
}

.im-bpom-copy-btn {
  background: #15803d;
  color: #ffffff;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.im-bpom-copy-btn:hover {
  background: #166534;
}

/* ========================================================
   7. FLOATING WHATSAPP & MOBILE STICKY CTA
   ======================================================== */
.im-floating-wa {
  position: fixed;
  right: 18px;
  bottom: 85px;
  z-index: 999;
  background: #25D366;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 9999px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.im-floating-wa:hover {
  color: #ffffff;
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .im-floating-wa {
    bottom: 24px;
  }
}

.im-sticky-bottom-bar {
  position: fixed;
  inset-x: 0;
  bottom: 0;
  z-index: 990;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid #e2e8f0;
  padding: 10px 16px;
  box-shadow: 0 -6px 20px -8px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.im-sticky-bottom-bar.is-visible {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .im-sticky-bottom-bar {
    display: none !important;
  }
}

.im-sticky-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
