/* Quote Form Styles - Optimized for Elementor Integration */


/* ── Background radial glows matching hero ── */
.wizard-wrapper {
    position: relative;
    min-height: 100vh;
    padding: 48px 0 64px;
}

.wizard-wrapper::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.wizard-wrapper::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── Layout ── */
.fox-wizard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ── Glass card mixin ── */
.glass-card {
    background: white!important;
    border: 1px solid rgba(79, 70, 229, 0.22);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.35), transparent);
    pointer-events: none;
}

/* ── Wizard Header ── */
.wizard-header {
    grid-column: 1 / -1;
    padding: 32px;
    margin-bottom: 8px;
}

/* Hero-style badge */
.wizard-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #7C3AED;
    border: 1px solid rgba(79, 70, 229, 0.4);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 20px;
}

.wizard-badge .dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
}

.wizard-badge .badge-text {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.wizard-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f1629;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.wizard-title span {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wizard-subtitle {
    font-size: 16px;
    color: #0f1629;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 600px;
}

/* Hero-style feature tags in header */
.wizard-features {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 28px;
}

.wizard-feature-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f1629;
    font-size: 14px;
    font-weight: 500;
}

.wizard-feature-tag svg {
    width: 18px;
    height: 18px;
    color: #818cf8;
    flex-shrink: 0;
}

/* ── Progress ── */
.progress-container {}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0; right: 0;
    height: 2px;
    background: #9D64ED!important;
    z-index: 1;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #818cf8, #c084fc);
    z-index: 2;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.progress-step:hover {
    transform: translateY(-2px);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #b590f4;
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.progress-step.active .step-circle {
    border-color: #7C3AED;
    background: #7C3AED;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45);
}

.progress-step.completed .step-circle {
    border-color: #10b981;
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: #0f1629;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: #ffffff;
}

/* ── Step panels ── */
.wizard-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-panel {
    padding: 32px;
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 14px;
    color: #0f1629;
    margin-bottom: 28px;
}

/* ── Service grid ── */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.option-card {
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 16px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #818cf8, #c084fc);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.option-card:hover {
    border-color: rgba(129, 140, 248, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18);
    background: rgba(79, 70, 229, 0.07);
}

.option-card.selected {
    border-color: rgba(129, 140, 248, 0.6);
    background: rgba(79, 70, 229, 0.12);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

.option-card.selected::before {
    transform: scaleX(1);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.option-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #7C3AED;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.option-card.selected .option-radio {
    border-color: #818cf8;
}

.option-card.selected .option-radio::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
    from { transform: translate(-50%, -50%) scale(0); }
    to   { transform: translate(-50%, -50%) scale(1); }
}

.option-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f1629;
}

/* Hero-style badge pill */
.option-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(79, 70, 229, 0.4);
    border-radius: 100px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #818cf8;
    margin-left: auto;
    white-space: nowrap;
}

/* ── Package grid ── */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.package-card {
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #818cf8, #c084fc);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.package-card:hover {
    border-color: rgba(129, 140, 248, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.22);
    background: rgba(79, 70, 229, 0.08);
}

.package-card:hover::before {
    opacity: 1;
}

.package-card.selected {
    border-color: rgba(129, 140, 248, 0.6);
    background: rgba(79, 70, 229, 0.12);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.3);
}

.package-card.selected::before {
    opacity: 1;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.package-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f1629;
    letter-spacing: -0.02em;
}

.package-price-range {
    font-size: 16px;
    font-weight: 700;
    background: #7C3AED;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.budget-input-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.budget-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #0f1629;
    margin-bottom: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.budget-input {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    font-family: inherit;
}

.budget-input::placeholder {
    color: rgba(160, 165, 192, 0.4);
}

.budget-input:focus {
    outline: none;
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.12);
    background: rgba(79, 70, 229, 0.1);
}

.budget-input.error {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.07);
}

.budget-input::-webkit-inner-spin-button,
.budget-input::-webkit-outer-spin-button {
    opacity: 0.25;
}

.budget-hint {
    margin-top: 7px;
    font-size: 13px;
    color: #0f1629;
}

.budget-error {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    font-size: 13px;
    color: #f87171;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 8px;
}

.budget-error.show {
    display: flex;
}

.confirm-budget-btn {
    width: 100%;
    margin-top: 14px;
    padding: 11px;
    background: #7C3AED;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.confirm-budget-btn:not(:disabled) {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.35);
}

.confirm-budget-btn:not(:disabled):hover {
    background: rgba(16, 185, 129, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.confirm-budget-btn:disabled {
    cursor: not-allowed;
    transform: none;
}

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.features-grid::-webkit-scrollbar { width: 4px; }
.features-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 2px; }
.features-grid::-webkit-scrollbar-thumb { background: rgba(129, 140, 248, 0.3); border-radius: 2px; }

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(79, 70, 229, 0.15);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(129, 140, 248, 0.3);
    transform: translateX(4px);
}

.feature-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.feature-text {
    font-size: 14px;
    color: #0f1629;
    line-height: 1.55;
}

.feature-text strong {
    color: #ffffff;
}

/* ── Nav buttons — matching hero button styles exactly ── */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #7C3AED;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: inherit;
}

.btn-secondary:hover {
    border-color: rgba(129, 140, 248, 0.5);
    background: #7C3AED;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #7C3AED;
    color: white;
    border: none;
    font-family: inherit;
}

.btn-primary:hover {
    background: rgba(124, 58, 237, 0.82);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.4);
}

.btn:disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ── Sidebar summary ── */
.wizard-sidebar {
    position: sticky;
    top: 20px;
}

.summary-card {
    padding: 28px;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #818cf8, #c084fc, #10b981);
    pointer-events: none;
    z-index: 1;
}

/* override the glass-card ::after on summary */
.summary-card.glass-card::after {
    display: none;
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f1629;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.summary-empty {
    text-align: center;
    padding: 28px 16px;
    color: #0f1629;
    font-size: 14px;
}

.summary-empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-item-label {
    font-size: 13px;
    color: #0f1629;
    font-weight: 500;
}

.summary-item-value {
    font-size: 14px;
    color: #7C3AED;
    font-weight: 600;
    text-align: right;
    max-width: 160px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(129, 140, 248, 0.2);
}

.total-label {
    font-size: 14px;
    font-weight: 600;
    color: #0f1629;
}

.total-value {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.summary-actions {
    margin-top: 20px;
}

.btn-request {
    width: 100%;
    padding: 16px;
    background: #7C3AED;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-request:hover {
    background: rgba(124, 58, 237, 0.82);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.4);
}

.btn-request:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ── Validation error ── */
.validation-error {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #f87171;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.validation-error.show {
    display: flex;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Success ── */
.success-message {
    display: none;
    text-align: center;
    padding: 64px 40px;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.success-text {
    font-size: 16px;
    color: #0f1629;
    line-height: 1.6;
}

/* ── Mobile helpers ── */
.change-service-link {
    display: none;
    text-align: center;
    margin: 16px 0 8px;
}

.change-service-link a {
    color: #818cf8;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

#mobileSummaryPlaceholder .summary-card {
    width: 100%;
    margin-top: 0;
    box-sizing: border-box;
}

.wizard-header.hide-title-mobile .wizard-title,
.wizard-header.hide-title-mobile .wizard-subtitle,
.wizard-header.hide-title-mobile .wizard-badge,
.wizard-header.hide-title-mobile .wizard-features {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .fox-wizard-container {
        display: flex;
        flex-direction: column;
    }
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    .package-grid {
        grid-template-columns: 1fr;
    }
    .service-grid.hide-on-mobile {
        display: none;
    }
    .change-service-link.show {
        display: block;
    }
    .wizard-sidebar.hide-on-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .fox-wizard-container { padding: 0 20px; }
    .wizard-wrapper { padding: 24px 0 48px; }
    .wizard-title { font-size: 26px; }
    .wizard-features { gap: 18px; }
}

@media (max-width: 640px) {
    .fox-wizard-container { padding: 0 14px; }
    .wizard-header, .step-panel, .summary-card { padding: 20px; }
    .wizard-title { font-size: 22px; }
    .progress-steps {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .progress-steps::before,
    .progress-line { display: none; }
    .progress-step {
        flex-direction: row;
        gap: 12px;
    }
    .step-circle { margin-bottom: 0; }
    .service-grid, .features-grid { grid-template-columns: 1fr; }
    .features-grid { max-height: none; }
    .nav-buttons { flex-direction: column; }
    .btn-secondary, .btn-primary, .btn-request {
        width: 100%;
        justify-content: center;
    }
}
