/**
 * Trial Page Styles
 */

.trial-page { background: var(--bg-primary); min-height: 100vh; }

.trial-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
}

.trial-hero {
    padding: 120px 0 40px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

body:has(.top-bar) .trial-hero { padding-top: 156px; }

.trial-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: 0;
    width: 50%;
    max-width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-orange-rgb), 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.trial-hero-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }

.trial-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
    line-height: 1.1;
}

.trial-hero h1 .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trial-description { font-size: 1.125rem; color: var(--text-muted); line-height: 1.6; }
.trial-form-section { padding: 40px 0 80px; }

.trial-form-wrapper {
    max-width: 600px;
    margin: 0 auto 14px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.trial-form-notices {
    max-width: 560px;
    margin: 0 auto 34px;
    display: grid;
    gap: 10px;
}

.trial-form-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 24px;
    text-align: center;
}

.trial-form .btn-large {
    margin-top: 8px;
}

.trial-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.trial-page .form-group input[type="text"],
.trial-page .form-group input[type="email"],
.trial-page .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-heading);
    font-size: 1rem;
    transition: all 0.2s;
}

.plan-selector-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.plan-card {
    position: relative;
    display: block;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

.plan-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.plan-card.selected {
    border-color: var(--accent-orange);
    background: rgba(var(--accent-orange-rgb), 0.05);
}

.plan-card-content { display: flex; flex-direction: column; gap: 4px; }
.plan-card-name { font-size: 1rem; font-weight: 600; color: var(--text-heading); }
.plan-card-price { font-size: 0.875rem; color: var(--text-muted); }

.plan-card-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-orange);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 4px;
    align-self: flex-start;
}

.trial-page .trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-body);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.trial-page .trust-item:hover {
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trial-page .trust-item svg { width: 18px; height: 18px; color: var(--accent-orange); flex-shrink: 0; }

.trial-features { background: var(--bg-secondary); }

.trial-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.trial-feature {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.trial-feature:hover {
    border-color: var(--accent-orange);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.trial-feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(var(--accent-orange-rgb), 0.1) 0%, rgba(var(--accent-orange-rgb), 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.trial-feature-icon svg { width: 32px; height: 32px; color: var(--accent-orange); }
.trial-feature h3 { font-size: 1.125rem; font-weight: 600; color: var(--text-heading); margin-bottom: 8px; }
.trial-feature p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }

/* ============================================================
   TRIAL — SMARTERS WARNING
   ============================================================ */

.trial-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(234, 179, 8, 0.35);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.08), rgba(234, 179, 8, 0.04));
    max-width: 100%;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
}

.trial-warning--warning {
    border-color: rgba(234, 179, 8, 0.35);
    background: rgba(234, 179, 8, 0.06);
}

.trial-warning-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 179, 8, 0.18);
    flex-shrink: 0;
    color: #ca8a04;
}
.trial-warning-icon svg { width: 14px; height: 14px; }

.trial-warning-body { flex: 1; min-width: 0; }
.trial-warning-body strong { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--text-heading); margin-bottom: 2px; }
.trial-warning-body p {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 768px) {
    .trial-hero { padding: 120px 0 30px; }
    body:has(.top-bar) .trial-hero { padding-top: 156px; }
    .trial-hero h1 { font-size: 2rem; }
    .trial-description { font-size: 1rem; }
    .trial-form-wrapper { padding: 24px 20px; margin-bottom: 32px; }
    .trial-form-notices {
        max-width: 100%;
        margin: -18px auto 24px;
    }
    .trial-trust { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .trial-page .trust-item { font-size: 0.8125rem; padding: 10px 12px; }

    /* Stack device + adult toggle on mobile */
    .trial-form .form-row-inline {
        flex-direction: column;
        gap: 12px;
    }

    .trial-form .form-row-inline .form-group,
    .trial-form .form-row-inline .adult-toggle-compact {
        width: 100%;
    }

    /* Plan cards 2-col on mobile */
    .plan-selector-cards {
        grid-template-columns: repeat(2, 1fr);
    }

}
