/**
 * AI Calculator Styles
 * WebPino Softwares
 */

/* ============================================
   AI CALCULATOR HERO
   ============================================ */
.ai-calc-hero {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 50%, #C4B5FD 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
}

.ai-calc-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ai-calc-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.ai-calc-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ============================================
   MAIN CALCULATOR SECTION
   ============================================ */
.ai-calculator-section {
    padding: 60px 0;
    background: #f8fafc;
}

.ai-calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .ai-calc-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ai-calc-preview-panel {
        order: -1;
    }
}

/* ============================================
   FORM PANEL
   ============================================ */
.ai-calc-form-panel {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 40px;
}

/* Steps Indicator */
.ai-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.ai-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ai-step-dot .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ai-step-dot .step-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.ai-step-dot.active .step-num {
    background: #7C3AED;
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.ai-step-dot.active .step-label {
    color: #7C3AED;
    font-weight: 600;
}

.ai-step-dot.completed .step-num {
    background: #10B981;
    color: white;
}

.ai-step-line {
    width: 60px;
    height: 3px;
    background: #e5e7eb;
    margin: 0 10px;
    margin-bottom: 20px;
}

/* Calculator Steps */
.ai-calc-step {
    display: none;
}

.ai-calc-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.ai-calc-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-calc-step h3 i {
    color: #7C3AED;
}

.step-desc {
    color: #6b7280;
    margin-bottom: 30px;
}

/* ============================================
   PROJECT TYPE CARDS
   ============================================ */
.project-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .project-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .project-type-grid {
        grid-template-columns: 1fr;
    }
}

.project-type-card {
    position: relative;
    cursor: pointer;
}

.project-type-card input {
    position: absolute;
    opacity: 0;
}

.project-type-card .card-content {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.project-type-card:hover .card-content {
    border-color: #7C3AED;
    transform: translateY(-3px);
}

.project-type-card.selected .card-content {
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
    border-color: #7C3AED;
    color: white;
}

.project-type-card .card-content i {
    font-size: 2rem;
    color: #7C3AED;
    margin-bottom: 12px;
    display: block;
}

.project-type-card.selected .card-content i {
    color: white;
}

.project-type-card .card-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-type-card .card-content .price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 4px;
}

.project-type-card.selected .card-content .price {
    color: #A7F3D0;
}

.project-type-card .card-content .delivery {
    font-size: 12px;
    color: #9ca3af;
}

.project-type-card.selected .card-content .delivery {
    color: rgba(255,255,255,0.8);
}

/* What's Included Section */
.project-type-card .card-includes {
    display: none;
    padding: 15px;
    background: #f0fdf4;
    border-top: 1px dashed #22c55e;
    text-align: left;
}

.project-type-card.selected .card-includes {
    display: block;
}

.card-includes .includes-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 10px;
}

.card-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-includes ul li {
    font-size: 11px;
    color: #166534;
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.card-includes ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
    font-size: 10px;
}

/* Adjust card height when selected */
.project-type-card.selected {
    grid-row: span 2;
}

@media (max-width: 768px) {
    .project-type-card.selected {
        grid-row: auto;
    }
}

/* ============================================
   FEATURES ACCORDION
   ============================================ */
.features-accordion {
    margin-bottom: 30px;
}

.feature-group {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.feature-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.feature-group-header:hover {
    background: #f1f5f9;
}

.feature-group-header i:first-child {
    color: #7C3AED;
    font-size: 1.1rem;
}

.feature-group-header span {
    flex: 1;
    font-weight: 600;
    color: #374151;
}

.feature-group-header .toggle-icon {
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.feature-group.open .toggle-icon {
    transform: rotate(180deg);
}

.feature-group-content {
    display: none;
    padding: 15px 20px;
    background: white;
}

.feature-group.open .feature-group-content {
    display: block;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: #f1f5f9;
}

.feature-item input {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: #7C3AED;
}

.feature-item .feature-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

.feature-item .feature-price {
    font-size: 13px;
    font-weight: 600;
    color: #10B981;
}

/* Advanced/Premium Feature Styling */
.feature-item.advanced-feature {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    position: relative;
}

.feature-item.advanced-feature::before {
    content: '⭐';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f59e0b;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 10px;
}

.feature-item.advanced-feature:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}

.feature-item.advanced-feature .feature-name {
    color: #92400e;
    font-weight: 600;
}

.feature-item.advanced-feature .feature-price {
    color: #b45309;
    font-weight: 700;
}

/* Feature Package Info */
.feature-package-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px dashed #3b82f6;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 12px;
}

.feature-package-info .package-badge {
    display: inline-block;
    background: #3b82f6;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 5px;
}

.feature-package-info p {
    margin: 0;
    font-size: 13px;
    color: #1e40af;
}

.feature-package-info.addon-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    margin-top: 20px;
}

.feature-package-info .addon-badge {
    background: #f59e0b;
}

.feature-package-info.addon-info p {
    color: #92400e;
}

/* Package Item with details */
.feature-item.package-item {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #3b82f6;
    flex-wrap: wrap;
}

.feature-item .feature-details {
    flex: 1;
}

.feature-item .feature-details .feature-name {
    display: block;
    font-weight: 600;
    color: #1e40af;
}

.feature-item .feature-includes {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

/* Addon Feature Styling */
.feature-item.addon-feature {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
}

.feature-item.addon-feature:hover {
    background: #fef3c7;
}

.feature-item.addon-feature .feature-name {
    color: #92400e;
}

.feature-item.addon-feature .feature-price {
    color: #d97706;
    font-weight: 600;
}

/* ============================================
   CUSTOM REQUIREMENTS
   ============================================ */
.custom-requirements {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.custom-requirements h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-requirements h4 i {
    color: #7C3AED;
}

.custom-requirements textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.custom-requirements textarea:focus {
    outline: none;
    border-color: #7C3AED;
}

/* ============================================
   OPTIONS GRID
   ============================================ */
.options-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.option-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
}

.option-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-card h4 i {
    color: #7C3AED;
}

.urgency-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .urgency-options {
        grid-template-columns: 1fr;
    }
}

.urgency-option {
    position: relative;
    cursor: pointer;
}

.urgency-option input {
    position: absolute;
    opacity: 0;
}

.urgency-option .option-content {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.urgency-option:hover .option-content {
    border-color: #7C3AED;
}

.urgency-option.selected .option-content {
    border-color: #7C3AED;
    background: #F5F3FF;
}

.option-content .option-title {
    display: block;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.option-content .option-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.option-content .option-price {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #7C3AED;
}

.support-select {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.support-select:focus {
    outline: none;
    border-color: #7C3AED;
}

/* ============================================
   TECH STACK OPTIONS
   ============================================ */
.tech-stack-card {
    grid-column: 1 / -1;
}

.tech-stack-card .option-note {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 15px;
}

.tech-stack-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .tech-stack-options {
        grid-template-columns: 1fr;
    }
}

.tech-stack-option {
    position: relative;
    cursor: pointer;
}

.tech-stack-option input {
    position: absolute;
    opacity: 0;
}

.tech-stack-option .tech-content {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tech-stack-option:hover .tech-content {
    border-color: #7C3AED;
    transform: translateY(-2px);
}

.tech-stack-option.selected .tech-content {
    border-color: #7C3AED;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.15);
}

.tech-content .tech-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 24px;
}

.tech-content .tech-icons i {
    color: #6b7280;
}

.tech-stack-option.selected .tech-icons i {
    color: #7C3AED;
}

.tech-content .tech-icons .flutter-icon,
.tech-content .tech-icons .mongo-icon {
    font-size: 20px;
}

.tech-content .tech-title {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 5px;
}

.tech-content .tech-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.tech-content .tech-price {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.tech-content .tech-price.default-price {
    background: #dcfce7;
    color: #15803d;
}

.tech-content .tech-price.premium-price {
    background: #fef3c7;
    color: #b45309;
}

.tech-stack-option.selected .tech-price.premium-price {
    background: #7C3AED;
    color: white;
}

/* ============================================
   CONTACT DETAILS
   ============================================ */
.contact-details-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.contact-details-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details-card h4 i {
    color: #7C3AED;
}

.contact-details-card > p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 15px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-grid input {
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contact-form-grid input:focus {
    outline: none;
    border-color: #7C3AED;
}

/* ============================================
   STEP ACTIONS
   ============================================ */
.step-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.step-actions .btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
    color: white;
}

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

.btn-secondary {
    background: #f1f5f9;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-success {
    background: #10B981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn-link {
    background: transparent;
    color: #7C3AED;
    padding: 10px 15px;
}

.btn-link:hover {
    background: #F5F3FF;
}

/* ============================================
   AI QUOTE RESULT
   ============================================ */
.ai-quote-result {
    margin-bottom: 30px;
}

.quote-price-card {
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    margin-bottom: 25px;
}

.price-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.price-label {
    font-size: 14px;
    opacity: 0.9;
}

.main-price {
    font-size: 3rem;
    font-weight: 800;
    margin: 10px 0;
}

.price-note {
    font-size: 12px;
    opacity: 0.7;
}

.price-breakdown {
    margin-bottom: 20px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

.breakdown-row.urgency {
    color: #FCD34D;
}

.delivery-info {
    text-align: center;
}

.delivery-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
}

/* AI Summary Card */
.ai-summary-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.summary-header {
    margin-bottom: 20px;
}

.summary-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-header h4 i {
    color: #7C3AED;
}

.ai-loading {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px;
    justify-content: center;
    color: #6b7280;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e5e7eb;
    border-top-color: #7C3AED;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.summary-content {
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
}

.summary-content p {
    margin-bottom: 12px;
}

/* AI Summary Section Headers */
.summary-content strong {
    color: #1f2937;
    font-weight: 600;
}

/* Emoji headers styling */
.ai-summary-formatted .emoji-header,
.summary-content p strong:first-child {
    display: block;
    font-size: 1rem;
    color: #7C3AED;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3e8ff;
}

/* AI Summary Formatted */
.ai-summary-formatted {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #7C3AED;
}

.ai-summary-formatted p {
    margin: 0 0 10px;
    color: #374151;
}

.ai-summary-formatted .summary-heading {
    color: #7C3AED;
    font-size: 1rem;
    font-weight: 700;
    margin: 22px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3e8ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-summary-formatted .summary-heading.emoji-header {
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    padding: 12px 15px;
    border-radius: 8px;
    border-bottom: none;
    border-left: 4px solid #7C3AED;
}

.ai-summary-formatted .summary-heading:first-child {
    margin-top: 0;
}

.ai-summary-formatted .summary-list {
    margin: 10px 0;
    padding-left: 0;
    list-style: none;
}

.ai-summary-formatted .summary-list.numbered-list {
    counter-reset: step-counter;
    padding-left: 10px;
}

.ai-summary-formatted .summary-list.numbered-list li {
    counter-increment: step-counter;
    padding-left: 35px;
}

.ai-summary-formatted .summary-list.numbered-list li::before {
    content: counter(step-counter);
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.ai-summary-formatted .summary-list li {
    padding: 6px 0 6px 22px;
    position: relative;
    font-size: 13px;
    color: #4b5563;
}

.ai-summary-formatted .summary-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.ai-summary-formatted strong {
    color: #1f2937;
}

.summary-content h3, .summary-content h4 {
    color: #1f2937;
    margin-top: 20px;
    margin-bottom: 10px;
}

.summary-content ul, .summary-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.summary-content li {
    margin-bottom: 8px;
}

.local-summary h4 {
    color: #7C3AED;
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.local-summary ul {
    list-style: none;
    padding: 0;
}

.local-summary li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.local-summary li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
}

/* AI Recommendations */
.ai-recommendations-card {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.ai-recommendations-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #92400E;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-section {
    margin-bottom: 15px;
}

.recommendation-section h5 {
    font-size: 14px;
    color: #B45309;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-section ul {
    margin: 0;
    padding-left: 20px;
}

.recommendation-section li {
    font-size: 13px;
    color: #78350F;
    margin-bottom: 5px;
}

.recommendation-section p {
    font-size: 13px;
    color: #78350F;
}

/* Final Actions */
.final-actions {
    flex-wrap: wrap;
    justify-content: center;
}

.quote-actions-secondary {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================
   PREVIEW PANEL
   ============================================ */
.ai-calc-preview-panel {
    position: relative;
}

.preview-sticky {
    position: sticky;
    top: 100px;
}

.preview-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 15px;
}

.preview-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-card h4 i {
    color: #7C3AED;
}

.preview-project-type {
    background: #F5F3FF;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.preview-project-type .label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.preview-project-type .value {
    font-size: 1rem;
    font-weight: 600;
    color: #7C3AED;
}

.preview-breakdown {
    margin-bottom: 20px;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #6b7280;
    border-bottom: 1px solid #f1f5f9;
}

.preview-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    border-top: 2px solid #7C3AED;
    margin-top: 10px;
}

.preview-delivery {
    background: #F0FDF4;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #166534;
    margin-bottom: 20px;
}

.preview-delivery i {
    color: #10B981;
}

.preview-features-list h5 {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.feature-tag {
    display: inline-block;
    background: #F5F3FF;
    color: #7C3AED;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin: 3px;
}

.preview-cta {
    text-align: center;
}

.btn-whatsapp-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp-mini:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* ============================================
   TRUST SECTION
   ============================================ */
.ai-calc-trust {
    background: #1f2937;
    padding: 30px 0;
}

.trust-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.trust-item i {
    color: #10B981;
    font-size: 1.2rem;
}

/* ============================================
   OTP MODAL STYLES
   ============================================ */
.otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.otp-modal-overlay.active {
    display: flex;
}

.otp-modal {
    background: white;
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    padding: 40px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.otp-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
}

.otp-modal-close:hover {
    color: #374151;
}

.otp-step {
    text-align: center;
}

.otp-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.otp-icon i {
    font-size: 36px;
    color: white;
}

.otp-icon.success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.otp-icon.warning {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
}

.otp-modal h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.otp-desc {
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.5;
}

.otp-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #0369a1;
}

.otp-info-box i {
    color: #0ea5e9;
}

.otp-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

.otp-input-group:focus-within {
    border-color: #7C3AED;
}

.country-code {
    background: #f3f4f6;
    padding: 14px 16px;
    font-weight: 600;
    color: #374151;
    border-right: 2px solid #e5e7eb;
}

.otp-input-group input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 16px;
    outline: none;
    letter-spacing: 1px;
}

.otp-code-input {
    margin-bottom: 15px;
}

.otp-code-input input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 8px;
    padding: 16px 20px;
}

.otp-error {
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 15px;
    min-height: 20px;
}

.btn-otp-send,
.btn-otp-verify {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 12px;
}

.btn-otp-send:disabled,
.btn-otp-verify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* OTP Modal Divider */
.otp-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.otp-divider::before,
.otp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.otp-divider span {
    padding: 0 15px;
}

/* WhatsApp Quote Button in OTP Modal */
.btn-whatsapp-quote {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-quote i {
    font-size: 20px;
}

.whatsapp-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
    text-align: center;
}

.otp-timer {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.otp-timer i {
    color: #7C3AED;
}

.otp-resend {
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
}

.otp-resend .btn-link {
    background: none;
    border: none;
    color: #7C3AED;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    margin-left: 5px;
}

.otp-resend .btn-link:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.btn-change-number {
    display: block;
    margin: 15px auto 0;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
}

.btn-change-number:hover {
    color: #7C3AED;
}

.limit-info {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #92400e;
}

.limit-info i {
    color: #f59e0b;
    font-size: 18px;
}

.otp-modal .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s;
}

.otp-modal .btn-whatsapp:hover {
    background: #128C7E;
}

.otp-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 20px;
}

.otp-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #7C3AED;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.otp-loading span {
    color: #6b7280;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .ai-calc-hero {
        padding: 60px 0 40px;
    }
    
    .ai-calc-hero h1 {
        font-size: 2rem;
    }
    
    .ai-calc-form-panel {
        padding: 25px;
    }
    
    .ai-steps-indicator {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .ai-step-line {
        display: none;
    }
    
    .ai-step-dot {
        flex: 1;
        min-width: 70px;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .step-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .main-price {
        font-size: 2.2rem;
    }

    /* OTP Modal Mobile */
    .otp-modal {
        padding: 30px 25px;
    }
}
