/* --- General & Animations --- */
.herbalicious-view { transition: opacity 0.3s ease-in-out; }
.herbalicious-form-step { animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Floating Button (Moved to Right) --- */
#herbalicious-floating-button {
    position: fixed;
    right: 20px; /* Changed from left to right */
    bottom: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    z-index: 9998;
    transition: all 0.3s ease;
}
#herbalicious-floating-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* --- Modal Redesign --- */
#herbalicious-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.herbalicious-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}
.herbalicious-modal-content {
    position: relative;
    background: #f7f8fc;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    padding: 25px 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: 85vh;
    overflow-y: auto;
    border-top: 5px solid #4CAF50;
}
#herbalicious-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

/* --- Form Steps & Inputs --- */
.herbalicious-form-step { display: none; }
.herbalicious-form-step.active { display: block; }
.herbalicious-form-step h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.herbalicious-form-step p { margin-bottom: 25px; color: #666; font-size: 15px; }
.herbalicious-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* --- Buttons --- */
.herbalicious-btn, .herbalicious-btn-secondary {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.herbalicious-btn { background-color: #4CAF50; color: white; }
.herbalicious-btn:hover { background-color: #45a049; }
.herbalicious-nav-btns { display: flex; gap: 10px; margin-top: 20px; }
.herbalicious-btn-secondary { background: #e9e9e9; color: #555; border: 1px solid #ccc; }
.herbalicious-btn-secondary:hover { background: #ddd; }

/* --- Loader & Error --- */
#herbalicious-loader, #herbalicious-error-message { text-align: center; padding: 40px 0; }
.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #4CAF50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 40px auto 20px;
}
#herbalicious-error-message {
    color: #c0392b;
    font-weight: 500;
    background-color: #fdd;
    border: 1px solid #c0392b;
    border-radius: 8px;
}

/* --- Results Redesign --- */
.results-header { text-align: center; margin-bottom: 25px; }
.results-header h3 { font-size: 24px; margin: 0; color: #2c3e50; }
#herbalicious-results-cards { min-height: 320px; }
.product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    padding: 20px;
    display: none;
    grid-template-columns: 1fr 220px;
    gap: 25px;
    align-items: center;
    animation: fadeIn 0.5s;
}
.product-card.active { display: grid; }
@media (max-width: 600px) {
    #herbalicious-results-cards { min-height: 450px; }
    .product-card { grid-template-columns: 1fr; }
}
.spec-details h4 { margin: 0 0 12px; font-size: 20px; color: #4CAF50; font-weight: 600; }
.spec-details p { margin: 6px 0; font-size: 14px; color: #34495e; }
.spec-details p strong { color: #2c3e50; font-weight: 500; }
.spec-price { margin-top: 15px; font-size: 18px; font-weight: bold; color: #27ae60; }
.chart-container { min-height: 180px; }
.chart-container canvas { max-width: 100%; height: auto; }

/* --- Pagination Styling --- */
#herbalicious-pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    user-select: none;
}
.pagination-btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.pagination-btn:hover { background: #45a049; }
.pagination-btn:disabled { background: #ccc; cursor: not-allowed; }
.pagination-status { font-size: 14px; color: #555; font-weight: 500; }
.results-footer { text-align: center; margin-top: 20px; }
#herbalicious-start-over-btn { display: inline-block; width: auto; padding: 12px 30px; }

/* --- (NEW) Sales Contact Buttons --- */
.spec-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sales-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 8px;
    padding: 10px 12px;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff !important;
}
.sales-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.sales-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.sales-whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
}
.sales-whatsapp-btn:hover {
    background-color: #1DAE52;
}