/**
 * WhatsApp Widget & Calculator Styles
 */

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 100px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-widget__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    color: white;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-widget__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-widget__tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-widget__tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: #333;
}

.whatsapp-widget__btn:hover .whatsapp-widget__tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse-whatsapp {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6); }
}

/* Calculator Button */
.calculator-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color, #f97316), var(--secondary-color, #ea580c));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.calculator-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* Calculator Modal */
.calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.calculator-modal.active {
    display: flex;
}

.calculator-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.calculator-modal__content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calculator-modal__close:hover {
    background: #e5e7eb;
}

.calculator-modal__title {
    margin: 0 0 25px;
    font-size: 22px;
    color: #1f2937;
}

/* Calculator Form */
.calculator-form__group {
    margin-bottom: 20px;
}

.calculator-form__group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.calculator-form__group select,
.calculator-form__group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.calculator-form__group select:focus,
.calculator-form__group input:focus {
    outline: none;
    border-color: var(--primary-color, #f97316);
}

.calculator-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Calculator Result */
.calculator-result {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.calculator-result__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.calculator-result__row:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.calculator-result__row--small {
    font-size: 14px;
    color: #6b7280;
}

.calculator-result__price {
    font-size: 24px;
    color: var(--primary-color, #f97316);
}

/* Button styles */
.btn--full {
    width: 100%;
    justify-content: center;
}

/* Mobile */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 90px;
        right: 15px;
    }
    
    .whatsapp-widget__btn {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .calculator-btn {
        bottom: 20px;
        right: 15px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .calculator-modal__content {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .calculator-form__row {
        grid-template-columns: 1fr;
    }
}
