/* Revival Quotations — trigger section + modal */

/* ══════════ Trigger section ══════════ */
.rvq-qsection { padding: 80px 0; background: #F1F5F9; }
.rvq-qsection-wrap { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.rvq-qsection-card {
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    background: linear-gradient(135deg, rgba(59,130,246,.04), rgba(99,102,241,.02)), #fff;
    border: 1px solid rgba(59,130,246,.12);
    box-shadow: 0 10px 40px -12px rgba(15,45,82,.08);
    transition: box-shadow .4s ease, transform .4s ease;
}
.rvq-qsection-card:hover {
    box-shadow: 0 20px 60px -12px rgba(59,130,246,.15);
    transform: translateY(-2px);
}

.rvq-qsection-content {
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.rvq-qsection-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(99,102,241,.08));
    color: #3b82f6;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.rvq-qsection-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: #0F2D52;
    margin: 0 0 14px;
}
.rvq-qsection-desc {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #6B7280;
    max-width: 500px;
    margin: 0 0 28px;
}
.rvq-qsection-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(59,130,246,.25);
    transition: transform .3s ease, box-shadow .3s ease;
}
.rvq-qsection-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform .6s ease;
}
.rvq-qsection-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,.35); }
.rvq-qsection-btn:hover::before { transform: translateX(100%); }
.rvq-qsection-btn i { transition: transform .3s ease; }
.rvq-qsection-btn:hover i { transform: translateX(3px); }
[dir="rtl"] .rvq-qsection-btn:hover i { transform: translateX(-3px); }

/* Right visual */
.rvq-qsection-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    background: linear-gradient(135deg, rgba(59,130,246,.06), rgba(99,102,241,.04));
}
.rvq-qsection-particles { position: absolute; inset: 0; pointer-events: none; }
.rvq-qsection-particles::before,
.rvq-qsection-particles::after {
    content: "";
    position: absolute;
    width: 160px; height: 160px;
    border-radius: 50%;
    filter: blur(2px);
}
.rvq-qsection-particles::before { top: 8%;  left: 10%; background: radial-gradient(circle, rgba(59,130,246,.12), transparent 70%); }
.rvq-qsection-particles::after  { bottom: 5%; right: 8%; background: radial-gradient(circle, rgba(139,92,246,.10), transparent 70%); }

.rvq-qsection-visual-inner { position: relative; width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; }
.rvq-qsection-visual-icon {
    width: 120px; height: 120px;
    border-radius: 32px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 2.8rem;
    box-shadow: 0 16px 48px rgba(59,130,246,.25);
    transition: transform .4s ease, box-shadow .4s ease;
    position: relative;
    z-index: 2;
}
.rvq-qsection-card:hover .rvq-qsection-visual-icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 20px 56px rgba(59,130,246,.35);
}
.rvq-qsection-visual-ring {
    position: absolute;
    top: 50%; left: 50%;
    border: 1.5px solid rgba(59,130,246,.1);
    border-radius: 50%;
    animation: rvq-ring 8s linear infinite;
}
.rvq-ring-1 { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
.rvq-ring-2 { width: 240px; height: 240px; margin: -120px 0 0 -120px; animation-delay: -2s; }
.rvq-ring-3 { width: 300px; height: 300px; margin: -150px 0 0 -150px; animation-delay: -4s; }

@keyframes rvq-ring {
    from { transform: rotate(0deg)   scale(1); }
    50%  { transform: rotate(180deg) scale(1.05); }
    to   { transform: rotate(360deg) scale(1); }
}

/* ══════════ Modal ══════════ */
.rvq-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: rvq-fadein .2s ease;
}
.rvq-overlay.rvq-closing { animation: rvq-fadeout .15s ease forwards; }

.rvq-modal {
    background: var(--rvq-bg, #fff);
    color: var(--rvq-text, #1e293b);
    border-radius: 20px;
    width: min(90%, 620px);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,.25);
    animation: rvq-slideup .3s ease;
}
.rvq-overlay.rvq-closing .rvq-modal { animation: rvq-slidedown .2s ease forwards; }

@keyframes rvq-fadein   { from { opacity: 0; } to { opacity: 1; } }
@keyframes rvq-fadeout  { from { opacity: 1; } to { opacity: 0; } }
@keyframes rvq-slideup   { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes rvq-slidedown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(30px); opacity: 0; } }

.rvq-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px; height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--rvq-muted, #64748b);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
[dir="rtl"] .rvq-close { right: auto; left: 16px; }
.rvq-close:hover { background: rgba(0,0,0,.05); color: var(--rvq-text, #1e293b); }

.rvq-header { position: relative; padding: 32px 32px 0; text-align: center; }
.rvq-icon {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(99,102,241,.12));
    color: #3b82f6;
    font-size: 1.4rem;
}
.rvq-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 6px; }
.rvq-sub   { font-size: .88rem; color: var(--rvq-muted, #64748b); margin: 0; }

.rvq-body { padding: 24px 32px; }

.rvq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rvq-field { margin-bottom: 14px; }
.rvq-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.rvq-req { color: #dc2626; }

.rvq-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: .9rem;
    font-family: inherit;
    color: var(--rvq-text, #1e293b);
    background: var(--rvq-bg-alt, #f8fafc);
    border: 1.5px solid var(--rvq-border, #e2e8f0);
    border-radius: 10px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.rvq-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
select.rvq-input { appearance: auto; }

.rvq-radios { display: flex; gap: 20px; padding: 4px 0; }
.rvq-radio { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; cursor: pointer; }

.rvq-hint { display: block; font-size: .75rem; color: var(--rvq-muted, #64748b); margin-top: 4px; }

.rvq-error {
    display: none;
    overflow: hidden;
    color: #dc2626;
    font-size: .8rem;
    margin-top: 4px;
}
.rvq-error.rvq-show { display: block; animation: rvq-errslide .15s ease; }
@keyframes rvq-errslide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.rvq-section-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #3b82f6;
    border-bottom: 2px solid rgba(59,130,246,.2);
    padding-bottom: 8px;
    margin: 24px 0 16px;
}

.rvq-message {
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .9rem;
    line-height: 1.5;
}
.rvq-message.rvq-success { background: rgba(16,185,129,.1); color: #047857; border: 1px solid rgba(16,185,129,.25); }
.rvq-message.rvq-fail    { background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.25); }

.rvq-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 32px 28px;
}
.rvq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.rvq-btn:disabled { opacity: .65; cursor: not-allowed; }
.rvq-btn-primary {
    border: 0;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59,130,246,.25);
}
.rvq-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59,130,246,.35); }
.rvq-btn-outline {
    background: transparent;
    border: 1.5px solid var(--rvq-border, #e2e8f0);
    color: var(--rvq-text, #1e293b);
}
.rvq-btn-outline:hover { border-color: #94a3b8; }

/* ══════════ Dark mode ══════════ */
.dark .rvq-modal, [data-theme="dark"] .rvq-modal, body.dark-mode .rvq-modal {
    --rvq-bg: #1e293b;
    --rvq-text: #f0f4ff;
    --rvq-muted: rgba(240,244,255,.5);
    --rvq-border: rgba(240,244,255,.1);
    --rvq-bg-alt: #0f172a;
}
.dark .rvq-close:hover, [data-theme="dark"] .rvq-close:hover, body.dark-mode .rvq-close:hover { background: rgba(255,255,255,.08); }
.dark .rvq-message.rvq-success, [data-theme="dark"] .rvq-message.rvq-success, body.dark-mode .rvq-message.rvq-success { background: rgba(16,185,129,.15); color: #6ee7b7; border-color: rgba(16,185,129,.3); }
.dark .rvq-message.rvq-fail, [data-theme="dark"] .rvq-message.rvq-fail, body.dark-mode .rvq-message.rvq-fail { background: rgba(220,38,38,.15); color: #fca5a5; border-color: rgba(220,38,38,.3); }

/* ══════════ Responsive ══════════ */
@media (max-width: 768px) {
    .rvq-qsection-card { grid-template-columns: 1fr; }
    .rvq-qsection-content { padding: 40px 24px; }
    .rvq-qsection-visual { order: -1; min-height: 200px; padding: 32px; }
    .rvq-qsection-visual-icon { width: 90px; height: 90px; font-size: 2.1rem; border-radius: 24px; }
    .rvq-ring-1 { width: 140px; height: 140px; margin: -70px 0 0 -70px; }
    .rvq-ring-2 { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
    .rvq-ring-3 { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
}

@media (max-width: 640px) {
    .rvq-modal { width: 95%; border-radius: 16px; }
    .rvq-header { padding: 24px 20px 0; }
    .rvq-body { padding: 20px; }
    .rvq-footer { padding: 12px 20px 24px; flex-direction: column; }
    .rvq-footer .rvq-btn { width: 100%; justify-content: center; }
    .rvq-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
    .rvq-qsection { padding: 56px 0; }
    .rvq-qsection-content { padding: 32px 18px; }
    .rvq-qsection-btn { width: 100%; justify-content: center; }
}
