/* Consultation wizard styles extracted from landing.css for the new design */
:root {
    --primary-dark: #2C2C4B;
    --primary-darker: #1a1a35;
    /* Accent colors for visual hierarchy */
    --accent-color: #4F46E5;
    --accent-hover: #4338CA;
    --accent-light: #6366F1;
    --accent-gradient: linear-gradient(135deg, #4F46E5, #7C3AED);
    /* Background colors */
    --bg-light: #E9EBF1;
    --bg-white: #ffffff;
    /* Text colors */
    --text-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    /* Success/Trust colors */
    --success-color: #10B981;
    --warning-color: #F59E0B;
}
/* ===== Consultation Wizard ===== */
[x-cloak] { display: none !important; }

.consultation-wizard-section {
    background: var(--bg-light);
    padding: 80px 10%;
}

/* Embedded inside the home consult section: keep the consult gradient background */
.consult .consult-wizard-wrap {
    width: 100%;
}

.consult .wizard-back-wrap {
    max-width: 1100px;
    margin: 0 auto 24px;
}

.consult .wizard-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #E8E6EF;
    border-radius: 999px;
    padding: 10px 20px;
    color: #030712;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}

.consult .wizard-back-btn:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.consult .consultation-wizard-section {
    background: transparent;
    padding: 0 24px;
}

.wizard-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* Left: Form Side */
.wizard-form-side {
    min-width: 0;
}

/* Right: Header Side */
.wizard-header-side {
    position: sticky;
    top: 100px;
    padding-top: 20px;
}

.wizard-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-dark);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.wizard-badge i { font-size: 0.7rem; }

.wizard-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.wizard-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Progress Bar */
.wizard-progress {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
    width: 100%;
}

.progress-item {
    display: flex;
    align-items: flex-start;
    flex: 1;
}

.progress-item:last-child {
    flex: 0 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.progress-label {
    font-size: 0.7rem;
    color: #aaa;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.progress-step.active .progress-label { color: var(--primary-dark); font-weight: 600; }
.progress-step.completed .progress-label { color: var(--primary-dark); }

.progress-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: white;
    color: #bbb;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.progress-step.active .progress-number {
    background: var(--primary-dark);
    color: white;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(44, 44, 75, 0.35);
}

.progress-step.completed .progress-number {
    background: var(--primary-dark);
    color: white;
    border-color: transparent;
    font-size: 0.7rem;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin: 15px 6px 0;
    min-width: 20px;
    transition: background 0.3s ease;
}

.progress-line.active { background: var(--primary-dark); }

/* Wizard Card */
.wizard-card {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.step-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 7px;
}

.form-icon {
    color: var(--primary-dark);
    font-size: 0.8rem;
    opacity: 0.7;
}

.wizard-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e3ea;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: #f8f9fc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.mobile-input-group {
    display: flex;
    align-items: stretch;
    direction: ltr;
}

.mobile-input-group .mobile-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #eef0f6;
    border: 1.5px solid #e0e3ea;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.mobile-input-group .wizard-input {
    border-radius: 0 10px 10px 0;
}

.wizard-input:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(44, 44, 75, 0.08);
    background: white;
}

.wizard-textarea { resize: vertical; min-height: 80px; }

select.wizard-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
[dir="rtl"] select.wizard-input {
    background-position: left 14px center;
    padding-right: 14px;
    padding-left: 36px;
}

.field-hint { display: block; font-size: 0.75rem; color: #aaa; margin-top: 4px; }
.field-error { display: block; font-size: 0.78rem; color: #ef4444; margin-top: 4px; }

/* Buttons */
.wizard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.wizard-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.wizard-btn-primary {
    background: var(--primary-dark);
    color: white;
    width: 100%;
    box-shadow: 0 4px 14px rgba(44, 44, 75, 0.25);
}
.wizard-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    background: var(--primary-darker);
    box-shadow: 0 6px 20px rgba(44, 44, 75, 0.35);
}

.wizard-btn-back {
    background: white;
    color: var(--text-dark);
    border: 1.5px solid #ddd;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 10px;
    flex-shrink: 0;
}
.wizard-btn-back:hover:not(:disabled) { background: #f5f5f5; }

.wizard-btn-group {
    display: flex;
    gap: 10px;
}
.wizard-btn-group .wizard-btn-primary { flex: 1; }

.wizard-btn-link {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
    display: block;
    margin: 8px auto 0;
    font-family: 'Inter', sans-serif;
}
.wizard-btn-link:hover { text-decoration: underline; }

/* Spinner */
.wizard-spinner {
    display: inline-block; width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
.wizard-spinner-small {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid rgba(44,44,75,0.3);
    border-top-color: var(--primary-dark); border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* OTP Card */
.otp-card { text-align: center; }

.otp-icon {
    width: 60px; height: 60px;
    background: rgba(44, 44, 75, 0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.otp-icon i { font-size: 1.5rem; color: var(--primary-dark); }

.otp-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.otp-message { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2px; }
.otp-mobile { font-size: 1rem; color: var(--primary-dark); font-weight: 700; margin-bottom: 20px; direction: ltr; }

.otp-input {
    text-align: center;
    font-size: 1.6rem;
    letter-spacing: 10px;
    font-weight: 700;
    padding: 12px;
    max-width: 220px;
    margin: 0 auto;
}

/* Step 4: Offers */
.consultation-summary {
    background: white;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.summary-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(44, 44, 75, 0.08); color: var(--primary-dark);
    padding: 5px 12px; border-radius: 16px;
    font-size: 0.78rem; font-weight: 600; margin-bottom: 10px;
}
.summary-badge i { font-size: 0.85rem; }

.consultation-summary h3 { font-size: 1.05rem; color: var(--text-dark); font-weight: 600; margin-bottom: 8px; }

.summary-meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: 0.82rem; color: #888;
}
.summary-meta span { display: flex; align-items: center; gap: 5px; }
.summary-meta i { color: var(--primary-dark); font-size: 0.75rem; }

/* Waiting */
.offers-waiting {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 14px;
    border: 2px dashed #dde0e8;
}

.waiting-animation { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }

.waiting-dot {
    width: 10px; height: 10px;
    background: var(--primary-dark); border-radius: 50%;
    animation: waitingBounce 1.4s ease-in-out infinite;
}
.waiting-dot:nth-child(2) { animation-delay: 0.2s; }
.waiting-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes waitingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.offers-waiting h4 { font-size: 1rem; color: var(--text-dark); font-weight: 600; margin-bottom: 6px; }
.waiting-hint { font-size: 0.85rem; color: #aaa; }

/* Offers List */
.offers-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 12px;
}
.offers-header h3 { font-size: 1rem; color: var(--text-dark); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.offers-header h3 i { color: var(--primary-dark); font-size: 0.85rem; }

.offers-count {
    background: var(--primary-dark); color: white;
    padding: 3px 12px; border-radius: 16px;
    font-size: 0.75rem; font-weight: 600;
}

/* Minimal Flat Offer Card */
.offer-card {
    display: block;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid #eaedf3;
    text-decoration: none;
    color: inherit;
    animation: fadeInUp 0.4s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.offer-card:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 2px 12px rgba(44,44,75,0.08);
    color: inherit;
    text-decoration: none;
}

/* Row — Lawyer side + Price side */
.offer-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Lawyer side: avatar + info grouped together */
.offer-lawyer-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.offer-lawyer-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid #eaedf3;
    background: #f4f5f9;
}
.offer-lawyer-avatar img { width: 100%; height: 100%; object-fit: cover; }

.offer-lawyer-info { flex: 1; min-width: 0; }
.offer-lawyer-info h4 {
    font-size: 0.88rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.2;
}

.offer-lawyer-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.offer-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}
.offer-meta-item i { font-size: 0.65rem; }
.offer-meta-item i.fa-star { color: #e8a808; }
.offer-meta-item i.fa-briefcase { color: var(--primary-dark); }

/* Price side: pushed to the opposite end */
.offer-price-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.offer-price-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.offer-price-currency {
    font-size: 0.68rem;
    font-weight: 500;
    color: #999;
    margin-top: 3px;
}

/* Offer Description */
.offer-description {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.5;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f1f5;
}

/* App Link — Install app row */
.offer-app-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f1f5;
}

.offer-app-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #666;
    font-weight: 600;
}
.offer-app-text i {
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.offer-store-icons {
    display: flex;
    gap: 8px;
}

.offer-store-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f4f5f9;
    color: #666;
    text-decoration: none;
    font-size: 1.15rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.offer-store-link:hover {
    background: var(--primary-dark);
    color: white;
}

/* General Error */
.wizard-error {
    background: #fef2f2; color: #ef4444;
    padding: 10px 16px; border-radius: 10px;
    font-size: 0.85rem; font-weight: 500;
    text-align: center; margin-top: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .consultation-wizard-section { padding: 50px 5%; }
    .wizard-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .wizard-header-side {
        position: static;
        order: -1;
        padding-top: 0;
    }
    .wizard-card { padding: 24px; }
}

@media (max-width: 480px) {
    .wizard-title { font-size: 1.4rem; }
    .wizard-subtitle { font-size: 0.85rem; }
    .progress-number { width: 28px; height: 28px; font-size: 0.7rem; }
    .progress-line { min-width: 14px; }
    .progress-label { font-size: 0.62rem; }
    .wizard-card { padding: 20px; }
    .offer-card { padding: 14px 16px; }
    .offer-lawyer-side { gap: 10px; }
    .offer-price-amount { font-size: 1rem; }
    .offer-app-link { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ===== Wizard RTL ===== */
[dir="rtl"] .wizard-form-side { text-align: right; }
[dir="rtl"] .wizard-header-side { text-align: right; }
[dir="rtl"] .otp-card { text-align: center; }
[dir="rtl"] .wizard-btn-group { flex-direction: row-reverse; }
[dir="rtl"] .offer-lawyer-info { text-align: right; }
[dir="rtl"] .summary-meta { flex-direction: row-reverse; }
[dir="rtl"] .offers-header { flex-direction: row-reverse; }

@media (max-width: 992px) {
    [dir="rtl"] .wizard-btn-group { flex-direction: column-reverse; }
}

/* RTL Support */
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* Hero Section RTL */
[dir="rtl"] .hero {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content h1,
[dir="rtl"] .hero-content h2,
[dir="rtl"] .hero-content p,
[dir="rtl"] .trust-signal {
    text-align: right;
}

[dir="rtl"] .hero-cta-buttons {
    justify-content: flex-start;
}

[dir="rtl"] .trust-signals {
    justify-content: flex-start;
}

[dir="rtl"] .trust-signal {
    flex-direction: row-reverse;
}

/* Header RTL */
[dir="rtl"] header {
    flex-direction: row-reverse;
}

[dir="rtl"] nav ul {
    flex-direction: row-reverse;
}

/* Footer RTL */
[dir="rtl"] footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-links a {
    margin-right: 0;
    margin-left: 25px;
}

[dir="rtl"] .footer-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .social-icons i {
    margin-left: 0;
    margin-right: 15px;
}

/* Steps Section RTL */
[dir="rtl"] .step-arrow {
    right: auto;
    left: -25px;
    transform: translateY(-50%) rotate(180deg);
}

[dir="rtl"] .step-arrow i {
    transform: rotate(180deg);
}

/* Other Sections RTL */
[dir="rtl"] .how-it-works h2,
[dir="rtl"] .legal-services h2,
[dir="rtl"] .why-choose h2,
[dir="rtl"] .security-section h2,
[dir="rtl"] .lawyers-section-header {
    text-align: right;
}

[dir="rtl"] .lawyers-section-header h2,
[dir="rtl"] .lawyers-section-subtitle {
    text-align: right;
}

[dir="rtl"] .featured-lawyer-specialty,
[dir="rtl"] .featured-lawyer-stats,
[dir="rtl"] .featured-lawyer-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .featured-lawyer-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .lawyer-card-top {
    flex-direction: row-reverse;
}

[dir="rtl"] .lawyer-quick-info {
    text-align: right;
}

[dir="rtl"] .lawyer-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .lawyer-card-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .lawyer-card-link:hover i {
    transform: translateX(-4px);
}

[dir="rtl"] .why-choose {
    text-align: right;
}

[dir="rtl"] .why-choose h2 {
    text-align: right;
    float: right;
}

[dir="rtl"] .benefits-container {
    clear: both;
}

[dir="rtl"] .benefit-item {
    flex-direction: row;
    text-align: right;
}

[dir="rtl"] .benefit-icon {
    margin-top: 2px;
}

[dir="rtl"] .benefit-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .chat-bubble {
    right: auto;
    left: -45px;
}

[dir="rtl"] .faq-item {
    border-left: none;
    border-right: 4px solid var(--accent-light);
}

[dir="rtl"] .lawyer-rating .rating-text {
    margin-left: 0;
    margin-right: 5px;
}

[dir="rtl"] .trust-badge {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .trust-badges {
    flex-direction: row-reverse;
}

[dir="rtl"] .service-item,
[dir="rtl"] .security-card,
[dir="rtl"] .lawyer-card {
    text-align: center;
    /* Keep center for cards */
}

/* Phone Mockups RTL */
[dir="rtl"] .phones-container {
    flex-direction: row-reverse;
}

/* Testimonials RTL */
[dir="rtl"] .testimonial-card {
    text-align: right;
}

[dir="rtl"] .testimonial-author {
    text-align: right;
}

/* Review items RTL */
[dir="rtl"] .review-compact-item {
    border-left: none;
    border-right: 4px solid var(--primary-dark);
}

/* License badge RTL */
[dir="rtl"] .license-badge {
    flex-direction: row-reverse;
}

/* Privacy content RTL */
[dir="rtl"] .privacy-content ul,
[dir="rtl"] .privacy-content ol {
    margin-left: 0;
    margin-right: 30px;
}

/* Lawyers list page RTL */
[dir="rtl"] .page-title {
    flex-direction: row-reverse;
}

[dir="rtl"] .controls {
    direction: rtl;
}

[dir="rtl"] .input {
    flex-direction: row-reverse;
}

[dir="rtl"] .summary-bar {
    flex-direction: row-reverse;
}

/* Mobile responsive RTL adjustments */
@media (max-width: 992px) {
    [dir="rtl"] .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    [dir="rtl"] .hero-content h1,
    [dir="rtl"] .hero-content h2,
    [dir="rtl"] .hero-content p {
        text-align: center;
    }

    [dir="rtl"] .hero-cta-buttons {
        justify-content: center;
    }

    [dir="rtl"] .trust-signals {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] header {
        flex-wrap: wrap;
    }

    [dir="rtl"] header nav ul {
        flex-direction: column;
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding: 12px 10%;
    background-color: var(--bg-light);
}

.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: var(--text-muted);
}

[dir="rtl"] .breadcrumb li + li::before {
    margin-right: 0;
    margin-left: 8px;
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.breadcrumb li:last-child span {
    color: var(--text-muted);
}

