/* ============================================
   SapCod - Ultra Premium Quote Section
   Author: SapCod Team
   Version: 2.0
   Description: Multi-step form with animations,
   trust badges, currency in USD, premium design
   Compatible with: styles.css
   Namespace: sapcod-quote-v2
   ============================================ */

/* ===== Section Container ===== */
.sapcod-quote-v2 {
    position: relative;
    padding: 130px 0;
    background: var(--bg-secondary, #f8f9fa);
    overflow: hidden;
    isolation: isolate;
}

[data-theme="dark"] .sapcod-quote-v2 {
    background: var(--bg-secondary, #0e0e22);
}

/* ===== Background Effects ===== */
.quote-v2-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.quote-v2-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.07;
    animation: quoteOrbFloat 12s ease-in-out infinite;
}

.quote-v2-orb.qo1 {
    width: 600px;
    height: 600px;
    background: #0066ff;
    top: -200px;
    left: -150px;
}

.quote-v2-orb.qo2 {
    width: 500px;
    height: 500px;
    background: #339966;
    bottom: -150px;
    right: -100px;
    animation-delay: 4s;
}

.quote-v2-orb.qo3 {
    width: 350px;
    height: 350px;
    background: #0066ff;
    top: 50%;
    right: 30%;
    animation-delay: 8s;
    opacity: 0.04;
}

@keyframes quoteOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.06); }
    66% { transform: translate(-30px, 25px) scale(0.95); }
}

/* Dot grid */
.quote-v2-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 102, 255, 0.06) 1.5px, transparent 1.5px);
    background-size: 35px 35px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 70%);
}

/* ===== Container ===== */
.sapcod-quote-v2 .container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== Section Header ===== */
.quote-v2-header {
    text-align: center;
    margin-bottom: 55px;
}

.quote-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 22px;
    background: rgba(0, 102, 255, 0.05);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0066ff;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 22px;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .quote-v2-badge {
    background: rgba(0, 102, 255, 0.08);
    border-color: rgba(0, 102, 255, 0.18);
}

.quote-v2-badge i {
    animation: quoteBadgeSpin 3s linear infinite;
}

@keyframes quoteBadgeSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quote-v2-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 14px;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

[data-theme="dark"] .quote-v2-title {
    color: #e8e8f0;
}

.quote-v2-title .t-grad {
    background: linear-gradient(135deg, #0066ff 0%, #339966 60%, #0066ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: quoteGradShift 5s ease infinite;
}

@keyframes quoteGradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.quote-v2-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary, #666);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

[data-theme="dark"] .quote-v2-subtitle {
    color: #999;
}

/* ===== Main Wrapper ===== */
.quote-v2-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    background: var(--card-bg, #ffffff);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.06);
}

[data-theme="dark"] .quote-v2-wrapper {
    background: #1a1a30;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 102, 255, 0.1);
}

/* ===== Left Sidebar ===== */
.quote-v2-sidebar {
    background: linear-gradient(180deg, 
        rgba(0, 102, 255, 0.04) 0%, 
        rgba(51, 153, 102, 0.04) 50%,
        rgba(0, 102, 255, 0.04) 100%);
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0, 102, 255, 0.06);
}

[data-theme="dark"] .quote-v2-sidebar {
    background: linear-gradient(180deg, 
        rgba(0, 102, 255, 0.06) 0%, 
        rgba(51, 153, 102, 0.06) 50%,
        rgba(0, 102, 255, 0.06) 100%);
    border-right-color: rgba(0, 102, 255, 0.1);
}

/* Sidebar header */
.quote-v2-sidebar-header {
    margin-bottom: 35px;
}

.quote-v2-sidebar-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 6px;
}

[data-theme="dark"] .quote-v2-sidebar-header h3 {
    color: #e0e0e0;
}

.quote-v2-sidebar-header p {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
}

/* Benefits list */
.quote-v2-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
}

.quote-v2-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 102, 255, 0.05);
}

[data-theme="dark"] .quote-v2-benefits li {
    border-bottom-color: rgba(0, 102, 255, 0.08);
}

.quote-v2-benefits li:last-child {
    border-bottom: none;
}

.benefit-icon-circle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.benefit-icon-circle.bic-blue {
    background: rgba(0, 102, 255, 0.08);
    color: #0066ff;
}

.benefit-icon-circle.bic-green {
    background: rgba(51, 153, 102, 0.08);
    color: #339966;
}

.benefit-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 2px;
}

[data-theme="dark"] .benefit-info h4 {
    color: #e0e0e0;
}

.benefit-info p {
    font-size: 0.75rem;
    color: #888;
    margin: 0;
}

/* Sidebar footer */
.quote-v2-sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 102, 255, 0.06);
}

[data-theme="dark"] .quote-v2-sidebar-footer {
    border-top-color: rgba(0, 102, 255, 0.1);
}

.quote-v2-trust-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.quote-v2-avatars {
    display: flex;
}

.quote-v2-avatars span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
}

[data-theme="dark"] .quote-v2-avatars span {
    border-color: #1a1a30;
}

.quote-v2-avatars span:first-child { margin-left: 0; }
.quote-v2-avatars span.qa1 { background: #0066ff; }
.quote-v2-avatars span.qa2 { background: #339966; }
.quote-v2-avatars span.qa3 { background: #0052cc; }

.quote-v2-trust-text {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

.quote-v2-trust-text strong {
    color: #0066ff;
}

.quote-v2-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-v2-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.quote-v2-rating-text {
    font-size: 0.78rem;
    color: #888;
    font-weight: 600;
}

/* ===== Form Side ===== */
.quote-v2-form-wrap {
    padding: 45px 40px;
    position: relative;
}

/* ===== Progress Steps ===== */
.quote-v2-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.quote-v2-step {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.quote-v2-step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    background: rgba(0, 102, 255, 0.06);
    color: #888;
    border: 2px solid transparent;
}

.quote-v2-step.active .quote-v2-step-num {
    background: linear-gradient(135deg, #0066ff, #0044cc);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.quote-v2-step.completed .quote-v2-step-num {
    background: #339966;
    color: #fff;
    border-color: #339966;
}

.quote-v2-step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    transition: color 0.3s ease;
}

.quote-v2-step.active .quote-v2-step-label {
    color: #0066ff;
}

.quote-v2-step.completed .quote-v2-step-label {
    color: #339966;
}

.quote-v2-step-line {
    width: 60px;
    height: 2px;
    background: rgba(0, 102, 255, 0.1);
    margin: 0 15px;
    transition: background 0.4s ease;
}

.quote-v2-step-line.done {
    background: #339966;
}

/* ===== Form Steps Container ===== */
.quote-v2-steps-container {
    position: relative;
    min-height: 380px;
}

.quote-v2-form-step {
    display: none;
    animation: stepFadeIn 0.45s ease;
}

.quote-v2-form-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.quote-v2-form-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 6px;
}

[data-theme="dark"] .quote-v2-form-step h4 {
    color: #e0e0e0;
}

.quote-v2-form-step .step-desc {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 22px;
}

/* ===== Form Elements ===== */
.quote-v2-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.quote-v2-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.quote-v2-form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    display: flex;
    align-items: center;
    gap: 5px;
}

[data-theme="dark"] .quote-v2-form-group label {
    color: #e0e0e0;
}

.quote-v2-form-group label .required-star {
    color: #ff4757;
}

.quote-v2-form-group input,
.quote-v2-form-group select,
.quote-v2-form-group textarea {
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid rgba(0, 102, 255, 0.1);
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #1a1a2e);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

[data-theme="dark"] .quote-v2-form-group input,
[data-theme="dark"] .quote-v2-form-group select,
[data-theme="dark"] .quote-v2-form-group textarea {
    background: #141428;
    border-color: rgba(0, 102, 255, 0.15);
    color: #e0e0e0;
}

.quote-v2-form-group input:focus,
.quote-v2-form-group select:focus,
.quote-v2-form-group textarea:focus {
    border-color: #0066ff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.06);
}

.quote-v2-form-group input.error,
.quote-v2-form-group select.error,
.quote-v2-form-group textarea.error {
    border-color: #ff4757;
    box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.06);
}

.quote-v2-form-group .error-text {
    font-size: 0.72rem;
    color: #ff4757;
    display: none;
    align-items: center;
    gap: 4px;
}

.quote-v2-form-group .error-text.show {
    display: flex;
}

/* Currency display */
.quote-v2-currency-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 10px;
    font-size: 0.78rem;
    color: #0066ff;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ===== Form Navigation Buttons ===== */
.quote-v2-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
}

.quote-v2-btn-back {
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid rgba(0, 102, 255, 0.15);
    background: transparent;
    color: #0066ff;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.quote-v2-btn-back:hover {
    background: rgba(0, 102, 255, 0.05);
    border-color: #0066ff;
}

.quote-v2-btn-next,
.quote-v2-btn-submit {
    padding: 13px 30px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0066ff, #0044cc);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    box-shadow: 0 6px 22px rgba(0, 102, 255, 0.25);
}

.quote-v2-btn-next:hover,
.quote-v2-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.quote-v2-btn-submit {
    background: linear-gradient(135deg, #339966, #267d52);
    box-shadow: 0 6px 22px rgba(51, 153, 102, 0.25);
}

.quote-v2-btn-submit:hover {
    box-shadow: 0 10px 30px rgba(51, 153, 102, 0.4);
}

.quote-v2-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== Success Message ===== */
.quote-v2-success {
    display: none;
    text-align: center;
    padding: 50px 20px;
    animation: stepFadeIn 0.5s ease;
}

.quote-v2-success.show {
    display: block;
}

.quote-v2-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #339966, #267d52);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    margin: 0 auto 22px;
    box-shadow: 0 15px 40px rgba(51, 153, 102, 0.3);
    animation: successBounce 0.6s ease;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.quote-v2-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 8px;
}

.quote-v2-success p {
    color: var(--text-secondary, #666);
    margin-bottom: 20px;
    line-height: 1.6;
}

.quote-v2-success .response-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(51, 153, 102, 0.08);
    border-radius: 20px;
    color: #339966;
    font-weight: 600;
    font-size: 0.88rem;
}

.quote-v2-success .response-time i {
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== Form Message ===== */
.quote-v2-message {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
    margin-bottom: 20px;
}

.quote-v2-message.show {
    display: block;
}

.quote-v2-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quote-v2-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .quote-v2-wrapper {
        grid-template-columns: 1fr;
    }
    
    .quote-v2-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(0, 102, 255, 0.06);
        padding: 30px;
    }
    
    .quote-v2-form-wrap {
        padding: 30px;
    }
    
    .quote-v2-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .sapcod-quote-v2 {
        padding: 80px 0;
    }
    
    .quote-v2-form-row {
        grid-template-columns: 1fr;
    }
    
    .quote-v2-title {
        font-size: 1.9rem;
    }
    
    .quote-v2-progress {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .quote-v2-step-line {
        width: 30px;
        margin: 0 8px;
    }
    
    .quote-v2-step-label {
        font-size: 0.7rem;
    }
    
    .quote-v2-form-nav {
        flex-direction: column;
    }
    
    .quote-v2-btn-back,
    .quote-v2-btn-next,
    .quote-v2-btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quote-v2-sidebar {
        padding: 22px 18px;
    }
    
    .quote-v2-form-wrap {
        padding: 22px 18px;
    }
    
    .quote-v2-step-label {
        display: none;
    }
    
    .quote-v2-step-line {
        width: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quote-v2-orb,
    .quote-v2-badge i {
        animation: none;
    }
}