/* topbar  */

.top-bar {
  padding: 10px;
}

.inside-top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.main-grid {
  background-color: #EDFCFB;
  width: 100vw;
  background-position: top;
  background-repeat: repeat-x;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.main-heading {
  color: #02312F !important;
  font-weight: 100;
  margin-top: 50px;
}


.main-span {
  font-weight: 600 !important;
}

.main-p {
  color: #2C2C2C;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 163%;
  width: 50% !important;
  letter-spacing: -0.36px;
}


/* Progress bar wrapper */
.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #F0F3F5;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
}

/* Progress fill */
.progress-fill {
  height: 100%;
  width: 0%;
  background-color: #36E1B2;
  border-radius: 5px;
  transition: width 0.4s ease-in-out;
}


.form {
  width: 1030px;
  max-width: 85%;
  background: white;
  margin: auto;
  box-shadow: 0 24px 84px 0 rgba(161, 161, 161, 0.10);
  border-radius: 20px;
  margin-bottom: 30px;
  margin-top: 30px;
  padding: 20px 35px;
  position: relative;
  zoom: .8;
  overflow: hidden;
}

.out-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0px 20px;
}

.form-right-absolute {
  position: absolute;
  top: 0px;
  right: 0px;
}

.form-left-absolute {
  position: absolute;
  top: 120px;
  z-index: 1;
  left: -210px;
}

.form-right-bottom-absolute {
  position: absolute;
  right: -170px;
  top: 15px;
}

/* back btn  */

.back-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 133px;
  height: 48px;
  padding: 5px 20px 5px 5px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.96px;
  background: transparent;
  cursor: pointer;
  transition: all .5s ease;
}

.back-btn.back-desk:hover {
  border: 1px solid black;
}


.back-btn .circle {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background-color: #02312F;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.back-btn .circle img {
  width: 6.3px;
  filter: brightness(0) invert(1);
  height: 10.3px;
}

/* question  */

.question {
  color: #02312F;
  font-size: 45px;
  font-style: normal;
  line-height: 110%;
  font-weight: 400;
  letter-spacing: -1px;
  text-align: center;
  width: 65%;
  margin: auto;
}

.belowQuestionText {
  padding-bottom: 15px;
  text-align: center;
  color: #2C2C2C;
  font-size: 18px;
}

/* card  */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  max-width: fit-content;
  margin: auto;
  justify-content: center;
  padding-bottom: 30px;
}

.card {
  position: relative;
  width: 276px;
  height: 176px;
  flex-shrink: 0;
  border-radius: 20px;
  background-color: #F6F6F6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #E4FBF5;
  padding: 0px;
  box-shadow: none;
}

.card:hover {
  background-color: #d7d7d7;
  border: 1px solid #033B38;
}

.card img {
  object-fit: contain;
  zoom: .9;
}

.card p {
  margin-top: 8px;
  color: #02312F;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 100%;
  padding-bottom: 20px;
  letter-spacing: -0.84px;
  width: 80%;
}

/* Selected state */
.card.selected {
  border: 1px solid #033B38;
  background-color: #E4FBF5;
}

.card .tick {
  display: none;
}

.card .tick {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 21px;
  height: 21px;
}

.card.selected .tick {
  display: block;
}

.card .tick img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* input fields  step 5 */

.input-wrapper {
  position: relative;
  display: inline-block;
  width: 400px;
}

#postcode {
  width: 100%;
  height: 60px;
  border-radius: 50px;
  border: 1px solid #033B38;
  background: #E4FBF5;
  padding: 0px 0px 0px 45px;
  font-size: 16px;
  box-sizing: border-box;
}

.searchBtn{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  width: 110px;
  height: 42px;
  border-radius: 10000px;
  background: #36E1B2;
  border: 1px solid #36E1B2;
  font-size: 18px;
  transition: all .5s ease;
}

input[type="text"] {
  transition: all .5 ease;
}

input[type="text"]:hover {
  background: #d4f6ec !important;
  /* slightly darker background */
  border-color: #02665f !important;
  /* stronger border */
}


/* Focus */
input[type="text"]:focus {
  outline: none;
  /* remove default blue outline */
  border-color: #00bfa5;
  /* accent color for focus */
  box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.2);
  /* soft glow */
  background: #ffffff !important;
  /* optional: make background white on focus */
}

#searchBtn:hover {
  background: white;
  border: 1px solid white;
  color: #36E1B2;
}

/* Hover */
#addressSelect:hover {
  background: #d7d7d7;
  /* slightly darker background */
  border-color: #d7d7d7;
  cursor: pointer;
}

/* Focus */
#addressSelect:focus {
  outline: none;
  /* remove default outline */
  border-color: #00bfa5;
  /* accent color for focus */
  box-shadow: 0 0 0 3px rgba(0, 191, 165, 0.2);
  /* subtle glow */
  background: white
    /* optional: white background on focus */
}

#addressSelect {
  width: 400px;
  height: 60px;
  border-radius: 50px;
  border: 1px solid #F7F7F7;
  background: #F7F7F7;
  padding: 0px 0px 0px 20px;
  font-size: 18px;
  box-sizing: border-box;
}

.address-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.address-fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 400px;
}

.address-fields input {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  border: 1px solid #033B38;
  background: #E4FBF5;
  padding: 0px 20px;
  font-size: 16px;
  box-sizing: border-box;
  color: #02312F;
}

.address-fields input:focus {
  outline: none;
  border-color: #00bfa5;
  background: #ffffff;
}

.address-fields input::placeholder {
  color: #666;
  font-style: italic;
}

/* Data8 Dropdown Styling */
#data8-dropdown-container {
  width: 100%;
  max-width: 400px;
  margin-top: 10px;
}

#data8-dropdown-container select {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  border: 1px solid #033B38;
  background: #E4FBF5;
  padding: 0px 20px;
  font-size: 16px;
  box-sizing: border-box;
  color: #02312F;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#data8-dropdown-container select:focus {
  outline: none;
  border-color: #00bfa5;
  background-color: #ffffff;
}

#otherOwnershipInput {
  border: 1px solid #033B38;
  background: #E4FBF5;
  width: -webkit-fill-available;
}


.ownership-option-other {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 20px 18px;
  margin: 8px;
  border-radius: 999px;
  border: 1px solid #E0E0E0;
  background: #F7F7F7;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #033B38;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

#otherInputWrapper {
  width: 100%;
}

.step-5-top,
.step-5-bottom {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.address-step label {
  color: #02312F;
  font-size: 18px;
  font-weight: 600;
}

#addressSelect {
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
}

/* next button  */


.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.next-btn {
  display: flex;
  height: 71px;
  padding: 13px 100px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border: none;
  border-radius: 40px;
  background: #36E1B2;
  color: #033B38;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 15px 34px 0 rgba(54, 225, 178, 0.20);
  transition: all 0.3s ease;
}

.next-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: rgba(54, 225, 178, 0.35) 0px 10px 20px 0px;
  background-color: rgb(255, 255, 255) !important;
}

/* Disable hover effects on mobile devices */
@media (hover: none) and (pointer: coarse) {
  .next-btn:hover {
    transform: none;
    box-shadow: 0 15px 34px 0 rgba(54, 225, 178, 0.20);
    background-color: #36E1B2 !important;
  }
}

.step-img {
  margin: 0 auto;
  padding-bottom: 120px;
}


/* step 6 */

/* Step 6 ownership options */
.ownership-option {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  margin: 8px;
  border-radius: 999px;
  border: 1px solid #E0E0E0;
  background: #F7F7F7;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #033B38;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.ownership-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 20px 18px;
  margin: 8px;
  border-radius: 999px;
  border: 1px solid #E0E0E0;
  background: #F7F7F7;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px !important;
  font-weight: 500;
  color: #033B38;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.ownership-option:hover {
  background-color: #d7d7d7;
}

/* first two */
.ownership-option:nth-child(1),
.ownership-option:nth-child(2),
.ownership-option:nth-child(4),
.ownership-option:nth-child(5) {
  width: 300px;
}

/* third (middle one) */
.ownership-option:nth-child(3) {
  width: 660px;
}

.title-options {
  display: flex;
  justify-content: space-between;
}


/* === Base Form Group === */
.name-main>.form-group,
.card-container .form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.name-main>.form-group::before,
.card-container .form-group::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 66%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 20px 20px;
  pointer-events: none;
}

/* Inputs need padding for icon space */
.name-main>.form-group input,
.card-container .form-group input[type="text"],
.card-container .form-group input[type="email"],
.card-container .form-group input[type="tel"] {
  padding-left: 60px;
}

/* === Specific Icons === */
/* Default (user icon for name inputs) */
.name-main>.form-group::before {
  background-image: url("images/user-light.png");
}

/* Email input icon */
/* Default (user icon) for text inputs */
.name-main>.form-group::before {
  background-image: url("images/user-light.png");
}

/* Email input icon */
.card-container .form-group:has(input[type="email"])::before {
  background-image: url("images/email.png");
}

/* Phone input icon */
.card-container .form-group:has(input[type="tel"])::before {
  background-image: url("images/phone.png");
}


/* === Focus State (make icon dark) === */
.name-main>.form-group:focus-within::before,
.card-container .form-group:focus-within::before {
  filter: brightness(0);
}

/* === Remove icon for terms/checkbox group === */
.form-group.terms::before {
  display: none;
}

.card-container .form-group:has(input[type="email"])::after,
.card-container .form-group:has(input[type="tel"])::after {
  content: "";
  position: absolute;
  top: 65%;
  transform: translateY(-50%);
  width: 100px;
  height: 45px;
  background-image: url(images/secured-logo.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  pointer-events: none;
  right: 20px;
}


.ownership-option .tick-icon {
  display: none;
  margin-right: 8px;
  width: 21px !important;
}

.tick-icon img {
  width: 100%;
}

.ownership-option.selected {
  border: 1px solid #033B38;
  background: #E4FBF5;
}

.ownership-option.selected .tick-icon {
  display: inline-flex;
}


/* step 8  */

.form-group input {
  width: 100%;
  height: 60px;
  border-radius: 50px;
  border: 1px solid #F7F7F7;
  background: #F7F7F7;
  padding: 0px 20px;
  font-size: 18px;
  box-sizing: border-box;
}

.form-group input:focus {
  border: 1px solid #033B38;
  background: #E4FBF5;
}

.contact-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
}

.form-group {
  width: 100%;
}

.contact-step>label:nth-child(1) {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.name-main {
  width: 100%;
  gap: 10px;
  display: flex;
  flex-direction: column;
}

.name-main label {
  font-size: 18px;
  font-weight: 700;
}

.form-group-parent {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.contact-step>.form-group>.title-options>.ownership-option {
  width: 130px !important;
  padding: 12px 10px;
  align-items: center;
  text-align: center;
  display: flex;
  justify-content: center;
}

p.belowButtonText {
  width: 75%;
  color: #2C2C2C;
  text-align: center;
  font-family: Montserrat;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  margin: auto;
  line-height: 163%;
  letter-spacing: -0.32px;
  padding-top: 30px;
}


.thankyou h2 {
  color: #02312F;
  text-align: center;
  font-family: Nagoda;
  font-size: 50px;
  font-style: normal;
  font-weight: 400;
  line-height: 110%;
  letter-spacing: -1.92px;
  padding-bottom: 15px;
  margin: auto;
  width: 56%;
}

.thankyou p {
  color: #2C2C2C;
  text-align: center;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 163%;
  letter-spacing: -0.36px;
  width: 80%;
  margin: auto;
}

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

.thankyou button {
  height: 71px;
  margin: auto;
  padding: 0px 30px;
  flex-shrink: 0;
  border: none;
  border-radius: 40px;
  background: #36E1B2;
  color: #033B38;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 15px 34px 0 rgba(54, 225, 178, 0.20);
  transition: all 0.3s ease;
}

.back-que-row {
  display: flex;
  gap: 10px;
  padding: 0px 0px 15px 0px;
}

.back-mob {
  display: none;
}

input[type="checkbox"] {
  width: 25px;
  height: 25px;
  border: initial;
  background: initial;
  padding: 10px;
  border-radius: 0;
  box-sizing: content-box;
  appearance: checkbox;
  -webkit-appearance: checkbox;
  -moz-appearance: checkbox;
}

.last-group label {
  font-size: 18px;
  font-weight: 700;
}

.form-group.last-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.last-step {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 640px;
}

/* .back-desk {
  position: absolute;
} */


.bottom-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 50%;
  gap: 30px;
}

.bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #0000001f;
  padding: 15px;
}

.bottom p {
  font-size: 12px;
  font-weight: 700;
}

.none {
  display: none;
}

.bottom img {
  width: 80px;
}


@media screen and (min-width:556px) {
  .back-que-row {
    flex-direction: column;
  }
}

@media screen and (max-width:992px) {


  .form-right-absolute,
  .form-left-absolute {
    display: none;
  }

  .question {
    width: 100%;
    padding: 25px 0px 25px 0px;
  }

  .form-right-bottom-absolute {
    display: none;
  }

  .step-img {
    display: none;
  }

  .form {
    margin-bottom: 100px;
    margin-top: 30px;
  }

  .step-5-top,
  .step-5-bottom {
    flex-direction: column;
    align-items: baseline;
  }

  #postcode,
  #addressSelect {
    width: 100%;
    max-width: 100%;
  }

  .postcode-box {
    width: 100%;
  }

  .address-step {
    width: 100%;
  }

  .input-wrapper {
    width: 100%;
  }

  .card-container {
    max-width: none;
  }

  button.back-btn.back-desk {
    position: absolute;
    top: 35px;
  }

  .progress-bar {
    margin-bottom: 70px;
  }

  .bottom-main {
    width: 90%;
  }

}

@media screen and (max-width:768px) {
  .main-p {
    width: 100% !important;
  }

  /* .form-group {
    width: 47.7%;
  } */

  .thankyou img {
    width: 100%;
  }

  .thankyou h2,
  .thankyou p {
    width: 100%;
  }

  .card p {
    width: 100%;
  }

  .ownership-option {
    width: 100% !important;
  }

}

@media screen and (max-width:670px) {
  .card-container {
    justify-content: center;
    max-width: 100% !important;
    gap: 10px;
  }

  .card {
    width: 40%;
    padding: 10px;
    height: auto;
    border-radius: 20px;
    gap: 0px;
  }

  .card img {
    width: 50px;
    height: 50px;
  }

  .card p {
    font-size: 14px;
  }

  img[alt="Solar Panels & Battery"],
  img[alt="5+ Bedrooms"] {
    width: 100px !important;
  }

  img[alt="Flat"] {
    width: 65px !important;
  }

}

@media screen and (max-width:556px) {
  .ownership-option {
    text-align: left;
  }

  .form-group {
    width: 100%;
  }

  p.belowButtonText {
    width: 100%;
  }

  .form-group-parent {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
  }

  .contact-step>.form-group>.title-options>.ownership-option {
    width: 36% !important;
    margin: 0px;
  }

  .title-options {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  .back-btn .circle {
    width: 25px;
    height: 25px;
  }

  .next-btn {
    height: auto;
    padding: 13px 15px;
    width: 90%;
  }

  .form {
    padding: 12px 10px 40px 10px
  }

  .out-form h2 {
    font-size: 35px;
  }

  .question {
    padding: 0px 10px 25px 10px;
    font-size: 26px;
  }


  .back-que-row {
    padding: 0px;
  }

  .card-container .form-group:has(input[type="email"])::after,
  .card-container .form-group:has(input[type="tel"])::after {
    width: 80px;
    height: 80px;
  }

  .form {
    margin-bottom: 25px;
    zoom: 1;
    margin-top: 10px;
  }

  .thankyou h2 {
    font-size: 30px;
    width: 70% !important;
  }

  button.back-btn.back-desk {
    top: 30px;
  }

  .none {
    display: block;
  }

  .belowQuestionText {
    font-size: 16px;
  }



}

/* @media screen and (max-height: 1200px) and (min-height: 556px) {
  .form {
    zoom: 0.7;
  }
} */

/* ================== SLIDING ANIMATIONS ================== */

/* Slide in from right (next step) */
@keyframes slideInRight {
  from {
    transform: translateX(50%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide in from left (previous step) */
@keyframes slideInLeft {
  from {
    transform: translateX(-50%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide out to left (going to next step) */
@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50%);
    opacity: 0;
  }
}

/* Slide out to right (going to previous step) */
@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(50%);
    opacity: 0;
  }
}

/* Animation classes */
.slide-in-right {
  animation: slideInRight 0.3s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.3s ease-out forwards;
}

.slide-out-left {
  animation: slideOutLeft 0.2s ease-in forwards;
}

.slide-out-right {
  animation: slideOutRight 0.2s ease-in forwards;
}

/* Container for smooth transitions - only card-container slides */
.card-container {
  position: relative;
  overflow: hidden;
}

/* Hide content during animation */
.card-container.animating {
  pointer-events: none;
}