.quote-form-wrapper {
  display: flex;
  align-content: flex-start;
  justify-content: center;
  gap: 80px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 150px  20px;
}

.quote-form-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 56px;
  height: 780px;
}

.quote-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-header h1 {
  width: 100%;
  max-width: 600px;
}

#quote-form {
  font-family: var(--font-montserrat);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  width: 100%;
}

.btn-text {
  color: var(--color-secondary-white);
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.quote-form-image {
  max-width: 840px;
  width: 100%;
  height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.quote-form-image img {
  width: 100%;
  height: 100%;
}

/* quote form */

/* Wrapper */
.custom-select-wrapper {
  display: flex;
  flex-direction: column;
  width: 600px;
  font-family: var(--font-montserrat);
  position: relative;
}

/* Label */
.custom-select-wrapper label,
.form-group label {
  font-size: 16px;
  letter-spacing: 1px;
  color: #9a9a9a;
  text-transform: uppercase;
  margin-bottom: 6px;
}


/* Trigger */
.qoute-select-trigger {
  padding: 10px 15px;
  border: 1px solid #ccc;
  background: #ECEBEA;
  border-radius: 25px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
}

/* Arrow */
.qoute-select-trigger .arrow {
  border: solid #333;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transform: rotate(45deg); /* down arrow */
  transition: transform 0.3s ease;
  margin-left: 10px;
}

/* Rotate arrow when open */
.quote-custom-select.open .arrow {
  transform: rotate(-135deg); /* up arrow */
}

/* Dropdown menu */
.quote-custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  border: 1px solid #ccc;
  background-color: #ECEBEA;
  border-radius: 5px;
  margin: 5px 0 0 0;
  padding: 0;
  list-style: none;
  display: none;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  min-width: 100%; /* matches trigger width */
}

/* Options */
.quote-custom-options .custom-option {
  padding: 10px 15px;
  cursor: pointer;
}

.quote-custom-options .custom-option:hover {
  background-color: var(--color-secondary-blue);
  color: var(--color-secondary-white);
}

.quote-custom-options .custom-option.disabled {
  color: #999;
  cursor: not-allowed;
}

/* Container */
.select-container,
.form-group input {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ECEBEA;
  border-radius: 25px;
  border: none;
  overflow: hidden;
  height: 40px;
  padding: 0 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: var(--font-montserrat);
  position: relative;
}

.consent {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}

input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #ECEBEA inset !important;
  box-shadow: 0 0 0px 1000px #ECEBEA inset !important;
  -webkit-text-fill-color: #333 !important;
  transition: background-color 5000s ease-in-out 0s;
}

input:-moz-autofill,
select:-moz-autofill,
textarea:-moz-autofill {
  box-shadow: 0 0 0px 1000px #ECEBEA inset !important;
  -moz-text-fill-color: #333 !important;
}


/* ===========================
   RESPONSIVE DESIGN
=========================== */

/* Tablets (≤ 1024px) */
@media (max-width: 1024px) {
  .quote-form-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 100px 20px;
    gap: 60px;
  }

  .quote-form-content {
    align-items: center;
    height: auto;
    gap: 40px;
  }

  .quote-header h1 {
    max-width: 100%;
    text-align: center;
  }

  .quote-form-container {
    width: 100%;
  }

  #quote-form{
    width: 100%;
    max-width: none;
  }

  .form-row {
    align-items: stretch;
  }

  .custom-select-wrapper,
  .form-group {
    width: 100%;
  }

  .quote-form-image {
    max-width: 100%;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .quote-form-wrapper {
    padding: 40px 20px;
    gap: 40px;
  }

  .quote-header h1 {
    font-size: 28px;
    text-align: center;
  }

  .quote-header p {
    font-size: 20px !important;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .custom-select-wrapper,
  .form-group {
    width: 100%;
  }

  .quote-form-image {
    height: 100%;
  }
}