/* Trial selector */
/* ═══ TRIAL SELECTOR ═══ */
.trial-selector {
    max-width: 1280px !important;
    margin: 0 auto;
}

/* Grid: 4 columns desktop */
.trial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

/* Column base */
.trial-step {
    background: var(--wp--preset--color--white, #fff);
    border: 1.5px solid var(--wp--preset--color--gray-lines, #e4e4e7);
    border-radius: 20px;
    overflow: hidden;
    transition: all .4s cubic-bezier(.22, 1, .36, 1);
}

/* States */
.trial-card-inactive {
    opacity: .4;
    pointer-events: none;
}

.trial-card-active {
    border-color: var(--wp--preset--color--green, #2dc799);
    box-shadow: 0 0 0 3px rgba(45, 199, 153, .08);
}

.trial-card-done {
    border-color: var(--wp--preset--color--green, #2dc799);
}

.trial-skipped {
    opacity: .35;
    pointer-events: none;
}

/* Column header */
.trial-col-head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--wp--preset--color--gray-lighter, #f4f4f5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trial-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trial-col-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--wp--preset--color--dark, #09090b);
}

.trial-card-inactive .trial-col-title {
    color: var(--wp--preset--color--gray-medium, #a1a1aa);
}

/* Badge */
.trial-badge {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    transition: all .3s;
    flex-shrink: 0;
}

.trial-badge.pending {
    background: var(--wp--preset--color--gray-lighter, #f4f4f5);
    color: var(--wp--preset--color--gray-medium, #a1a1aa);
}

.trial-badge.active {
    background: var(--wp--preset--color--green, #2dc799);
    color: #fff;
}

.trial-badge.done {
    background: var(--wp--preset--color--green, #2dc799);
    color: #fff;
    font-size: 0;
}

.trial-badge.done::after {
    content: '✓';
    font-size: 11px;
}

/* Summary (visible on mobile compact + desktop done) */
@media (min-width: 769px) {
    .trial-summary {
        display: none !important;
    }
}
.trial-summary {
    display: none;
    align-items: center;
    gap: 10px;
}

.trial-summary-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--wp--preset--color--dark, #09090b);
}

.trial-summary-edit {
    font-size: 12px;
    font-weight: 600;
    color: var(--wp--preset--color--green, #2dc799);
    text-decoration: none;
    border-bottom: 1px dotted rgba(45, 199, 153, .3);
}

.trial-summary-edit:hover {
    color: var(--wp--preset--color--green-dark, #1e8566);
}

/* Options list */
.trial-options {
    padding: 10px;
}

.trial-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    border: 1.5px solid transparent;
    margin-bottom: 3px;
}

.trial-option:last-child {
    margin-bottom: 0;
}

.trial-option:hover {
    background: var(--wp--preset--color--gray-bg, #fafafa);
}

.trial-option.trial-selected {
    background: #ecfdf5;
    border-color: var(--wp--preset--color--green, #2dc799);
}

.trial-opt-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.trial-opt-text {
    flex: 1;
    min-width: 0;
}

.trial-opt-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--wp--preset--color--dark, #09090b);
}

.trial-opt-desc {
    font-size: 10px;
    color: var(--wp--preset--color--gray-text, #71717a);
    margin-top: 1px;
}

/* Radio dot */
.trial-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--wp--preset--color--gray-lines, #e4e4e7);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.trial-selected .trial-radio {
    border-color: var(--wp--preset--color--green, #2dc799);
    background: var(--wp--preset--color--green, #2dc799);
}

.trial-selected .trial-radio::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
}

/* Locked message */
.trial-locked-msg {
    padding: 32px 18px;
    text-align: center;
    color: var(--wp--preset--color--gray-medium, #a1a1aa);
    font-size: 13px;
    font-weight: 500;
}

.trial-card-active .trial-locked-msg,
.trial-card-done .trial-locked-msg {
    display: none;
}

.trial-card-inactive .trial-options {
    display: none;
}

/* Skipped message */
.trial-skipped-msg {
    display: none;
    padding: 32px 18px;
    text-align: center;
    font-size: 12px;
    color: var(--wp--preset--color--gray-medium, #a1a1aa);
}

.trial-skipped .trial-skipped-msg {
    display: block;
}

.trial-skipped .trial-options,
.trial-skipped .trial-locked-msg {
    display: none !important;
}

/* ═══ CTA ═══ */
.trial-cta {
    text-align: center;
    transition: all .4s;
}

.trial-cta-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    display: none;
}

.trial-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    transition: all .35s cubic-bezier(.22, 1, .36, 1);
    background: linear-gradient(135deg, var(--wp--preset--color--green-dark, #1e8566), var(--wp--preset--color--green, #2dc799));
    color: #fff;
    box-shadow: 0 4px 24px rgba(45, 199, 153, .25);
}
.trial-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(45, 199, 153, .4);
    color: #fff;
}
.trial-ck {
    color: var(--wp--preset--color--green, #2dc799);
    font-weight: 700;
}
.trial-cta-note {
    font-size: 12px;
    color: var(--wp--preset--color--gray-medium, #a1a1aa);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.trial-cta-note span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.trial-cta-note .ck {
    color: var(--wp--preset--color--green, #2dc799);
    font-weight: 700;
}

/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
    .trial-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Compact: collapse options, show summary */
    .trial-card-compact .trial-options {
        max-height: 0;
        overflow: hidden;
        padding: 0;
        opacity: 0;
        transition: all .3s ease;
    }

    .trial-card-compact .trial-col-head {
        border-bottom: none;
        padding-bottom: 18px;
    }

    .trial-card-compact .trial-summary {
        display: flex;
    }

    .trial-card-compact .trial-locked-msg {
        display: none;
    }

    /* Active step on mobile — make sure options are visible */
    .trial-card-active .trial-options {
        max-height: 500px;
        opacity: 1;
        padding: 10px;
    }

    .trial-cta-note {
        flex-direction: column;
        gap: 6px;
    }
}

/* ═══ DESKTOP: summary only visible inside done state as label ═══ */
/* Edit link: only mobile compact */
.trial-summary-edit {
    display: none;
}
@media (max-width: 768px) {
    .trial-card-compact .trial-summary-edit {
        display: inline;
    }
}
@media (min-width: 769px) {
    .trial-card-compact .trial-summary {
        display: none;
    }

    .trial-card-done .trial-summary {
        display: flex;
    }

    /* On desktop, done columns stay open with options visible */
    .trial-card-done .trial-options {
        display: block;
    }

    /* But we don't collapse — just keep edit visible */
    .trial-card-done.trial-card-compact .trial-options {
        display: block;
        max-height: none;
        opacity: 1;
        padding: 10px;
    }
}
/* End of Trial selector */