/* =========================================================
   Trial Form – standalone stylesheet
   ========================================================= */

.trial-form {
    position: relative;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

/* ── Progress bar ─────────────────────────────────────── */
.trial-form__progress {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
}

.trial-form__progress-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #414141;
    transition: background 0.3s ease;
}

.trial-form__progress-bar.is-active {
    background: #0075eb;
}

.trial-form__progress-bar.is-partial {
    background: rgba(0, 117, 235, 0.35);
}

/* ── Steps ────────────────────────────────────────────── */
.trial-form__step {
    display: none;
}

.trial-form__step.is-active {
    display: block;
}

/* ── Typography ───────────────────────────────────────── */
.trial-form__heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #ffffff;
    line-height: 1.3;
}

.trial-form__subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 24px;
}

/* ── Email field ──────────────────────────────────────── */
.trial-form__field {
    margin-bottom: 20px;
}

.trial-form__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

.trial-form__input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.trial-form__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.trial-form__input:focus {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.trial-form__input.has-error {
    border-color: #ef4444;
}

.trial-form__error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 5px;
    min-height: 16px;
}

/* ── Deploy label ─────────────────────────────────────── */
.trial-form__deploy-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 12px;
}

/* ── Continue button (step 1) ─────────────────────────── */
.trial-form__continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* ── Option cards ─────────────────────────────────────── */
.trial-form__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.trial-form__option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    color: #ffffff;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.trial-form__option:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.06);
}

.trial-form__option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.trial-form__option-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trial-form__option-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.trial-form__option-body {
    flex: 1;
    min-width: 0;
}

.trial-form__option-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.trial-form__option-desc {
    font-size: 12px;
    color: var(--text-color-secondary);
    margin: 0 0 8px;
    line-height: 1.5;
}

.trial-form__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trial-form__features li {
    font-size: 12px;
    color: var(--text-color-secondary);
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.trial-form__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 12px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9' fill='none'%3E%3Cpath d='M1 4L4.5 7.5L11 1' stroke='%233b82f6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.trial-form__option-arrow {
    flex-shrink: 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1;
    margin-top: 2px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.trial-form__option:hover .trial-form__option-arrow {
    color: #3b82f6;
    transform: translateX(3px);
}

/* ── Legal text ───────────────────────────────────────── */
.trial-form__legal {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
    line-height: 1.5;
}

.trial-form__legal a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: underline;
}

.trial-form__legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Step 4: Early release form ───────────────────────── */
.trial-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.trial-form__row .trial-form__field {
    margin-bottom: 12px;
}

.trial-form__error--form {
    font-size: 12px;
    color: #ef4444;
    margin-bottom: 12px;
    min-height: 16px;
}

.trial-form__submit-early {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #0075eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: 4px;
    box-sizing: border-box;
}

.trial-form__submit-early:hover {
    background: #005ec0;
}

.trial-form__submit-early:active {
    transform: scale(0.98);
}

.trial-form__submit-early:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Step 5 & 6: Success screens ──────────────────────── */
.trial-form__step--5,
.trial-form__step--6 {
    text-align: center;
    padding: 16px 0 8px;
}

.trial-form__success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.trial-form__success-icon svg {
    width: 100%;
    height: 100%;
}

.trial-form__success-message {
    font-size: 14px;
    color: var(--text-color-secondary);
    line-height: 1.6;
    margin: 0;
}

.trial-form__user-email {
    color: #ffffff;
    font-weight: 600;
}

/* ── Step 3: Self-hosted coming soon ──────────────────── */
/* ── Join Early Release Team button ──────────────────── */
.trial-form__join-team {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
}


.trial-form__join-team:active {
    transform: scale(0.98);
}

.trial-form__join-team:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.trial-form__back {
    color: var(--text-color-secondary);
    border: 0;
    background-color: transparent;
    margin-bottom: 24px;
}

.trial-form__back:hover {
    color: rgba(255, 255, 255, 0.8);
}

.trial-form__step--3 {
    text-align: center;
}

.trial-form__step--2 .trial-form__back,
.trial-form__step--3 .trial-form__back,
.trial-form__step--4 .trial-form__back {
    display: block;
    text-align: left;
}

.trial-form__coming-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
}

.trial-form__coming-icon svg {
    width: 32px;
    height: 32px;
}

.trial-form__coming-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.trial-form__coming-body {
    font-size: 14px;
    color: var(--text-color-secondary);
    line-height: 1.6;
    margin: 0 0 12px;
}

.trial-form__coming-cta {
    font-size: 13px;
    color: var(--text-color-secondary);
    line-height: 1.6;
    margin: 0 0 24px;
}

.trial-form__try-saas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 20px;
}

.trial-form__try-saas:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.trial-form__step--3 .trial-form__legal {
    text-align: center;
}

/* ── Loading overlay ──────────────────────────────────── */
.trial-form__loading {
    position: absolute;
    inset: 0;
    background: #4141416d;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}

.trial-form__loading.is-visible {
    opacity: 1;
    pointer-events: all;
}

.trial-form__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #0075eb;
    border-radius: 50%;
    animation: trial-spin 0.7s linear infinite;
}

@keyframes trial-spin {
    to { transform: rotate(360deg); }
}
