/* Apply styles only to elements inside the plugin */
.insurance-estimate-plugin body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f9fa;
    margin: 0;
}

/* Card styles specific to the plugin */
.insurance-estimate-plugin .insurance-card {
    width: 400px;
    background: white;
    padding: 20px 20px 20px 20px;
    margin: 40px 0px 0px 5px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.insurance-estimate-plugin .insurance-title {
    font-size: 20px;
    font-weight: bold;
}

.insurance-estimate-plugin .insurance-price {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
}

.insurance-estimate-plugin .insurance-offers {
    color: gray;
    font-size: 14px;
    margin-bottom: 10px;
}

.insurance-estimate-plugin .insurance-benefits {
    text-align: left;
    margin-left: 20px;
}

/* Ensure gauge container does not break layouts */
.insurance-estimate-plugin .insurance-gauge-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 20px auto;
}

/* Needle styles */
.insurance-estimate-plugin .insurance-needle {
    position: absolute;
    width: 23px;
    height: 60px;
    background: #505050;
    left: 45%;
    bottom: 64px;
    transform-origin: bottom center;
    transition: transform 12s ease-in-out;
    clip-path: polygon(50% 0%, 80% 100%, 20% 100%);
}

/* Needle center styles */
.insurance-estimate-plugin .insurance-needle-center {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
    border: 3px solid #787878;
    background-color: #9b9b9b;
}

/* Positioning the text labels inside the chart */
.insurance-estimate-plugin .insurance-gauge-label {
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-align: center;
    width: 60px;
    top: 50%;
    left: 50%;
    transform-origin: center;
    transform: translate(-50%, -50%);
}

/* Adjusted positions for text labels around the circle */
.insurance-estimate-plugin .insurance-low {
    top: 54%;
    left: 13%;
    transform: translateX(-50%) rotate(-63deg);
}

.insurance-estimate-plugin .insurance-great {
    top: 32%;
    left: 35%;
    transform: translateX(-50%) rotate(-26deg);
}

.insurance-estimate-plugin .insurance-fair {
    top: 33%;
    left: 66%;
    transform: translateX(-50%) rotate(15deg);
}

.insurance-estimate-plugin .insurance-high {
    top: 56%;
    left: 90%;
    transform: translateX(-50%) rotate(62deg);
}

/* Button styling */
.insurance-estimate-plugin .insurance-button {
    display: block;
    background: #007bff;
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: -20px;
}

.insurance-estimate-plugin .insurance-button:hover {
    background: #0056b3;
}

/* Styling for the Calculate text */
.insurance-estimate-plugin .insurance-calculate-text {
    position: absolute;
    font-size: 16px;
    font-weight: bold;
    color: #aeaeae;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
}
