/* Basic structure layout for the calculator styles */

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

#calculator {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px;
    padding: 20px;
}

#step-indicator {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    z-index: 1;
}

.step-description {
    font-size: 11px;
    font-weight: 700;
    color: #4d154a;
    text-align: center;
    margin-bottom: 5px;
}

.step-group {
    min-width: 30%;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-connector {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%; /* Increase the width */
    height: 2px; /* Keep the height the same */
    z-index: -1; /* Position it behind the steps */
    background: repeating-linear-gradient(
        to right,
        #ffa600,
        #ffa600 5px,
        transparent 10px,
        transparent 20px
    );
}

.step {
    width: 24px;
    height: 24px;
    background-color: #ffa600;
    border: 2px solid #4d1449;
    box-shadow: 0 2px 4px rgba(101, 1, 110, 0.616);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #4d1449;
    position: relative;
}

.step.completed {
    background-color: #4d154a;
}

.step.completed::after {
    content: '\f00c'; /* FontAwesome check icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.step.completed span {
    display: none;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.mainHeading {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 11px;
    font-weight: 800;
    color: #4d154a;
    text-align: center;
    border-bottom: 1px solid #ffa600;
    padding-bottom: 10px;
}

.miniHeadingInfo {
    margin: 0 10px;
}

.CTA-quote-call-link {
    color: #4d154a;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.step-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    color: #4d154a;
    text-align: left;
    text-transform: uppercase;
    margin: 16px 0;
    border-bottom: 1px solid #ffa600;
    padding-bottom: 10px;
}

.step-heading:first-child {
    text-align: left;
}

.step-heading img {
    margin-right: 16px;
}

label {
    color:#4d154a;
    font-weight: bold;
    margin-bottom: 5px;
}

.step-div {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.form-group {
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-with-mapIcon {
    position: relative;
}

.input-with-mapIcon input[type="text"] {
    padding-left: 30px; /* Adjust padding to make space for the icon */
    width: 90%;
}

.input-with-mapIcon::before {
    content: '\f3c5'; /* FontAwesome location-dot icon */
    font-family: 'Font Awesome 5 Free'; /* Font Awesome 5 */
    font-weight: 700; /* Use solid weight */
    position: absolute;
    left: 10px;
    top: 33%;
    transform: translateY(-50%);
    color: #ccc;
}

.select-with-icon {
    position: relative;
}

.select-with-icon select {
    padding-left: 30px; /* Adjust padding to make space for the icon */
    width: 100%;
}

.select-with-icon::before {
    content: '\f1b9'; /* FontAwesome car icon */
    font-family: 'Font Awesome 5 Free'; /* Font Awesome 5 */
    font-weight: 700; /* Use solid weight */
    position: absolute;
    left: 10px;
    top: 33%;
    transform: translateY(-50%);
    color: #ccc;
    pointer-events: none; /* Ensure the icon does not block interaction with the select */
}

.input-with-userIcon {
    position: relative;
}

.input-with-userIcon input[type="text"] {
    padding-left: 30px; /* Adjust padding to make space for the icon */
    width: 75%;
}

.input-with-userIcon::before {
    content: '\f007'; /* FontAwesome user icon */
    font-family: 'Font Awesome 5 Free'; /* Font Awesome 5 */
    font-weight: 700; /* Use solid weight */
    position: absolute;
    left: 10px;
    top: 33%;
    transform: translateY(-50%);
    color: #ccc;
}

.input-with-phoneIcon {
    position: relative;
}

.input-with-phoneIcon input[type="tel"] {
    padding-left: 30px; /* Adjust padding to make space for the icon */
    width: 80%;
}

.input-with-phoneIcon::before {
    content: '\f095'; /* FontAwesome phone icon */
    font-family: 'Font Awesome 5 Free'; /* Font Awesome 5 */
    font-weight: 700; /* Use solid weight */
    position: absolute;
    left: 10px;
    top: 33%;
    transform: translateY(-50%);
    color: #ccc;
}

.input-with-emailIcon {
    position: relative;
}

.input-with-emailIcon input[type="email"] {
    padding-left: 30px; /* Adjust padding to make space for the icon */
    width: 90%;
}

.input-with-emailIcon::before {
    content: '\f0e0'; /* FontAwesome envelope icon */
    font-family: 'Font Awesome 5 Free'; /* Font Awesome 5 */
    font-weight: 700; /* Use solid weight */
    position: absolute;
    left: 10px;
    top: 33%;
    transform: translateY(-50%);
    color: #ccc;
}


input[type="radio"] {
    margin-right: 5px;
    margin-top: -2px;
}

.radio-group {
    display: flex;
    align-items: flex-start;
    margin-top: 8px;
}

.radio-group label {
    font-size: 14px;
    margin-right: 12px;
    margin-top: -5px;
}

.radioButtonGroup {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
    padding: 5px;
}

.radioButtonGroup label{
    margin-right: 10px;
    font-size: 14px;
}

button {
    width: 40%;
    background-color: transparent;
    color: #4d154a;
    font-size: 14px; 
    font-weight: 600;
    border: 1px solid #ffa600;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    transition: color 0.4s, border-color 0.4s;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #4d154a;
    transform: translateY(-50%);
    transition: width 0.4s, right 0.4s;
}

button:hover::before {
    width: 100%;
    z-index: -1;
}

button:hover {
    color: #fff;
    border-color: #4d154a;
    z-index: 2;
}

.backButton {
    background-color: transparent;
    color: #4d154a;
    font-weight: 700;
}

button.backButton::before {
    background-color: #4d1449;
    z-index: -1;
   
}

button.backButton:hover {
    color: #fff;
    border-color: #4d154a;
    z-index: 2;   
}

button.backButton:hover::before {
    background-color: #4d154a;
}

.button-group {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 20px 0;
}

.styled-date {
    width: 90%;
    padding: 10px 5%;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    color: #4d154a;
    background-color: #fff;
    margin: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.style-date {
    padding: 0 10px;
}

.styled-date::-webkit-calendar-picker-indicator {
    filter: invert(25%) sepia(75%) saturate(500%) hue-rotate(250deg) brightness(90%) contrast(85%); /* Make the icon purple */
    cursor: pointer;
}
.styled-date:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: #ffa600;
    box-shadow: 0 0 8px rgba(255, 166, 0, 0.5);
    outline: none;
}

.input-with-mapIcon:focus-within::before {
    color: #4d154a;
}

.dropdown-list {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    display: none;
    z-index: 1000;
}

.dropdown-item {
    padding: 10px;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f0f0f0;
}

.hidden-alert {
    display: none;
}

.popup-alert {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    max-width: 90%;
}

.hidden {
    display: none;
}

.popup-content ul {
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.close-btn {
    background: #721c24;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.spinner {
    margin-left: 8px;
}