.terpene-calculator {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    border: none;
    border-radius: 12px;
    background-color: #fdfdfd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.single-product .terpene-calculator{
	margin: 0px;
}

.terpene-calculator h2, .terpene-calculator h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}
.single-product .terpene-calculator h2{
	display: none;
}

.terpene-calculator form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.terpene-calculator label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.terpene-calculator input[type="number"],
.terpene-calculator select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.terpene-calculator input[type="number"]:focus,
.terpene-calculator select:focus {
    border-color: #66afe9;
    outline: none;
}

.terpene-calculator button#calculate-button {
    width: 100%;
    padding: 12px;
    background-color: #54e15d;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.terpene-calculator button#calculate-button:hover {
    background-color: #218838;
}

#results {
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid #ddd;
    background-color: #fafafa;
}

#results h3 {
    margin-bottom: 15px;
    color: #333;
}

#results p {
    margin: 8px 0;
    color: #555;
    font-size: 16px;
}

.error-messages {
	display:none;
    margin-bottom: 20px;
    padding: 10px 15px;
    border: 1px solid #e74c3c;
    background-color: #fdecea;
    color: #c0392b;
    border-radius: 4px;
}

.error-messages ul {
    margin: 0;
    padding-left: 20px;
}

.terpene-calculator .tooltip {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    margin-left: 5px;
    background-color: #6c757d;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    cursor: pointer !important;
	opacity: 1 !important;
	pointer-events: all !important;
}

.terpene-calculator .tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.terpene-calculator .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the tooltip */
    left: 50%;
    margin-left: -100px;
    transition: opacity 0.3s;
}

.terpene-calculator .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

#custom-density-terpene,
#custom-density-diluent {
    margin-top: 10px;
}

/* Additional Styles for the Email and Phone Submission Form */

/* Style for the additional form container */
#terpene-results-form {
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid #ddd;
    background-color: #fafafa;
}

/* Header for the submission form */
#terpene-results-form h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

/* Form groups within the submission form */
#terpene-results-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Labels within the submission form */
#terpene-results-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

/* Input fields within the submission form */
#terpene-results-form input[type="email"],
#terpene-results-form input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

#terpene-results-form input[type="email"]:focus,
#terpene-results-form input[type="tel"]:focus {
    border-color: #66afe9;
    outline: none;
}

/* Checkbox within the submission form */
#terpene-results-form input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}

/* Label for the checkbox to align text properly */
#terpene-results-form label[for="subscribe-newsletter"] {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #555;
}

/* Error messages for the submission form */
.submission-error-messages {
    display: none; /* Initially hidden */
    margin-bottom: 20px;
    padding: 10px 15px;
    border: 1px solid #e74c3c;
    background-color: #fdecea;
    color: #c0392b;
    border-radius: 4px;
}

.submission-error-messages ul {
    margin: 0;
    padding-left: 20px;
}

/* Success message for the submission form */
.submission-success-message {
    display: none; /* Initially hidden */
    margin-bottom: 20px;
    padding: 10px 15px;
    border: 1px solid #2ecc71;
    background-color: #eafaf1;
    color: #27ae60;
    border-radius: 4px;
}

/* Style for the submit button in the submission form */
#terpene-results-form button#submit-results-button {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#terpene-results-form button#submit-results-button:hover {
    background-color: #28a745;
}

/* Tooltip adjustments (if necessary) */
/* Ensures tooltips appear above all other elements */
.terpene-calculator .tooltip-text {
    z-index: 10;
}

/* Responsive Adjustments for the Submission Form */

/* Ensure the submission form looks good on smaller screens */
@media (max-width: 600px) {
    #terpene-results-form {
        padding: 15px;
    }
    
    #terpene-results-form h3 {
        font-size: 16px;
    }
    
    #terpene-results-form .form-group {
        margin-bottom: 15px;
    }
    
    #terpene-results-form input[type="email"],
    #terpene-results-form input[type="tel"] {
        padding: 8px 10px;
    }
    
    #terpene-results-form button#submit-results-button {
        padding: 10px;
        font-size: 14px;
    }
}