.elementor-7615 .elementor-element.elementor-element-7fa36fb{--display:flex;}/* Start custom CSS for html, class: .elementor-element-5f0a1eb *//* ========================================
   CALCOLATORE pH PISCINA - STILI
   ======================================== */

.ph-calculator-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 20px;
}

.ph-calculator {
    background: linear-gradient(135deg, #f8fdff 0%, #e8f4f8 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 123, 191, 0.1);
    border: 1px solid rgba(0, 123, 191, 0.1);
}

.ph-calculator h3 {
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calc-icon {
    font-size: 28px;
}

.calculator-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-group input,
.input-group select {
    padding: 12px 16px;
    border: 2px solid #e1ecf4;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.input-group small {
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.toggle-volume-calc {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.toggle-volume-calc:hover {
    color: #0056b3;
}

.calculate-button {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calculate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.calculate-button:active {
    transform: translateY(0);
}

.calculate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 20px;
}

/* Volume Calculator */
.volume-calculator {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid #e1ecf4;
}

.volume-calculator h4 {
    color: #2c5aa0;
    margin-bottom: 15px;
    text-align: center;
}

.pool-type-.elementor-7615 .elementor-element.elementor-element-5f0a1eb {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.pool-type {
    padding: 8px 16px;
    border: 2px solid #e1ecf4;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pool-type.active,
.pool-type:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.volume-inputs {
    margin-bottom: 15px;
}

.input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.input-row input {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    border: 2px solid #e1ecf4;
    border-radius: 6px;
    font-size: 14px;
}

.input-row input:focus {
    outline: none;
    border-color: #007bff;
}

.calc-volume-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.calc-volume-button:hover {
    background: #218838;
}

/* Results Section */
.results-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card,
.instructions-card,
.product-suggestion {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007bff;
}

.result-card h4,
.instructions-card h4 {
    color: #2c5aa0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-result {
    text-align: center;
    margin-bottom: 20px;
}

.dose-amount {
    font-size: 36px;
    font-weight: 700;
    color: #007bff;
    display: block;
}

.dose-unit {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dosage-details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #eee;
    padding-bottom: 5px;
}

.dosage-steps {
    margin: 0;
    padding-left: 20px;
}

.dosage-steps li {
    margin: 10px 0;
    line-height: 1.5;
}

.safety-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #856404;
}

.warning-icon {
    font-size: 20px;
}

.product-suggestion {
    border-left-color: #28a745;
    text-align: center;
}

.suggested-product {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.product-size {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 5px;
}

.product-duration {
    font-size: 14px;
    color: #666;
}

.order-button {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #f5c6cb;
}

.error-icon {
    font-size: 20px;
}

/* Animation for results */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section {
    animation: slideIn 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ph-calculator {
        padding: 20px;
        margin: 0 10px;
    }
    
    .ph-calculator h3 {
        font-size: 20px;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .input-row input {
        min-width: 100%;
    }
    
    .pool-type-.elementor-7615 .elementor-element.elementor-element-5f0a1eb {
        flex-direction: column;
    }
    
    .dosage-details p {
        flex-direction: column;
        gap: 5px;
    }
    
    .dose-amount {
        font-size: 28px;
    }
}

/* Input validation states */
.input-group input.valid {
    border-color: #28a745;
}

.input-group input.warning {
    border-color: #ffc107;
}

.input-group input.error {
    border-color: #dc3545;
}/* End custom CSS */