.our-rate-section {
    background-color: black;
    width: 100%;
    padding: 4rem 2rem;
    padding-top: 12%;
    padding-bottom: 12%;
    font-family: 'Poppins', sans-serif;
    color: black;
}

.our-rate-title {
    font-size: 2rem;
    font-weight: 400;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.our-rate-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
}

.our-rate-left{
	width: 40%;
}

.our-rate-right{
	width: 55%;
}

.our-rate-left,
.our-rate-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.our-rate-left-header{
    font-size: 4.8rem;
    font-weight: 400;
    width: 70%;
	color: white;
}


.our-rate-left-paragraph {
    font-size: 1.6rem;
    margin: 2rem 0;
    font-weight: 400;
    width: 70%;
	color: white;
}

.our-rate-right {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 20px;
  color: #ffffff;
  text-align: center;
  max-width: 1200px;
  border: 1px solid #ffffff;
/*   z-index: 99; */
position: relative;
}

.card-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Custom checkbox styling */
.checkbox-wrapper-download input[type="checkbox"],
#estimate-form  input[type="checkbox"] {
    /* Hide the default checkbox */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;    
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    margin-right: 8px;
}

.checkbox-wrapper-download input[type="checkbox"] {
	border: 2px solid #000000;
	width: 20px;
    height: 20px;
}

#estimate-form  input[type="checkbox"] {
	border: 2px solid #ffffff;
	width: 24px;
    height: 20px;
}

/* Checked state */
.checkbox-wrapper-download input[type="checkbox"]:checked,
#estimate-form  input[type="checkbox"]:checked {
    background-color: #000000;
}

/* Checkmark */
.checkbox-wrapper-download input[type="checkbox"]:checked::after,
#estimate-form  input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.estimate-card {
  background: white;
  color: black;
  border-radius: 15px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  text-align: left;
}

.icon span {
  font-size: 32px;
  margin-bottom: 10px;
  display: inline-block;
}

.estimate-card input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #f2f2f2;
  border: none;
}

.estimate-header{
	margin-top: 20px;
}

.cost-estimation-wrapper {
  display: none;
}

.cost-estimation-wrapper.visible {
  display: flex;
}

.estimate-card.cost-estimation ,
.estimate-card.rate-card-continer{
  cursor: pointer;
}

.rate-card-wrapper {
  position: relative;
  background-color: #000000;
  padding: 40px;
}

.rate-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.rate-card-subtitle {
  font-size: 5rem;
  color: #ffffff;
  margin: 0;
  flex: 1;
}

.rate-card-btn {
  padding: 15px 30px;
  border-radius: 30px;
  border: none;
  background-color: #fff;
  color: #000000;
  font-weight: bold;
  cursor: pointer;
  font-size: 2rem;
  transition: background 0.3s ease;
  text-transform: uppercase;
}

.rate-card-btn:hover {
  background-color: #eaeaea;
}

.rate-card-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  cursor: pointer;
  font-weight: bold;
  z-index: 10;
  color: #fff;
}

.contact-form-container {
  padding: 50px 50px 25px 50px;
  width: 100%;
  background-color: #fff;
  box-sizing: border-box;
}

.hide-section {
  visibility: hidden !important;
  position: absolute !important;
}

#left-cost-estimation.hide {
  display: none !important;
}

.rough-estimate-detail-box {
  padding: 15px;
  width: auto;
  font-size: 2.1rem;
  font-family: Arial, sans-serif;
  color: #fff;
}

.rough-estimate-detail-box .rough-title {
  text-align: right;
  gap: 20px;
  display: grid;
}

.rough-estimate-detail-box .rough-title .timestamp,
.rough-estimate-detail-box .rough-title .title {
  font-weight: 600;
}

.rough-estimate-detail-box .message {
  text-align: left;
  margin-top: 20%;
  gap: 20px;
  display: grid;
}

.rough-estimate-detail-box .message .timestamp {
  font-weight: 600;
  margin-bottom: 5px;
}

.rough-estimate-detail-box .message p {
  margin: 0;
}

.rough-title{
	color: gray;
}

.RM{
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 2rem;
}

.h3{
	font-size: 2rem;
}
.p{
	font-size: 1.8rem;
}
@media (max-width: 767px) {
  .our-rate-left,
  .our-rate-right {
    width: 100% !important;
  }
}


/* Base Styles */
.initial-content .estimate-title {
    font-size: 48px;
    margin-bottom: 5px;
}

.initial-content .estimate-subtitle {
    color: #ccc;
	font-size: 16px;
    margin-bottom: 20px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-header h3 {
    margin: 0;
}

.form-header h3.right-aligned {
    text-align: right;
    width: 100%;
	font-size: 2em;
}

.back-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 100;
    font-size: 4em; 
    line-height: 1; /* Ensures proper vertical alignment */
    position: relative; /* For potential pseudo-element adjustments */
}

/* Optional: Fine-tune positioning */
.back-button::before {
    content: "‹"; /* Using the chevron character */
    position: relative;
    top: -0.05em; /* Micro-adjustment for perfect centering */
    left: -0.05em; /* Micro-adjustment for perfect centering */
}

.submit-button, .details-button, .back-to-categories {
    padding: 18px 26px;
    border-radius: 30px;
    cursor: pointer;
    border: none;
	font-weight:bold;
}

.submit-button, .details-button {
    background: #000000;
    color: #ffffff;
	text-transform: uppercase;
}

.back-to-categories {
    background: #000000;
    color: #ffffff;
	text-transform:uppercase;
	font-weight:bold;
	font-size:1.6em;
}

.our-rate-right .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.our-rate-right .form-row:last-child{
    margin-bottom:0px;
}
.our-rate-right .form-row .full__width{
    width: 100%;
}

.our-rate-right .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.our-rate-right label {
    display: block;
/*     margin-bottom: 5px; */
/*     font-weight: bold; */
	font-size: 1.3rem;
    font-weight: 400;
    text-align: left;
}

.our-rate-right input[type="text"],
.our-rate-right input[type="email"],
.our-rate-right input[type="tel"] {
    width: 100%;
    padding: 4px 0;
    border: none;
    background: transparent;
    outline: none;
	color: #ffffff;
    font-size: 1.3rem;
    border-bottom: 1px solid;
}
.our-rate-right input[type="checkbox"]{
    border: 2px solid #fff;
    width: 24px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    margin-right: 8px;
}
.our-rate-right input[type="checkbox"]:checked:after{
    content: "✓";
    position: absolute;
    color: #fff;
    font-size: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.our-rate-right .form-underline {
    height: 1px;
    background: #ddd;
    margin-top: -1px;
}

.our-rate-right .checkbox-group {
    margin-bottom: 8px;
}

.our-rate-right .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.category-card {
    padding: 15px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}
	
	.category-card h4 {
    color: #000000 !important;
	font-weight: 400 !important;
	font-size: 1.5em !important;
}

.category-card:hover {
    background: #f5f5f5;
}

.service-details {
    margin-top: 20px;
    background: white;
    color: black;
    padding: 20px;
    border-radius: 8px;
}

.service-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.service-icon {
    margin-right: 20px;
}

.service-icon img {
    width: 50px;
    height: 50px;
}

.service-info {
    width: 100%;
	text-align: left !important;
}

.service-price {
    font-size: 1.6em;
    font-weight: 500;
    margin: 15px 0;
}
	
	.service-starting-text {
		font-weight: 400;
		font-size: 1.6em;
		text-transform: uppercase;
	}
	
	.starting-price {
		margin-top:1.5% !important;
	}
	
	#service-description {
		text-align: left !important;
		font-size: 1.6em;
	}
	
	#service-name {
		text-align: left !important;
		font-size: 2em;
	}
	
	.page-indicator {
		font-size: 1.6em;
		font-weight: 500;
	}

.price-range {
    margin-top: 30px;
	font-size: 1.6em;
	font-weight: 400;
}

.range-slider {
    margin-top: 10px;
    position: relative;
	font-size: 1.2em;
	font-weight: 500;
}

.range-slider input[type="range"] {
    width: 100%;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

/*.range-tooltip {
    position: absolute;
    top: -30px;
    transform: translateX(-50%);
    background: #0066cc;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    display: none;
}*/

.thank-you-inner {
    text-align: center;
    padding: 40px 20px;
}

.thank-you-inner h3 {
    font-size: 5.2em;
    margin-bottom: 15px;
}
	
	.thank-you-inner p {
    font-size: 1.6em;
		margin-bottom: 15px;
}

.details-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.need-more-info {
    color: #ffffff;
    font-size: 1.4em;
}

.pager {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pager-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 4.8em;
    padding: 0;
    font-weight: 100;
    width: auto;
    height: auto;
    color: #333;
}

/* Previous button */
.prev::before {
    content: "‹";
    display: inline-block;
}

/* Next button */
.next::before {
    content: "›";
    display: inline-block;
}

.page-indicator {
    font-size: 1.8em;
}

/* Error states */
input.error {
    border-color: #ff0000;
}

.error-message {
    color: #ff0000;
    font-size: 10px;
    margin-top: 5px;
    height: 15px;
	text-align: left !important;
	display: block !important;
}

.form-message {
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background: #e6f7e6;
    color: #2e7d32;
    display: block;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    display: block;
}
	
	
/* Add these styles for the rate card overlay */
.rate-card {
    position: fixed;
    bottom: -120%;
    left: 0;
    width: 100%;
    background: #000000;
	padding: 50px 50px 0px 50px;
/*     padding: 20px; */
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
/*     max-height: 90vh; */
    overflow-y: auto;
    height: 100%;
}

.rate-card.active {
    bottom: 0;
}

.rate-card-close-btn {
    position: absolute;
    top: 0;
    right: 3%;
    font-size: 42px;
    cursor: pointer;
    z-index: 1001;
    font-weight: 300;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: none;
}
	
	.checkbox-terms {
		margin-top:60px;
	}
	
	.normal-text {
  font-size: 1.6em !important;
  display: inline-block;
  vertical-align: top;
  margin-left: 5px;
  width: calc(100% - 25px); /* Adjust based on checkbox width */
}

.checkbox-wrapper-download label {
  display: block;
  position: relative;
  padding-left: 25px; /* Space for checkbox */
}

.checkbox-wrapper-download input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 4px; /* Adjust to align with first line */
}
	
	
	
	
/* Existing CSS (unchanged) */
.our-rate-section {
    background-color: black;
    width: 100%;
    padding: 4rem 2rem;
    padding-top: 12%;
    padding-bottom: 12%;
    font-family: 'Poppins', sans-serif;
    color: black;
}

/* ... (all existing CSS remains exactly the same) ... */

@media (max-width:990px){
    .overview_fields .overview,
    .overview_fields .fields,
    .option{
        flex:0 0 100% !important;
        max-width:100% !important;
    }
    .progress-wrap{
        top: 30px;
        max-width: 200px !important;
    }
}

/* Mobile Styles (767px and below) - Updated with fixes */
@media (max-width: 767px) {
    /* General mobile adjustments */
    .our-rate-section {
        padding-top: 20%;
        padding-bottom: 15%;
    }
    
    .our-rate-left-header {
        font-size: 3.2rem;
        width: 100%;
    }
    
    .our-rate-left-paragraph {
        width: 100%;
        font-size: 1.4rem;
    }
    
    /* Right section mobile styles */
    .our-rate-right {
        width: 100% !important;
        padding: 25px;
        margin-top: 30px;
    }
    
    /* Form adjustments for mobile */
    .our-rate-right .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    /* .our-rate-right {
        width: 100%;
        margin-bottom: 25px;
    } */
    
    /* Rate card form download - hide by default and make scrollable */
    .rate-card {
        display: none;
        padding: 30px 20px;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        overflow-y: auto;
        z-index: 1001;
        transform: none;
        max-height: 100vh;
    }
    
    .rate-card.active {
        display: block;
    }
    
    /* Fix for overlay on mobile */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
    }
    
    /* Rate card form download layout */
    .contact-form-container .form-wrapper {
        flex-direction: column;
    }
    
    .contact-form-container .form-left,
    .contact-form-container .form-right {
        flex: 1 0 100%;
    }
    
    .contact-form-container .form-row {
        flex-direction: column;
        margin-bottom: 0;
    }
    
    /* .contact-form-container .form-group {
        margin-bottom: 20px;
    } */
    
    /* Card row adjustments */
    .card-row {
        flex-direction: column;
        align-items: center;
    }
    
    .estimate-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Service details adjustments - Pager in same row as icon */
    .service-top-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .service-icon {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    /* Hide "need more info" on mobile */
    .need-more-info {
        display: none;
    }
    
    /* Form header adjustments - Keep right-aligned elements */
    .form-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .form-header .right-aligned {
        text-align: right !important;
        width: auto !important;
    }
    
    /* Pager adjustments - Keep in same row as icon */
    .pager {
        margin-left: auto;
        display: flex;
        align-items: center;
    }
    
    /* Submit button adjustments - Keep far right */
    .submit-button, .details-button {
        margin-left: auto;
        display: block;
    }
    
    /* Checkbox text adjustments */
    .normal-text {
        font-size: 1.4em !important;
    }
    
    /* Thank you content adjustments */
    .thank-you-inner h3 {
        font-size: 3.5em;
    }
    
    /* Rate card wrapper adjustments */
    .rate-card-wrapper {
        padding: 30px 20px;
    }
    
    .rate-card-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .rate-card-subtitle {
        font-size: 3rem;
    }
    
    .rate-card-btn {
        width: 100%;
        padding: 12px;
        font-size: 1.6rem;
    }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
    .our-rate-section {
        padding: 15% 15px;
    }
    
    .our-rate-left-header {
        font-size: 2.8rem;
    }
    
    .our-rate-title {
        font-size: 1.6rem;
    }
    
    .estimate-title {
        font-size: 2.5rem !important;
    }
    
    .rate-card-subtitle {
        font-size: 2.4rem;
    }
    
    .thank-you-inner h3 {
        font-size: 2.8em;
    }
    
    .back-to-categories {
        width: 100%;
    }
    
    /* Adjust service top row for very small screens */
    .service-top-row {
        flex-wrap: wrap;
    }
    
    .service-icon {
        margin-right: 10px;
    }
    
    .pager {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }
}

/* Additional fixes for form alignment */
@media (max-width: 767px) {
    /* Ensure form submit button stays right */
    #estimate-submit {
        margin-left: auto;
        display: block;
    }
    
    /* Keep "Select a Service Category" right-aligned */
    .categories-content .right-aligned {
        text-align: right !important;
        margin-left: auto;
    }
	
	.rate-card-close-btn {
    	position: fixed;
	}
	
}

/* Fix for rate card close button positioning */
.rate-card-close-btn {
/*     position: fixed; */
    top: 15px;
    right: 15px;
    z-index: 1002;
}

/* new css */
.form_main {
    border-radius: 16px;
    display:none;
}
.progress-wrap {
    position: absolute;
    top: 30px;
    right: 25px;
    max-width: 400px;
    width: 100%;
}
.progress-wrap span{
    display: block;
    width: 100%;
    text-align: right;
    padding-top: 5px;
    font-size:12px;
}
.progress-bar {
    width: 100%;
    height: 6px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    width: 25%;
    height: 100%;
    background: #000000;
    transition: width 0.4s ease;
    display: block;
}
.step-text {
    font-size: 14px;
    text-transform: uppercase;
}
.form_step {
    display: none;
    text-align:left;
    padding-top:50px;
}
.form_step.active {
    display: block;
    animation: fade 0.4s ease;
}
.estimate-box.active{
    animation: fade 0.4s ease;
}
@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.options {
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap: 15px;
    margin-top: 20px;
}
.option {
    padding: 16px;
    background: #fff;
    border: none;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 13px;
    color:#000;
    text-align:left;
    flex:0 0 48%;
    max-width:48%;
}
#timeline.options .option{
    flex:0 0 31%;
    max-width:31%;
    text-align:center;
}
.option.active {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
}
.estimate_btn_back{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 100;
    font-size: 3em;
    line-height: 1;
    position: absolute;
    top: 15px;
    left: 25px;
}
.estimate_btn_back::before {
    content: "‹";
    position: relative;
    top: -.05em;
    left: -.05em;
}

.nav-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.nav-buttons button {
    padding: 14px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
}

#back {
    background: transparent;
    color: #fff;
}

#next {
    background: #fff;
}

.thank-you {
    text-align: center;
}
.overview_fields{
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom:20px;
}
.overview_fields .overview{
    flex: 0 0 45%;
    max-width: 45%;
    background: #ffffff;
    color: #000000;
    border-radius: 15px;
    padding: 10px;
}
div#summary{
  margin-top:5px;
}
#estimate_summary{
  display:none;
}
div#summary div {
    font-size: 13.5px;
    color: #000000;
    margin-top:5px;
}
div#summary span {
    font-size: 12.5px;
    color: #b3b3b3;
}
.overview_fields .fields{
    flex: 0 0 52%;
    max-width: 52%;
}
.custom-form .form-group{
    gap: 0px !important;
}
	