/* CSquared Replicated — front-end styles
   Minimal, themeable. Override in your child theme or Kadence custom CSS. */

.csq-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.csq-product {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.csq-product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.csq-product__image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.csq-product__name {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.csq-product__desc {
    flex: 1;
    margin-bottom: 1rem;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
}

.csq-product__price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.csq-product__price-suffix {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.7;
}

.csq-product__select {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.csq-product__select:hover {
    background: #135e96;
}

.csq-product.is-selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px #2271b1;
}

.csq-products-empty {
    padding: 2rem;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
}

/* ============================================================
   Enrollment funnel
   Brand palette: green #33ff67, teal #33ffc2, dark #0f0f0f
   ============================================================ */

.csq-funnel {
    --csq-green: #33ff67;
    --csq-teal: #33ffc2;
    --csq-dark: #0f0f0f;
    max-width: 640px;
    margin: 2rem auto;
    color: var(--csq-dark);
}

.csq-funnel__sponsor {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.csq-funnel__nosponsor {
    text-align: center;
    padding: 2rem;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

/* Progress crumbs */
.csq-steps {
    display: flex;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    counter-reset: csq;
}

.csq-steps li {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.45);
    position: relative;
    padding-top: 2rem;
}

.csq-steps li::before {
    counter-increment: csq;
    content: counter(csq);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1.6rem;
    height: 1.6rem;
    line-height: 1.6rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
    font-weight: 700;
}

.csq-steps li.is-active {
    color: var(--csq-dark);
    font-weight: 600;
}

.csq-steps li.is-active::before {
    background: var(--csq-dark);
}

/* Steps */
.csq-step { display: none; }
.csq-step.is-active { display: block; animation: csqFade 0.25s ease; }

@keyframes csqFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.csq-step__title {
    font-size: 1.4rem;
    margin: 0 0 1.25rem;
}

/* Fields */
.csq-field {
    display: block;
    margin-bottom: 1rem;
}

.csq-field > span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.csq-field input[type="text"],
.csq-field input[type="email"],
.csq-field input[type="tel"],
.csq-field input[type="password"] {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.csq-field input:focus {
    outline: none;
    border-color: var(--csq-dark);
    box-shadow: 0 0 0 3px rgba(51, 255, 103, 0.35);
}

.csq-field-row {
    display: flex;
    gap: 1rem;
}
.csq-field-row .csq-field { flex: 1; }

.csq-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    opacity: 0.6;
    font-weight: 400;
}

.csq-field--error input {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.18);
}

.csq-field--check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
}
.csq-field--check input { margin-top: 0.2rem; }

/* Bundles */
.csq-bundles {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.csq-bundle {
    display: block;
    position: relative;
    cursor: pointer;
}
.csq-bundle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }

.csq-bundle__body {
    display: block;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.csq-bundle input:checked + .csq-bundle__body {
    border-color: var(--csq-dark);
    background: rgba(51, 255, 103, 0.08);
}

.csq-bundle__name { display: block; font-weight: 700; font-size: 1.05rem; }
.csq-bundle__price { display: block; font-size: 1.3rem; font-weight: 800; margin: 0.15rem 0; }
.csq-bundle__price small { font-size: 0.8rem; font-weight: 500; opacity: 0.6; }
.csq-bundle__desc { display: block; font-size: 0.85rem; opacity: 0.7; }

/* Review */
.csq-review {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.csq-review__row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
}
.csq-review__row:last-child { border-bottom: none; }

/* Buttons */
.csq-step__nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.csq-btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
}
.csq-btn:active { transform: translateY(1px); }
.csq-btn:disabled { opacity: 0.6; cursor: default; }

.csq-btn--next,
.csq-btn--submit {
    background: var(--csq-dark);
    color: var(--csq-green);
    margin-left: auto;
}
.csq-btn--next:hover,
.csq-btn--submit:hover { background: #000; }

.csq-btn--ghost {
    background: transparent;
    color: var(--csq-dark);
    border: 1px solid rgba(0, 0, 0, 0.25);
}

/* Error banner */
.csq-funnel__error {
    background: rgba(214, 54, 56, 0.1);
    border: 1px solid rgba(214, 54, 56, 0.4);
    color: #b32d2e;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Result / confirmation */
.csq-result,
.csq-confirmation {
    text-align: center;
    padding: 1rem 0;
}
.csq-result h2,
.csq-confirmation h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.csq-confirmation__order { font-size: 1.05rem; margin-bottom: 0.5rem; }

@media (max-width: 540px) {
    .csq-field-row { flex-direction: column; gap: 0; }
    .csq-steps li { font-size: 0; padding-top: 1.8rem; }
}

/* Error state for the terms checkbox row */
.csq-field--check.csq-field--error {
    color: #b32d2e;
}
.csq-field--check.csq-field--error input {
    outline: 2px solid #d63638;
    outline-offset: 2px;
}

/* Payment step */
.csq-payment {
    text-align: center;
    padding: 0.5rem 0 1rem;
}
.csq-payment__amount {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.csq-payment__qr {
    width: 220px;
    height: 220px;
    margin: 0 auto 1rem;
    display: block;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
}
.csq-payment__addrlabel {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.csq-payment__addr {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.csq-payment__addr code {
    background: rgba(0,0,0,0.06);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    word-break: break-all;
    max-width: 100%;
}
.csq-payment__status {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--csq-dark, #0f0f0f);
    opacity: 0.85;
}
.csq-payment__status::before {
    content: "";
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--csq-green, #33ff67);
    animation: csqPulse 1.2s ease-in-out infinite;
    vertical-align: middle;
}
@keyframes csqPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%      { opacity: 1;   transform: scale(1.1); }
}
.csq-payment__hint {
    font-size: 0.82rem;
    opacity: 0.6;
    text-align: center;
    margin-top: 0.5rem;
}

/* Rich inline confirmation */
.csq-confirm {
    text-align: center;
    padding: 0.5rem 0 1rem;
}
.csq-confirm__check {
    width: 3.5rem;
    height: 3.5rem;
    line-height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--csq-green, #33ff67);
    color: var(--csq-dark, #0f0f0f);
    font-size: 1.8rem;
    font-weight: 800;
    animation: csqPop 0.4s ease;
}
@keyframes csqPop {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
.csq-confirm h2 { font-size: 1.6rem; margin: 0 0 0.4rem; }
.csq-confirm__lead { opacity: 0.8; margin-bottom: 1.25rem; }
.csq-confirm__details {
    text-align: left;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 0.5rem 1.1rem;
    margin: 0 auto 1.25rem;
    max-width: 420px;
}
.csq-confirm__next { margin-bottom: 1.25rem; }
.csq-confirm__list {
    text-align: left;
    max-width: 420px;
    margin: 0 auto;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
}
.csq-confirm__list li { margin-bottom: 0.4rem; }
