/**
 * Calculator Prompt Modal - Styling
 * Modal för att fråga PRO+ användare om Verktygsväskan innan offert
 */

/* ==================== OVERLAY ==================== */

.calculator-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    padding: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== MODAL ==================== */

.calculator-prompt-modal {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

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

/* ==================== CLOSE BUTTON ==================== */

.prompt-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
    font-size: 1.1rem;
}

.prompt-close-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

/* ==================== HEADER ==================== */

.prompt-header {
    text-align: center;
    margin-bottom: 2rem;
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease-out 0.2s backwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.prompt-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.project-meta {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* ==================== DIVIDER ==================== */

.prompt-divider {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}

/* ==================== BODY ==================== */

.prompt-body {
    margin-bottom: 2rem;
}

.prompt-body > h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
}

/* ==================== CHOICE CARDS ==================== */

.choice-card {
    width: 100%;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.choice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.choice-card.recommended {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.choice-card.recommended:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

/* ==================== CHOICE BADGE ==================== */

.choice-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== CHOICE HEADER ==================== */

.choice-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.choice-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.choice-content {
    flex: 1;
}

.choice-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.choice-content p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.choice-arrow {
    font-size: 1.25rem;
    color: #9ca3af;
    flex-shrink: 0;
    transition: all 0.3s;
}

.choice-card:hover .choice-arrow {
    color: #6b7280;
    transform: translateX(4px);
}

/* ==================== CHOICE BENEFITS ==================== */

.choice-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.choice-benefits li {
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.choice-benefits li i {
    color: #10b981;
    font-size: 0.85rem;
}

/* ==================== SUGGESTED CALC ==================== */

.suggested-calc {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.suggested-calc i {
    color: #fbbf24;
    font-size: 1rem;
}

/* ==================== FOOTER ==================== */

.prompt-footer {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.prompt-footer i {
    color: #0ea5e9;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.prompt-footer small {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .calculator-prompt-modal {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        max-height: 95vh;
    }

    .prompt-header h2 {
        font-size: 1.5rem;
    }

    .project-icon {
        font-size: 2.5rem;
    }

    .choice-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .choice-arrow {
        display: none;
    }

    .choice-icon {
        font-size: 1.75rem;
    }

    .choice-content h4 {
        font-size: 1rem;
    }

    .choice-content p {
        font-size: 0.875rem;
    }

    .choice-benefits {
        font-size: 0.85rem;
    }

    .suggested-calc {
        font-size: 0.85rem;
        padding: 0.625rem;
    }
}

@media (max-width: 480px) {
    .calculator-prompt-overlay {
        padding: 0.5rem;
    }

    .calculator-prompt-modal {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .prompt-close-btn {
        top: 1rem;
        right: 1rem;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .prompt-header h2 {
        font-size: 1.35rem;
    }

    .project-icon {
        font-size: 2.25rem;
    }

    .prompt-body > h3 {
        font-size: 1.1rem;
    }

    .choice-card {
        padding: 1.25rem;
    }

    .choice-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* ==================== ACCESSIBILITY ==================== */

.choice-card:focus-visible {
    outline: 3px solid #0ea5e9;
    outline-offset: 2px;
}

.prompt-close-btn:focus-visible {
    outline: 3px solid #0ea5e9;
    outline-offset: 2px;
}

/* ==================== SMOOTH SCROLLBAR ==================== */

.calculator-prompt-modal::-webkit-scrollbar {
    width: 8px;
}

.calculator-prompt-modal::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.calculator-prompt-modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.calculator-prompt-modal::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
