/* Base variables */
:root {
    --primary: #1A2B4C;
    --primary-light: #2A4070;
    --accent: #2563EB;
    --text-main: #0F172A;
    --text-muted: #475569;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
}

/* Hero Widget */
.falinskaya-hero {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--shadow-md);
}
.fh-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}
.fh-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.fh-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}
.fh-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}
.fh-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* Features Widget */
.falinskaya-features {
    padding: 60px 0;
}
.ff-section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 48px;
    font-weight: 700;
}
.ff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}
.ff-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.ff-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(37, 99, 235, 0.2);
}
.ff-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
}
.ff-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.ff-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0;
}

/* FAQ Widget */
.falinskaya-faq {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-question {
    padding: 24px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
}
.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Widget */
.falinskaya-cta {
    background: var(--primary);
    border-radius: 24px;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    color: var(--white);
}
@media (max-width: 768px) {
    .falinskaya-cta {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
}
.fc-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 16px;
}
.fc-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
}
.fc-form input, .fc-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    margin-bottom: 16px;
}
.fc-form input::placeholder, .fc-form textarea::placeholder {
    color: rgba(255,255,255,0.6);
}
.fc-form input[type="submit"] {
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.fc-form input[type="submit"]:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Law Widget */
.falinskaya-law {
    position: relative;
    padding: 60px;
    background: var(--white);
    border-radius: var(--radius);
    border-left: 8px solid var(--accent);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin: 40px 0;
}
.fl-icon {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--primary);
    font-weight: bold;
}
.fl-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}
.fl-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-muted);
}
.fl-text p { margin-bottom: 16px; }

/* Numbers Widget */
.falinskaya-numbers {
    padding: 80px 0;
    background: var(--primary);
    border-radius: 24px;
    color: var(--white);
    margin: 40px 0;
}
.fn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}
.fn-value {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.fn-label {
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Process Widget */
.falinskaya-process {
    padding: 80px 0;
}
.fp-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
}
.fp-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.fp-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.fp-step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}
.fp-step:last-child { margin-bottom: 0; }
.fp-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 0 0 8px var(--white);
}
.fp-content {
    margin-left: 32px;
    padding-top: 12px;
}
.fp-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}
.fp-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pricing Widget */
.falinskaya-pricing {
    padding: 60px 0;
}
.fpr-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px;
}
.fpr-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.fpr-header {
    background: var(--bg-light);
    padding: 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.fpr-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}
.fpr-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}
.fpr-body {
    padding: 40px;
}
.fpr-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fpr-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.125rem;
    color: var(--text-main);
}
.fpr-list li:last-child { margin-bottom: 0; }

/* Blog Widget */
.falinskaya-blog {
    padding: 60px 0;
}
.fb-section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 48px;
}
.fb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.fb-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.fb-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.fb-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-light);
}
.fb-content {
    padding: 32px;
}
.fb-meta {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}
.fb-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}
.fb-title a {
    color: var(--text-main);
    text-decoration: none;
}
.fb-title a:hover { color: var(--accent); }
.fb-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}
.fb-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.fb-read-more:hover { color: var(--accent); }


/* Expert Widget */
.falinskaya-expert { padding: 60px 0; }
.fe-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}
.fe-image-col {
    flex: 1;
    min-width: 300px;
    position: relative;
}
.fe-image {
    width: 100%;
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}
.fe-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}
.fe-content-col {
    flex: 1.5;
    min-width: 300px;
}
.fe-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; }
.fe-position { font-size: 1.25rem; color: var(--primary); font-weight: 600; margin-bottom: 24px; }
.fe-bio { font-size: 1.125rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 32px; }
.fe-bio ul { margin-top: 16px; padding-left: 20px; }
.fe-bio li { margin-bottom: 8px; }
.fe-certs { display: flex; gap: 16px; flex-wrap: wrap; }
.fe-cert-item { background: var(--bg-light); padding: 12px 20px; border-radius: 12px; font-weight: 500; font-size: 0.9rem; }

/* Cases Widget */
.falinskaya-cases { padding: 60px 0; background: var(--bg-light); border-radius: 24px; margin: 40px 0; }
.fcases-section-title { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 48px; }
.fcases-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 32px; 
    padding: 0 40px; 
}
.fcases-card { 
    background: var(--white); 
    border-radius: 16px; 
    padding: 32px; 
    box-shadow: var(--shadow-md); 
    border-top: 4px solid var(--primary); 
    transition: transform 0.3s;
}
.fcases-card:hover {
    transform: translateY(-5px);
}
.fcases-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
.fcases-name { font-size: 1.25rem; font-weight: 700; margin: 0; }
.fcases-number { font-size: 0.875rem; color: var(--text-muted); }
.fcases-stat { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 1rem; }
.fcases-stat span { color: var(--text-muted); }
.fcases-result { margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--border); font-size: 0.95rem; line-height: 1.6; }
.fcases-result strong { color: var(--accent); }

/* Guarantee Widget */
.falinskaya-guarantee { padding: 40px 0; }
.fguar-card { background: linear-gradient(135deg, #0F172A, #1E293B); border-radius: 24px; padding: 60px; text-align: center; color: var(--white); position: relative; overflow: hidden; }
.fguar-icon { color: var(--accent); margin-bottom: 24px; }
.fguar-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 24px; color: var(--white); }
.fguar-desc { font-size: 1.25rem; line-height: 1.6; max-width: 800px; margin: 0 auto; color: #FFFFFF; }
.fguar-desc p { color: #FFFFFF !important; }
.fguar-desc strong { color: #38BDF8 !important; font-weight: 800; }

/* Pricing Widget Fix */
.fpr-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.fpr-list li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-left: 0 !important;
}
.fpr-list li::before {
    display: none !important; /* hide default elementor/theme bullets */
}

/* Form Contrast Fix */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}
.wpcf7-form-control.wpcf7-text::placeholder,
.wpcf7-form-control.wpcf7-textarea::placeholder {
    color: #94A3B8 !important;
}
.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
    border-color: var(--primary);
    outline: none;
}
.wpcf7-form-control.wpcf7-submit {
    background: var(--primary);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}
.wpcf7-form-control.wpcf7-submit:hover {
    background: var(--accent);
}

/* Quiz Extended Styles */
.fquiz-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}
.fquiz-progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.4s ease, background 0.4s ease;
}
.fquiz-step-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 32px;
}
.fquiz-result-box {
    background: rgba(16, 185, 129, 0.05);
    border: 2px dashed #10B981;
    border-radius: 16px;
    padding: 32px;
    margin-top: 16px;
}
.fquiz-btn-final {
    display: inline-block;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s;
}
.fquiz-btn-final:hover {
    background: #e63946;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.fquiz-back-btn {
    background-color: transparent !important;
    border: 2px solid #E2E8F0 !important;
    color: #64748B !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s;
    display: inline-block;
}
.fquiz-back-btn:hover {
    background-color: #F8FAFC !important;
    color: #0F172A !important;
    border-color: #CBD5E1 !important;
}

.fguar-desc { 
    font-size: 1.25rem; 
    line-height: 1.6; 
    max-width: 800px; 
    margin: 0 auto; 
    /* Removed opacity for maximum contrast */
    color: #FFFFFF; 
}
.fguar-desc strong {
    color: #38BDF8; /* Light blue that pops on dark background */
    font-weight: 800;
}
