@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --primary-color: #c73e3e;
  --secondary-color: #fff0f0;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --spacing: 2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

.container h2 {
  font-size: 2.5rem !important;
  font-family: "Inter";
  font-weight: 700;
  line-height: 53.09px;
  /* color: #000000 !important; */

}

.container p {
  font-size: 24px;
  font-family: "poppins";
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  background: black;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 40px;
}

/* Hero Section */
.hero {

  padding: 4rem 0;
  overflow: hidden;
  position: relative;

}

.round {
  position: absolute;
  z-index: 999;
  top: 0%;
  height: 90%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: 10rem; */
  align-items: center;
}

.hero-content {
  width: 80%;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 50.09px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  color: #3d3d3d;
}

.hero-btn {
  margin: 0 !important;
}

.hero-image img {
  width: 100%;
  /* max-width: 500px; */
}

/* Estimate Form Section */
.estimate {
  padding: var(--spacing);
  text-align: center;
  background: white;
  position: relative;
  z-index: 999;
}

.estimate h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.estimate-form {
  max-width: 1080px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 3px 14px 70px rgba(0, 0, 0, 0.1);
  z-index: 999;
  position: relative;
}

.round2 {
  position: absolute;
  right: 0;
  bottom: 0%;
  height: 65%;
}

/* Progress Bar */
.progress-container {
  position: relative;
  margin-bottom: 2rem;
}

.line {
  margin: 50px 0;
  border-top: .1px solid #dedede;
}

.progress-bar {
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;

}

.progress {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0;
}
.cross-btn{
  background: none !important;
  border: none !important;
  color: #B33433 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  font-family: "Inter" !important;
  margin-bottom: 20px;
}

.progress-percentage {
  position: absolute;
  right: 0;
  top: -20px;
  font-size: 0.875rem;
  color: var(--text-color);

}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.form-step.active {
  display: block;
}

.form-heading {
  margin-bottom: 10px;
  font-size: 24px;
  color: #1d1d1d;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
  width: 100%;
}

.form-group label {
  display: block;
  font-family: "inter";
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
  font-size: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  color: #999999;
}

.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Remove default arrow */
  background-image: url(../public/caret-down.png);
  background-repeat: no-repeat;
  background-position: 98% 50%;
  padding-right: 10px;
  background-size: auto 20px;
  min-height: 50px;
  /* Add custom arrow */
}

.form-group p {
    display: none;
    font-size: 15px;
    color: red;
}

.form-group input.error~p,
.form-group select.error~p,
.form-group textarea.error~p {
  font-size: 12px;
  display: block;
  color: red;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea::placeholder {
  font-family: "Inter";
}

.form-group.checkbox {
  display: flex;
  align-items: baseline;
  /* align-items: flex-start; */
  gap: 0.5rem;
}

.form-group.checkbox input {
  width: auto;
  margin-top: 0.3rem;
}

.consent-text {
  font-size: 0.875rem;
  color: #666;
  text-align: left !important;
  /* margin-left: 1rem; */
}

.checkboxHead {
  font-size: 15px !important;
  font-weight: 500;
  color: #333333 !important;
}

/* Buttons */
.btn-getEstimateIp {
  border: none !important;
  padding: 1rem 2rem !important;
  border-radius: 80px !important;
  cursor: pointer;
  font-size: 1.125rem !important;
  transition: background 0.3s ease !important;
  margin: 0 0.5rem;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.btn-getEstimateIp {
  background: var(--primary-color) !important;
  color: white !important;
  font-size: 1.125rem !important;
}

.btn-getEstimateIp:hover {
  background: #b03232 !important;
}

.btn-primary,
.btn-secondary {
  border: none;
  padding: 1rem 2rem;
  border-radius: 80px;
  cursor: pointer;
  font-size: 1.125rem;
  transition: background 0.3s ease;
  margin: 0 0.5rem;
  font-weight: 500;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  font-size: 1.125rem;
}

.btn-primary:hover {
  background: #b03232;
}

.btn-secondary {
  background: var(--light-gray);
  color: var(--text-color);
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* Loading State */
.loading-step {
  text-align: center;
}

.loading-spinner {
  margin: 2rem auto;
  position: relative;
  width: 100px;
  height: 100px;
}

.spinner {
  border: 4px solid var(--light-gray);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 100%;
  height: 100%;
  animation: spin 1s linear infinite;
}

.loading-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* How it Works Section */
.how-it-works {
  background: var(--secondary-color);
  padding: 4rem 0;
  text-align: center;
}

.how-it-works h2 {
  color: var(--primary-color);
  margin-bottom: 3rem;
  font-size: 2rem;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.step {
  padding: 2rem;
  /* background: white; */
  border-radius: 10px;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
}

.step-icon {
  /* width: 100px;
    height: 100px; */
  margin: 0 auto 1.5rem;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon img {
  width: 100px;
  height: 100px;
}

.step h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  color: #2D2E2E;
  font-size: 20px;
}

.step p {
  font-size: 16px !important;
  color: #3D3D3D;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-top: 4rem;
}

.cta-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  color: #000000;
  font-family: poppins;
}

.cta-section p {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #000000;
  font-family: poppins;
}

.cta-section button {
  font-size: 18px !important;
  margin-bottom: 1rem;
  font-weight: 600;
  font-family: poppins;
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 4rem 0;
  background: white;
}

.why-choose-us h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 3rem;
  font-size: 2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit {
  padding: 20px 15px 30px 20px;
  /* text-align: center; */
  transition: transform 0.3s ease;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0px 3px 14px 0px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;

}

.benefit:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  margin: 0 0 .5rem;
  /* background: var(--secondary-color); */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.benefit h3 {
  margin-bottom: .3rem;
  color: var(--primary-color);
  color: #1D1D1D;
  font-weight: 600;
}

.benefit p {
  margin-bottom: .3rem;
  color: #333333;
  font-weight: 400;
  font-size: 16px !important;
  font-family: poppins;
}


.vehicle-div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.form_buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.navigation-button {
  display: flex;
  justify-content: space-between;
}

/* Responsive Design */
@media (max-width:1024px) {
  .hero-content h1 {
    font-size: 1.5rem;
    line-height: 33.09px;
  }

  .container h2 {
    font-size: 1.5rem !important;
  }

  .container p {
    font-size: 18px;
  }

  .form-heading {
    font-size: 20px;
  }

  .form-group label {
    font-size: 18px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 1rem;
  }
}

@media (max-width: 992px) {

  .hero-image {
    width: 80%;
  }

  /* .hero-image {
    order: -1;
  } */

  .steps-container,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 1.5rem;
    line-height: 28.09px;

  }

  .step h3 {
    font-size: 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: .5rem;
  }

}

@media (max-width: 768px) {
  .vehicle-div {
    flex-direction: column;
    gap: 0px !important;
  }

  .form_buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
  }

  .navigation-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero .container {
    grid-template-columns: -1fr;

  }

  .container h1 {
    font-size: 1.35rem !important;

  }

  .container h2 {
    line-height: 28px;
    font-size: 1.35rem;
  }

  .estimate-form {
    padding: 1.5rem;
    margin: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    /* width: 100%; */
    margin: 0.5rem 0;
  }

  .steps-container,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .form-heading {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 16px;
  }

  .container h2 {
    font-size: 1.35rem !important;
  }

  .container p {
    font-size: 16px;
  }

  .round {
    display: none;
  }

  .container {
    width: 100% !important;
  }

  .estimate {
    padding: 0% !important;
  }

  .btn-primary {
    font-size: .8rem !important;
  }

  .three-btn {
    width: 100% !important;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: .85rem;
  }
  .remove-service{
    margin-top: -27px !important;
    text-align: right !important;
    margin-left: auto !important;
  }
  .cross-btn{
    font-size: 12px !important;
  }

}

@media (max-width: 475px) {
 
  .form-heading {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .btn-primary {
    font-size: 0.85rem !important;
    padding: 1rem 1.4rem;
  }
  
  .chooseServ {
      padding: 1rem 1rem;
  }

  .cta-section button {
    font-size: 14px !important;
  }

  .container h1 {
    font-size: 1.75rem !important;
    line-height: 30px;
  }

  .container h2 {
    font-size: 1.35rem !important;
    /* text-align: left !important; */
  }

  .cta-section h3 {
    font-size: 18px;
    /* margin-bottom: 1rem; */
    font-weight: 400;
    color: #000000;
    font-family: poppins;
  }

  .container p {
    font-size: 16px;
  }

  .btn-primary {
    width: 73%;
  }

  .cta-section button {
    font-size: 16px !important;
  }

  .hero .container {
    grid-template-columns: 1fr;

  }

  .line {
    margin: 30px 0;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: .7rem;
  }
}

@media (max-width: 375px) {
  .btn-primary {
    width: 93%;
  }

  .btn-primary {
    font-size: 0.75rem !important;
  }

  .line {
    margin: 10px 0;
  }

  .three-btn {
    text-wrap-mode: nowrap;
    text-align: center !important;
  }

  .consent-text {
    font-size: 0.75rem;
    color: #666;
    text-align: left !important;
    line-height: 10px;

  }

  .container p {
    font-size: 16px;
  }


  .flex {
    display: flex;
    flex-direction: column;
    /* Arrange items in a column */
    justify-content: center;
    /* Align items along the main axis (vertical in this case) */
    align-items: center;
    /* Center items horizontally */
  }

  .flex-one {
    display: flex;
    flex-direction: column;
    /* Arrange items in a column */
    justify-content: center;
    /* Align items along the main axis (vertical in this case) */
    align-items: center;
    /* Center items horizontally */
  }

  .container h2 {
    font-size: 1.15rem !important;
  }
}

@media (max-width: 320px) {
  .btn-primary {
    width: 95%;
    padding: 10px 10px !important;
  }

  .btn-primary {
    font-size: 0.6rem !important;
  }

  .line {
    margin: 10px 0;
  }

  .three-btn {
    text-wrap-mode: nowrap;
    text-align: center !important;
  }

  .consent-text {
    font-size: 0.75rem;
    color: #666;
    text-align: left !important;
    line-height: 10px;

  }

  .container p {
    font-size: 16px;
  }


  .flex {
    display: flex;
    flex-direction: column;
    /* Arrange items in a column */
    justify-content: center;
    /* Align items along the main axis (vertical in this case) */
    align-items: center;
    /* Center items horizontally */
  }

  .flex-one {
    display: flex;
    flex-direction: column;
    /* Arrange items in a column */
    justify-content: center;
    /* Align items along the main axis (vertical in this case) */
    align-items: center;
    /* Center items horizontally */
  }

  .container h2 {
    font-size: .9rem !important;
  }

  .checkboxHead {
    font-size: 12px !important;
  }

}

.remove-service {
  background:none;
  color: #B33433;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 52px;
  transition: background-color 0.3s ease;
}

/* .remove-service:hover {
  background: #cc0000;
} */

/* .service-field {
  margin-bottom: 20px;
} */

/* #addServiceBtn {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
} */

#addServiceBtn:hover {
  background: #e0e0e0;
}
@media (min-width: 320px) and (max-width: 768px) {
    #categories_services_dropdowns .form-group {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    #categories_services_dropdowns .removeServ{
        margin-top: 0px !important;
    }
}