/* ============================================================
   Lead ROI Partner — Marketing Roadmap Generator
   Frontend Stylesheet v2.0.0 — Fixed + Animated
   https://leadroipartner.in
   ============================================================ */

/* ── Root & Reset ── */
.lrp-plugin-wrap *,
.lrp-plugin-wrap *::before,
.lrp-plugin-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.lrp-plugin-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: #1d2327;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

/* ── Hero ── */
.lrp-hero {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 12px;
}

.lrp-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #1d2327;
    margin-bottom: 8px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.lrp-hero-sub {
    font-size: 15px;
    color: #646970;
}

/* ── Form card ── */
.lrp-form-card {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 16px;
    padding: 28px 28px 22px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.lrp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    .lrp-form-grid { grid-template-columns: 1fr; }
    .lrp-form-card { padding: 20px 16px; }
    .lrp-hero-title { font-size: 22px; }
}

.lrp-ff { display: flex; flex-direction: column; gap: 6px; }
.lrp-ff-full { grid-column: 1 / -1; }

.lrp-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.lrp-inp {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 9px;
    font-size: 14px;
    color: #1d2327;
    background: #fafafa;
    transition: border-color .2s, box-shadow .2s, background .2s;
    appearance: none;
    -webkit-appearance: none;
}

.lrp-inp:focus {
    outline: none;
    border-color: var(--lrp-color, #1D9E75);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lrp-color, #1D9E75) 15%, transparent);
}

select.lrp-inp {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23646970' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* ── Error ── */
.lrp-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-top: 14px;
}

@keyframes lrp-shake {
    0%,100%{ transform:translateX(0); }
    20%    { transform:translateX(-6px); }
    40%    { transform:translateX(6px); }
    60%    { transform:translateX(-4px); }
    80%    { transform:translateX(4px); }
}
.lrp-err-shake { animation: lrp-shake .45s ease; }

/* ── Generate button ── */
.lrp-gen-btn {
    width: 100%;
    padding: 15px;
    background: var(--lrp-color, #1D9E75);
    color: #fff;
    border: none;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    letter-spacing: 0.3px;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--lrp-color, #1D9E75) 40%, transparent);
}

.lrp-gen-btn:hover:not(:disabled) {
    opacity: .93;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--lrp-color, #1D9E75) 45%, transparent);
}

.lrp-gen-btn:active:not(:disabled) { transform: scale(.98); }
.lrp-gen-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Spinner inside button */
@keyframes lrp-spin {
    to { transform: rotate(360deg); }
}
.lrp-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lrp-spin .7s linear infinite;
}

.lrp-form-note {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
}

/* ── Roadmap banner ── */
.lrp-rm-banner {
    border-radius: 16px;
    padding: 24px 26px;
    margin-bottom: 28px;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.lrp-rm-banner::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
    pointer-events: none;
}

.lrp-banner-inner { position: relative; z-index: 1; }

.lrp-banner-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.lrp-banner-title em {
    font-style: normal;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,.5);
    text-underline-offset: 3px;
}

.lrp-banner-sub {
    margin: 0 0 14px;
    font-size: 13px;
    opacity: .85;
    color: #fff;
}

.lrp-banner-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.lrp-pill {
    background: rgba(255,255,255,.22);
    border-radius: 20px;
    padding: 4px 13px;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* ── Timeline ── */
.lrp-timeline {
    position: relative;
    padding-left: 48px;
}

.lrp-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(to bottom, var(--lrp-color, #1D9E75), #e0e0e0);
    border-radius: 2px;
}

/* ── Timeline Item ── */
.lrp-tl-item {
    position: relative;
    margin-bottom: 20px;
    /* JS handles opacity/transform for animation */
}

.lrp-tl-item:last-child { margin-bottom: 0; }

/* Dot */
.lrp-tl-dot {
    position: absolute;
    left: -37px;
    top: 18px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,.22);
    z-index: 2;
    border: 2px solid #fff;
    transition: transform .2s;
}

.lrp-tl-item:hover .lrp-tl-dot {
    transform: scale(1.15);
}

/* Card */
.lrp-tl-card {
    background: #fff;
    border: 1.5px solid #ebebeb;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: box-shadow .25s, transform .25s, border-color .25s;
    cursor: default;
}

.lrp-tl-item:hover .lrp-tl-card {
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
    transform: translateY(-2px);
    border-color: #d4d4d4;
}

/* Card header row */
.lrp-tl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    gap: 8px;
}

.lrp-tl-month {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.lrp-tl-phase-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.lrp-tl-title {
    font-size: 17px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 7px;
    line-height: 1.3;
}

.lrp-tl-desc {
    font-size: 13px;
    color: #646970;
    margin-bottom: 14px;
    line-height: 1.65;
    border-left: 3px solid #f0f0f0;
    padding-left: 10px;
}

/* Steps */
.lrp-tl-steps {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.lrp-tl-step {
    display: flex;
    gap: 9px;
    font-size: 13px;
    color: #1d2327;
    align-items: flex-start;
    line-height: 1.5;
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 7px;
    transition: background .2s;
}

.lrp-tl-item:hover .lrp-tl-step {
    background: #f3f4f6;
}

.lrp-check {
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
    font-weight: 900;
}

/* Platform tags */
.lrp-tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.lrp-platform-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    letter-spacing: 0.2px;
    transition: filter .2s;
}

.lrp-platform-tag:hover { filter: brightness(.95); }

/* Budget row */
.lrp-tl-budget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    gap: 8px;
}

.lrp-budget-lbl {
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lrp-budget-lbl::before {
    content: '\uD83D\uDCB8';
    font-size: 13px;
}

.lrp-budget-val {
    font-weight: 700;
    color: #1d2327;
    text-align: right;
}

/* ── Note box ── */
.lrp-note-box {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
    margin: 24px 0;
    font-size: 13px;
    color: #78350f;
    line-height: 1.7;
}

.lrp-note-box strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #92400e;
}

/* ── CTA buttons ── */
.lrp-cta-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 400px) {
    .lrp-cta-wrap { grid-template-columns: 1fr; }
}

.lrp-cta-wa,
.lrp-cta-call {
    border-radius: 11px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
    border: none;
}

.lrp-cta-wa {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,211,102,.3);
}

.lrp-cta-call {
    background: #185FA5;
    color: #fff;
    box-shadow: 0 4px 14px rgba(24,95,165,.25);
}

.lrp-cta-wa:hover,
.lrp-cta-call:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.lrp-cta-wa:active,
.lrp-cta-call:active {
    transform: scale(.98);
}

.lrp-cta-call:hover { color: #fff; }

/* Copy button */
.lrp-copy-btn {
    width: 100%;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 11px;
    padding: 13px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    cursor: pointer;
    margin-top: 10px;
    transition: background .2s, border-color .2s, color .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.lrp-copy-btn:hover { background: #f6f7f7; border-color: #d0d0d0; }

.lrp-copy-success {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}

/* Tip & misc */
.lrp-tip {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
}

.lrp-reset-btn {
    display: block;
    background: transparent;
    border: none;
    color: #646970;
    font-size: 13px;
    cursor: pointer;
    margin: 16px auto 0;
    padding: 6px 14px;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s;
    border-radius: 6px;
}

.lrp-reset-btn:hover { color: #1d2327; }

.lrp-footer-brand {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}

.lrp-footer-brand a {
    color: var(--lrp-color, #1D9E75);
    text-decoration: none;
    font-weight: 600;
}

.lrp-footer-brand a:hover { text-decoration: underline; }

/* ── Responsive tweaks ── */
@media (max-width: 520px) {
    .lrp-timeline { padding-left: 40px; }
    .lrp-tl-dot   { left: -30px; width: 22px; height: 22px; font-size: 10px; }
    .lrp-timeline::before { left: 16px; }
    .lrp-tl-card  { padding: 14px 14px; }
    .lrp-tl-title { font-size: 15px; }
    .lrp-banner-title { font-size: 17px; }
    .lrp-tl-header { flex-direction: column; align-items: flex-start; }
}

/* ═══════ v2.3 additions ═══════ */

/* CSS variable fallbacks */
:root {
  --lrp-color: #1D9E75;
  --lrp-accent: #185FA5;
  --lrp-bg: #F4F9F7;
}

/* Apply bg colour */
.lrp-plugin-wrap .lrp-form-card {
  background: var(--lrp-bg, #F4F9F7);
}

/* Phone field hint */
.lrp-field-hint {
  font-size: 11px;
  color: #888;
  margin-top: 3px;
  display: block;
}

/* ── Platform Explorer section ── */
.lrp-platform-explorer {
  margin: 28px 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  overflow: hidden;
}

.lrp-pe-header {
  padding: 20px 24px 16px;
  background: linear-gradient(135deg, var(--lrp-color) 0%, var(--lrp-accent) 100%);
  color: #fff;
}

.lrp-pe-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.lrp-pe-header p {
  font-size: 13px;
  opacity: .88;
  margin: 0;
}

.lrp-pe-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.lrp-pe-platform {
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
  position: relative;
}

.lrp-pe-platform:nth-child(even) {
  border-right: none;
}

.lrp-pe-platform:nth-last-child(-n+2) {
  border-bottom: none;
}

.lrp-pe-plat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lrp-pe-plat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.lrp-pe-plat-name {
  font-size: 14px;
  font-weight: 700;
  color: #1d2327;
}

.lrp-pe-plat-fit {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  margin-left: auto;
}

.lrp-pe-fit-high   { background: #d1fae5; color: #065f46; }
.lrp-pe-fit-medium { background: #fef3c7; color: #92400e; }
.lrp-pe-fit-low    { background: #fee2e2; color: #991b1b; }

.lrp-pe-plat-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 8px;
}

.lrp-pe-plat-tip {
  font-size: 11px;
  color: #888;
  background: #f8f8f8;
  border-radius: 6px;
  padding: 6px 10px;
  border-left: 3px solid var(--lrp-color);
}

.lrp-pe-plat-tip strong {
  color: #444;
}

@media (max-width: 600px) {
  .lrp-pe-platforms {
    grid-template-columns: 1fr;
  }
  .lrp-pe-platform {
    border-right: none;
  }
  .lrp-pe-platform:nth-last-child(-n+2) {
    border-bottom: 1px solid #f0f0f0;
  }
  .lrp-pe-platform:last-child {
    border-bottom: none;
  }
}
