/* aioifckg-styles.css */

/* Container Styles */
.aioifckg-calculator-container {
    max-width: 100%;
    margin: auto;
    padding: 3rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    font-weight: 400;
    font-variation-settings: 'wght' 400;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3.5rem;
}
.aioifckg-calculator-container *{
    scroll-margin-top: 0 !important;
}

@media screen and (max-width: 767px) {
    .aioifckg-calculator-container {
        font-size: 1.2rem;
        border: none;
        box-shadow: none;
        padding: 1rem;
    }
}

/* Form Styles */
.aioifckg-calculator-container form {
    width: 100%;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 300px;
    flex-grow: 1;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}

.aioifckg-calculator-container form .form-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
    justify-content: space-between;
    margin-bottom: 15px;
    max-width: 45ch;
    width: 100%;
}

.aioifckg-calculator-container .form-group.crorepatti-readonly{
    padding: 1rem;
    background: #f2f2f2;
    border: 1px solid maroon;
    border-radius: 0.5rem;
    color: maroon;
}

.crorepatti-readonly label{
    color: maroon;
}

.aioifckg-calculator-container form label {
    width: 60%;
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #494537;
}

.aioifckg-calculator-container form input[type="number"] {
    width: 100%;
    max-width: 150px;
    background: #f2f2f2;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.aioifckg-calculator-container form input[type="range"] {
    width: 100%;
}

.aioifckg-calculator-container form button {
    max-width: 250px;
    padding: 12px 20px;
    background-color: #36A2EB;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

.aioifckg-calculator-container form button.remove-goal-button{
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aioifckg-calculator-container form button:hover {
    background-color: #2b8ac6;
}

.additional-premium-group {
    display: block;
    width: 100%;
}

.goal-group{
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 0.5rem;
}

/* Result Styles */
.aioifckg-calculator-result {
    flex-direction: column;
    flex-grow: 1;
    width: calc(50% - 2rem);
}

.aioifckg-calculator-chart{
    display: flex;
    width: 100%;
}

.aioifckg-calculator-result h2 {
    margin-bottom: 20px;
    font-size: 3.5rem;
    color: #333;
    font-weight: 400;
    font-variation-settings: 'wght' 400;
}

.aioifckg-calculator-result p {
    margin-bottom: 10px;
    color: #555;
}

.chart--container {
    width: 100%;
    max-width: 90vw;
    flex-grow: 1;
    min-width: 200px;
    display: flex;
    flex-direction: row;
    align-self: center;
    max-height: 300px;
}



.chart--container canvas {
    margin: 20px 0;
    max-width: 50%;
    height: 300px;
}

@media (max-width: 998px) {
    .chart--container {
        width: 100%;
        max-width: 90vw;
        flex-grow: 1;
        min-width: 200px;
        display: flex;
        flex-direction: column;
        align-self: center;
        max-height: 100%;
    }
    .chart--container canvas {
        margin: 20px 0;
        max-width: 100%;
        height: 300px;
    }
}

/* Result Container */
.aioifckg-result--container {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding: 2rem;
    align-items: center;
    justify-content: flex-start;
    background: #f2f2f2;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    break-inside: avoid;
    break-after: auto;
    break-before: auto;
}

.aioifckg-result-table h3{
    margin-bottom: 20px;
    font-size: 3.5rem;
    color: #333;
    font-weight: 400;
    font-variation-settings: 'wght' 400;
}

.aioifckg-num-to-words{
    text-transform: capitalize;
    width: 100%;
    font-weight: 600;
    font-variation-settings: 'wght' 600;
    letter-spacing: 0.3px;
}

.aioifckg-result--container p span {
    font-size: 1.6rem;
    letter-spacing: 0.3px;
    font-weight: 600;
    font-variation-settings: 'wght' 600;
}

/* Result Table Style */
.aioifckg-result-table{
    width: 100%;
    border-collapse: collapse;
    height: auto;
    overflow: auto;
    flex-direction: column;
}
@media print {
    .aioifckg-result-table{
        height: auto !important;
    }
    
}

/* Breakup Table Styles */
.aioifckg-breakup-table {
    width: 100%;
    overflow-x: auto;
}

.aioifckg-breakup-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.aioifckg-breakup-table thead {
    position: sticky;
    top: 0;
    background-color: #f9f9f9;
    z-index: 1;
}

.aioifckg-breakup-table th,
.aioifckg-breakup-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: right;
}

.aioifckg-breakup-table th {
    text-align: left;
    background-color: #f5f5f5;
    font-weight: 700;
}

tr {
    break-inside: avoid;
    break-after: auto;
    break-before: auto;
    break-inside: avoid-page;
    page-break-inside: avoid;
}
.aioifckg-calculator-form{
    page-break-after: always;
}
.aioifckg-result-table{
    break-before: auto;
    break-inside: avoid;
}

.aioifckg-breakup-table tr:nth-child(even) {
    background-color: #fafafa;
}

@media (max-width: 480px) {
    .aioifckg-breakup-table th,
    .aioifckg-breakup-table td {
        font-size: 12px;
        padding: 5px;
    }
}

/* Responsive Table for Smaller Screens */
@media screen and (max-width: 767px) {
    .aioifckg-breakup-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        font-size: 1.2rem;
    }

    .aioifckg-breakup-table thead,
    .aioifckg-breakup-table tbody,
    .aioifckg-breakup-table th,
    .aioifckg-breakup-table td,
    .aioifckg-breakup-table tr {
        display: block;
    }

    

    .aioifckg-breakup-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .aioifckg-breakup-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
    }

    .aioifckg-breakup-table th {
        display: none;
    }
}

/*------Customizing input type range-------*/
/********** Range Input Styles **********/
/*Range Reset*/
.aioifckg-calculator-container input[type="range"] {
   -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    width: 15rem;
   box-shadow: none;
}

/* Removes default focus */
.aioifckg-calculator-container input[type="range"]:focus {
  outline: none;
   box-shadow: none;
}

/***** Chrome, Safari, Opera and Edge Chromium styles *****/
/* slider track */
.aioifckg-calculator-container input[type="range"]::-webkit-slider-runnable-track {
   background-color: maroon;
   border-radius: 0.5rem;
   height: 2px; 
   box-shadow: none;
}

/* slider thumb */
.aioifckg-calculator-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
   appearance: none;
   margin-top: -8px; /* Centers thumb on the track */

   /*custom styles*/
   background-color: #f2f2f2;
   height: 2rem;
   width: 2rem;
   box-shadow: none;
   border-radius: 50%;
}

.aioifckg-calculator-container input[type="range"]:focus::-webkit-slider-thumb {   
  border: 1px solid maroon;
  outline: 3px solid maroon;
  outline-offset: 0.125rem;
   box-shadow: none; 
}

/******** Firefox styles ********/
/* slider track */
.aioifckg-calculator-container input[type="range"]::-moz-range-track {
   background-color: maroon;
   border-radius: 0.5rem;
   height: 0.5rem;
   box-shadow: none;
}

/* slider thumb */
.aioifckg-calculator-container input[type="range"]::-moz-range-thumb {
   border: none; /*Removes extra border that FF applies*/
   border-radius: 0; /*Removes default border-radius that FF applies*/

   /*custom styles*/
   background-color: #f2f2f2;
   height: 2rem;
   width: 2rem;
   border-radius: 50%;
   box-shadow: none;
}

.aioifckg-calculator-container input[type="range"]:focus::-moz-range-thumb {
  border: 1px solid maroon;
  outline: 3px solid maroon;
  outline-offset: 0.125rem;
   box-shadow: none; 
}

.aioifckg-width-full{
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 1rem;
}

@media print {
    .no-print { 
      display: none; 
    }
  }

.pdf-print{
    position: absolute;
    top: 0;
    left: auto;
    right: auto;
    width: 100vw;
    height: auto;
}

.header-img-newsletter{
    display: none;
}

/* lead-Popup Container */
.lead-capture-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

/* lead-Popup Content */
.lead-popup-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: scale(0);
    animation: scale-up 0.3s forwards;
}

/* Animation for lead-popup */
@keyframes scale-up {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

/* Close Button */
.lead-popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Form Styles */
.lead-popup-content form {
    display: flex;
    flex-direction: column;
}

.lead-popup-content label {
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.lead-popup-content input {
    margin-bottom: 16px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.lead-popup-content input:focus {
    border-color: #0066ff;
    outline: none;
}

/* Submit Button */
.lead-popup-content .submit-btn {
    background-color: #0066ff;
    color: white;
    font-size: 16px;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lead-popup-content .submit-btn:hover {
    background-color: #004bb5;
}

/*
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 999;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    */