/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    text-align: -webkit-center;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
    background-color: #333;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
}

.foot {
    display: flex;
    justify-content: space-between;
    padding: 20px 20px;
    box-shadow: 0px -6px 8px rgba(0, 0, 0, 0.1);
}

footer {
    position: sticky;
    bottom: 0;
    width: 75%;
    max-width: 560px;
    background-color: white;
    margin: 0px;
    text-align: center;
}

.logo img {
    height: 70px;
}
/* Steps Styles */

.logo img {
    height: 70px;
    margin-left: 40px;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    max-width: 700px;
    margin-right: 65px;
    position: relative;
    overflow-x: auto; /* Allows scrolling for narrow screens */
}

.step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(207, 207, 207, 0.461); /* Light gray for uncompleted step */
    color: #000;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
    transition: all 0.3s ease; /* Smooth transition for color change */
    border: 2px solid rgba(207, 207, 207, 0.461); /* Border for the step circle */
}

/* Active step state */
.step.active {
    background-color: #EEC23C; /* Green for active step */
    color: white;
    border-color: #EEC23C; /* Green border for active step */
}

/* Completed step state */
.step.completed {
    background-color: #ffffff; /* Blue for completed step */
    color: white;
    border-color: #ffffff; /* Blue border for completed step */
}

.line {
    width: 80px;
    height: 2px;
    background-color: rgba(207, 207, 207, 0.461); /* Default line color */
    display: inline-block;
    margin: 0 10px;
}

/* Completed line */
.line.completed {
    background-color: #ffffff; /* Blue color for completed line */
}

.container{
    padding: 60px;
}

/* Media Query for Smaller Screens */
@media (max-width: 768px) {
    .steps-container {
        flex-wrap: wrap; /* Wrap items to the next row if space is insufficient */
        justify-content: center; /* Center align the items */
        /* gap: 15px; */
        overflow: hidden;
        margin: 0px;
    }

    .step {
        width: 15px;
        height: 15px;
    }

    .line {
        flex: 0 0 30px; /* Reduce the size of lines for smaller screens */
        height: 2px;
    }


}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column; /* Stack logo and steps */
        align-items: center;
        gap: 15px;
    }

    .logo img {
        height: 65px;
        margin: 0px; /* Adjust logo size for smaller screens */
    }

    .step {
        width: 12px;
        height: 12px;
    }

    .line {
        flex: 0 0 20px;
        height: 2px;
    }

    .container{
        padding: 22px;
    }
}

/* For responsiveness */
@media (max-width: 600px) {

footer {
    width: 100%;
}
}

.content{
    width: 75%;
    max-width: 560px;
    background-color: white;
    margin: 0px;
    text-align: center;
    min-height: calc(100vh - 160px);
}



.foot button{
    padding: 7px 25px;
    background-color: #EEC23C;
    color: white;
    border-radius: 15px;
    border: 0px solid;
}
.step-6 {
    height: 290px;
}
.step-1 {
    height: 310px;
}

@media (max-width: 600px){
    .content{
        width: auto;
    } 
    .step-6 {
        height: 420px;
    }
    .step-1 {
        height: 420px;
    }
}


h1 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

a {
    color: #f44336;
    text-decoration: none;
    font-weight: bold;
}

.note {
    background: #fff5c2;
    color: #856404;
    padding: 10px;
    margin: 15px 0;
    font-size: 14px;
    border-radius: 4px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 16px;
    color: #333;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + label {
    border-color: #eec23c;
    background: #ffffff;
    color: #eec23c;
}



.card {
    /* border: 1px solid #ddd; */
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    cursor: pointer;
    transition: all 0.3s;
}

.step-2 label{
    padding: 0px;
    margin-top: 20px;
}
.step-3 label{
    padding: 0px;
    margin-top: 20px;
}
.step-4 label{
    padding: 0px;
    margin-top: 20px;
}
.step-5 label {
    padding: 0px;
    margin-top: 6px;
    width: 200px;
    display: inline-flex;
}

.step-7 label {
    display: contents;
}

@media (max-width: 600px){
    .step-5 label {
        padding: 0px;
        margin-top: 20px;
        width: 250px;
        display: inline-flex;
    }    
    .step-5 h1{
        font-size: 20px;
    }
}


input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + .card {
    border: 1px solid #eec23c;
    background: #ffffff;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

input[type="radio"]:checked + .card .card-header {
    color: #eec23c;
}

.card-content {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
}

.card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.card-footer {
    font-size: 14px;
    color: #555;
    text-align: left;
}

.details {
    margin-top: 10px;
    text-align: left;
}

.details p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.details span {
    font-weight: bold;
}


.card-header5{
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 10px;
    /* font-size: 18px; */
    /* font-weight: bold; */
    color: #333;
    margin-bottom: -10px;
}

.inpt {
    height: 43px;
    width: -webkit-fill-available;
    border-radius: 6px;
    border: 1px solid;
    border-color: whitesmoke;
    margin: 4px;
    padding-left: 10px;
}





/* for popup */

.popup-overlay {
  position: fixed;
  top: 0; left: 0; right:0; bottom:0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  font-family: sans-serif;
}

.popup-content h2 {
  margin-top: 0;
  color: #2c3e50;
}

.popup-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.estimate-total {
  font-size: 20px;
  margin: 10px 0;
}

.estimate-note {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.btn-view {
  display: inline-block;
  padding: 10px 18px;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-view:hover {
  background: #219150;
}

.small-popup { max-width: 400px; }

.details-popup { max-width: 700px;
height:400px; }
.details-container {
  max-height: 325px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 5px;
  background: #f9f9f9;
  margin-top: 10px;
}
.details-container table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.details-container th, .details-container td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: left;
}
.details-container th {
  background: #27ae60;
  color: #fff;
}
.details-container tr.estimate-highlight td {
  font-weight: bold;
  background: #f1c40f;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
