/*-------------------------------------------*/
/* ESTIMATE FORM */
/*-------------------------------------------*/
.estimate-form {
  position: relative;
  width: 100%;
}

.estimate-form-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: start;
  gap: 40px;
}

.estimate-form-column {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.estimate-form-field {
  width: 100%;
  min-width: 0;
}

/*-------------------------------------------*/
/* LABELS */
/*-------------------------------------------*/
.estimate-form-field > label,
.estimate-form-field > legend {
  display: block;
  margin: 0 0 9px;
  padding: 0;
  color: var(--color-dark-green);
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.3;
  font-weight: var(--weight-semi-bold);
  text-align: left;
}

.estimate-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

/*-------------------------------------------*/
/* INPUTS */
/*-------------------------------------------*/
.estimate-form input[type="text"],
.estimate-form input[type="tel"],
.estimate-form input[type="email"],
.estimate-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 17px;
  display: block;
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-green);
  border-radius: 12px 4px 12px 4px;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  transition: border-color .2s ease,box-shadow .2s ease;
}

.estimate-form textarea {
  resize: vertical;
}

.estimate-form #estimateAddress {
  min-height: 100px;
}

.estimate-form #estimateDescription {
  min-height: 150px;
}

.estimate-form input::placeholder,
.estimate-form textarea::placeholder {
  color: var(--color-black);
  opacity: .5;
}

.estimate-form input:hover,
.estimate-form textarea:hover {
  border-color: var(--color-dark-green);
}

.estimate-form input:focus,
.estimate-form textarea:focus {
  border-color: var(--color-lime);
  box-shadow: 0 0 0 3px rgba(149,193,31,.18);
}

/*-------------------------------------------*/
/* PHONE */
/*-------------------------------------------*/
.estimate-phone-control {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
}

.estimate-phone-control > input[type="tel"] {
  border-radius: 0 4px 12px 0;
  border-left: 0;
}

.estimate-country-dropdown {
  position: relative;
}

.estimate-country-button {
  height: 56px;
  min-width: 112px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-green);
  border-radius: 12px 0 0 4px;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.estimate-country-button:hover {
  border-color: var(--color-dark-green);
}

.estimate-country-button:focus {
  position: relative;
  z-index: 2;
  border-color: var(--color-lime);
  box-shadow: 0 0 0 3px rgba(149,193,31,.18);
}

.estimate-country-flag,
.estimate-country-option-flag {
  width: 24px;
  height: 18px;
  flex: 0 0 24px;
  display: block;
  object-fit: contain;
}

.estimate-country-arrow {
  width: 0;
  height: 0;
  margin-left: 1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-black);
  transition: transform .2s ease;
}

.estimate-country-button[aria-expanded="true"] .estimate-country-arrow {
  transform: rotate(180deg);
}

.estimate-country-list {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 7px);
  left: 0;
  width: 320px;
  max-width: calc(100vw - 40px);
  max-height: 280px;
  padding: 6px;
  overflow-y: auto;
  background: var(--color-white);
  border: 1px solid var(--color-green);
  border-radius: 12px 4px 12px 4px;
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}

.estimate-country-list[hidden] {
  display: none;
}

.estimate-country-option {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--color-black);
  border: 0;
  border-radius: 8px 3px 8px 3px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.estimate-country-option:hover,
.estimate-country-option:focus,
.estimate-country-option.is-selected {
  background: var(--color-cream);
  outline: none;
}

.estimate-country-name {
  min-width: 0;
}

.estimate-country-dial {
  color: var(--color-green);
  font-weight: var(--weight-semi-bold);
}

.estimate-field-invalid .estimate-country-button,
.estimate-field-invalid .estimate-phone-control > input[type="tel"] {
  border-color: var(--color-green);
}

/*-------------------------------------------*/
/* SERVICES */
/*-------------------------------------------*/
.estimate-services-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 13px 20px;
}

.estimate-checkbox {
  position: relative;
  width: 100%;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: var(--color-black) !important;
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: var(--weight-regular) !important;
  cursor: pointer;
  text-align: left;
}

.estimate-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.estimate-checkbox-control {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: var(--color-white);
  border: 2px solid var(--color-green);
  border-radius: 4px;
  transition: background .2s ease,border-color .2s ease;
}

.estimate-checkbox-control::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--color-dark-green);
  border-bottom: 2px solid var(--color-dark-green);
  opacity: 0;
  transform: rotate(45deg);
}

.estimate-checkbox:hover .estimate-checkbox-control {
  border-color: var(--color-dark-green);
}

.estimate-checkbox input:checked + .estimate-checkbox-control {
  background: var(--color-lime);
  border-color: var(--color-lime);
}

.estimate-checkbox input:checked + .estimate-checkbox-control::before {
  opacity: 1;
}

.estimate-checkbox-text {
  min-width: 0;
}

/*-------------------------------------------*/
/* FILE UPLOADER */
/*-------------------------------------------*/
.estimate-file-uploader {
  position: relative;
  width: 100%;
}

.estimate-file-uploader > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.estimate-file-dropzone {
  position: relative;
  width: 100%;
  min-height: 115px;
  margin: 0 !important;
  padding: 22px 24px;
  display: flex !important;
  align-items: center;
  gap: 18px;
  background: var(--color-dark-green);
  border: 2px dashed var(--color-lime);
  border-radius: 18px 5px 18px 5px;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: background .2s ease;
}

.estimate-file-dropzone::after {
  content: "";
  position: absolute;
  top: 0;
  right: 30px;
  width: 65px;
  height: 4px;
  background: var(--color-lime);
  border-radius: 0 0 4px 4px;
}

.estimate-file-dropzone:hover {
  background: var(--color-green);
}

.estimate-file-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-lime);
  color: var(--color-dark-green);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1;
  font-weight: var(--weight-semi-bold);
}

.estimate-file-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.estimate-file-title {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.3;
  font-weight: var(--weight-semi-bold);
}

.estimate-file-text {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  font-weight: var(--weight-regular);
}

/*-------------------------------------------*/
/* FILE PREVIEW */
/*-------------------------------------------*/
.estimate-file-preview {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}

.estimate-file-preview:not(:empty) {
  margin-top: 14px;
}

.estimate-preview-item {
  position: relative;
  min-width: 0;
  padding: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-green);
  border-radius: 12px 4px 12px 4px;
  overflow: hidden;
}

.estimate-preview-item img {
  width: 100%;
  height: 100px;
  display: block;
  object-fit: cover;
  border-radius: 10px 3px 10px 3px;
}

.estimate-preview-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark-green);
  color: var(--color-white);
  border: 0;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}

.estimate-preview-remove:hover {
  background: var(--color-green);
}

.estimate-preview-name {
  width: 100%;
  margin-top: 7px;
  display: block;
  overflow: hidden;
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*-------------------------------------------*/
/* CONTACT METHOD */
/*-------------------------------------------*/
.estimate-contact-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.estimate-radio {
  position: relative;
  min-width: 125px;
  margin: 0 !important;
  padding: 11px 17px;
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 2px solid var(--color-green);
  border-radius: 30px;
  color: var(--color-dark-green) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: var(--weight-regular) !important;
  cursor: pointer;
  transition: background .2s ease,border-color .2s ease,color .2s ease;
}

.estimate-radio:hover {
  border-color: var(--color-dark-green);
}

.estimate-radio:has(input:checked) {
  background: var(--color-dark-green);
  border-color: var(--color-dark-green);
  color: var(--color-white) !important;
}

.estimate-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.estimate-radio-control {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: var(--color-white);
  border: 2px solid var(--color-green);
  border-radius: 50%;
}

.estimate-radio-control::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--color-lime);
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(0);
  transition: transform .2s ease;
}

.estimate-radio input:checked + .estimate-radio-control {
  border-color: var(--color-lime);
}

.estimate-radio input:checked + .estimate-radio-control::after {
  transform: translate(-50%,-50%) scale(1);
}

/*-------------------------------------------*/
/* SUBMIT */
/*-------------------------------------------*/
.estimate-form-submit {
  width: 100%;
  padding-top: 0;
  text-align: left;
}

.estimate-form-submit .site-btn {
  border: 0;
}

.estimate-required {
  color: var(--color-green);
  font-weight: var(--weight-semi-bold);
}

/*-------------------------------------------*/
/* VALIDATION */
/*-------------------------------------------*/
.estimate-field-error {
  display: block;
  width: 100%;
  margin-top: 7px;
  color: var(--color-dark-green);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  font-weight: var(--weight-semi-bold);
}

.estimate-form-status {
 /* margin: 12px 0 0;*/
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.estimate-form-status.is-success {
  color: var(--color-dark-green);
}

/*================================================*/
/* 1080PX */
/*================================================*/
@media (max-width:1024px) {
  .estimate-form-grid {
    display: flex;
    flex-direction: column;
    gap: 22px!important;
  }

  .estimate-form-column {
    display: contents;
  }

  .estimate-form-column-left .estimate-form-field:nth-child(1) {
    order: 1;
  }

  .estimate-form-column-left .estimate-form-field:nth-child(2) {
    order: 2;
  }

  .estimate-form-column-left .estimate-form-field:nth-child(3) {
    order: 3;
  }

  .estimate-form-column-left .estimate-form-field:nth-child(4) {
    order: 4;
  }

  .estimate-form-column-left .estimate-form-field:nth-child(5) {
    order: 5;
  }

  .estimate-form-column-right .estimate-form-field:nth-child(1) {
    order: 6;
  }

  .estimate-form-column-right .estimate-form-field:nth-child(2) {
    order: 7;
  }

  .estimate-form-column-right .estimate-form-field:nth-child(3) {
    order: 8;
  }

  .estimate-form-submit {
    order: 9;
  }
}

/*================================================*/
/* 768PX */
/*================================================*/
@media (max-width:768px) {
  .estimate-file-preview {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

/*================================================*/
/* 560PX */
/*================================================*/
@media (max-width:560px) {
  .estimate-form-grid {
    gap: 18px!important;
  }

  .estimate-services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .estimate-phone-row {
    grid-template-columns: 140px minmax(0,1fr);
  }

  .estimate-file-dropzone {
    min-height: 105px;
    padding: 18px;
  }

  .estimate-contact-options {
    align-items: stretch;
  }

  .estimate-radio {
    flex: 1 1 125px;
  }

  .estimate-form-submit .site-btn {
    width: 100%;
  }
}

/*================================================*/
/* 480PX */
/*================================================*/
@media (max-width:480px) {
  .estimate-phone-row {
    grid-template-columns: 1fr;
  }

  .estimate-file-dropzone {
    align-items: flex-start;
    gap: 14px;
  }

  .estimate-file-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: 26px;
  }

  .estimate-file-preview {
    grid-template-columns: 1fr;
  }

  .estimate-contact-options {
    flex-direction: column;
  }

  .estimate-radio {
    width: 100%;
    min-width: 0;
    max-height: 32px;
  }
}
















/*-------------------------------------------*/
/* INTERNATIONAL PHONE FIELD */
/*-------------------------------------------*/

.estimate-phone-field .iti{
    width:100%;
    display:block;
}

.estimate-phone-field .iti input{
    width:100%;
}

.estimate-phone-field .iti__selected-country{
    padding-left:15px;
    padding-right:12px;
}

.estimate-phone-field .iti__selected-dial-code{
    color:var(--color-black);
    font-family:var(--font-body);
    font-weight:var(--weight-semi-bold);
}

.estimate-phone-field .iti__dropdown-content{
    z-index:99999;
    background:var(--color-white);
    border-radius:14px 5px 14px 5px;
    overflow:hidden;
}

.estimate-phone-field .iti__country{
    font-family:var(--font-body);
    color:var(--color-black);
}

.estimate-phone-field .iti__country.iti__highlight{
    background:var(--color-cream);
}

.estimate-phone-field .iti__search-input{
    font-family:var(--font-body);
    color:var(--color-black);
    background:var(--color-white);
}

.estimate-phone-field .iti__dial-code{
    color:var(--color-green);
}

.estimate-phone-field.estimate-field-invalid .iti input{
    border-color:var(--color-green);
}

/*-------------------------------------------*/
/* DEFAULT FORM CARD - SHARED HOME + CONTACT */
/*-------------------------------------------*/
.estimate-form {
  position: relative;
  width: 100%;
  padding: 42px;
  background: var(--color-dark-green);
  border: 0;
  border-radius: 30px 8px 30px 8px;
}

.estimate-form::before {
  content: "";
  position: absolute;
  top: 0;
  right: 42px;
  width: 90px;
  height: 6px;
  background: var(--color-lime);
  border-radius: 0 0 6px 6px;
}

.estimate-form .estimate-form-grid {
  gap: 45px;
}

.estimate-form .estimate-form-field > label,
.estimate-form .estimate-form-field > legend {
  color: var(--color-white);
}

.estimate-form .estimate-required {
  color: var(--color-lime);
}

.estimate-form input[type="text"],
.estimate-form input[type="tel"],
.estimate-form input[type="email"],
.estimate-form textarea {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-lime);
}

.estimate-form input[type="text"]:hover,
.estimate-form input[type="tel"]:hover,
.estimate-form input[type="email"]:hover,
.estimate-form textarea:hover,
.estimate-form input[type="text"]:focus,
.estimate-form input[type="tel"]:focus,
.estimate-form input[type="email"]:focus,
.estimate-form textarea:focus {
  background: var(--color-white);
  border-color: var(--color-lime);
  box-shadow: none;
}

.estimate-form .estimate-country-button {
  background: var(--color-cream);
  border-color: var(--color-lime);
}

.estimate-form .estimate-country-button:hover,
.estimate-form .estimate-country-button:focus {
  border-color: var(--color-lime);
  box-shadow: none;
}

.estimate-form .estimate-country-list {
  background: var(--color-white);
  border-color: var(--color-lime);
}

.estimate-form .estimate-country-option:hover,
.estimate-form .estimate-country-option:focus,
.estimate-form .estimate-country-option.is-selected {
  background: var(--color-cream);
}

.estimate-form .estimate-checkbox,
.estimate-form .estimate-checkbox-text {
  color: var(--color-white) !important;
}


.estimate-sms-consent .estimate-checkbox{
  display: flex!important;
  align-items: flex-start;
}

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


.form-pp-links span,
.form-pp-links a{
  color: var(--color-white);
  font-size: 14px;
}

.estimate-form .estimate-checkbox-control {
  background: transparent;
  border-color: var(--color-lime);
}

.estimate-form .estimate-checkbox:hover .estimate-checkbox-control {
  border-color: var(--color-white);
}

.estimate-form .estimate-checkbox input:checked + .estimate-checkbox-control {
  background: var(--color-lime);
  border-color: var(--color-lime);
}

.estimate-form .estimate-file-dropzone {
  background: var(--color-green);
  border-color: var(--color-lime);
}

.estimate-form .estimate-file-dropzone:hover {
  background: var(--color-green);
}

.estimate-form .estimate-file-icon {
  background: var(--color-lime);
  color: var(--color-dark-green);
}

.estimate-form .estimate-file-title,
.estimate-form .estimate-file-text {
  color: var(--color-white);
}

.estimate-form .estimate-radio {
  background: transparent;
  border-color: var(--color-lime);
  color: var(--color-white) !important;
}

.estimate-form .estimate-radio:hover {
  border-color: var(--color-white);
}

.estimate-form .estimate-radio:has(input:checked) {
  background: var(--color-lime);
  border-color: var(--color-lime);
  color: var(--color-dark-green) !important;
}

.estimate-form .estimate-radio-control {
  background: var(--color-white);
  border-color: var(--color-lime);
}

.estimate-form .estimate-radio input:checked + .estimate-radio-control {
  border-color: var(--color-dark-green);
}

.estimate-form .estimate-radio-control::after {
  background: var(--color-dark-green);
}

.estimate-form .estimate-form-submit .site-btn {
  background: var(--color-lime);
  color: var(--color-black);
  border: 0;
  width: 100%;
}

.estimate-form .estimate-form-submit .site-btn:hover {
  background: var(--color-white);
  color: var(--color-dark-green);
}

.estimate-form .estimate-field-error {
  color: var(--color-lime);
}

.estimate-form .estimate-form-status {
  color: var(--color-white);
}

.estimate-form .estimate-form-status.is-success {
  color: var(--color-lime);
}

.estimate-form .estimate-phone-field .iti input,
.estimate-form .estimate-phone-field .iti__dropdown-content {
  background: var(--color-white);
}

.estimate-form .estimate-phone-field .iti__country.iti__highlight {
  background: var(--color-cream);
}

/*-------------------------------------------*/
/* SHARED FORM RESPONSIVE */
/*-------------------------------------------*/
@media (max-width:1024px) {
  .estimate-form {
    width: 100%;
    padding: 36px;
  }

  
  /* Keep SMS consent and policy links at the bottom */
  .estimate-form-column-right .estimate-sms-consent {
    order: 10;
  }

  .estimate-form-column-right .estimate-form-submit {
    order: 11;
  }

  .estimate-form-column-right .form-pp-links {
    order: 12;
  }

}

@media (max-width:768px) {
  .estimate-form {
    padding: 30px;
    border-radius: 25px 7px 25px 7px;
  }
}

@media (max-width:560px) {
  .estimate-form {
    padding: 24px 20px;
    border-radius: 20px 6px 20px 6px;
  }

  .estimate-form::before {
    right: 24px;
    width: 65px;
    height: 5px;
  }
}

@media (max-width:480px) {
  .estimate-form {
    padding: 22px 16px;
  }
}

