/* ===== Quote Form ===== */
.quote-form-title{
  color: #354637;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-size: 80px;
  letter-spacing: -2px;
  line-height: 80px;
}

.quote-form-subtitle{
  color: #354637;
}

.highlight {
  color: #CF7525;
}
.quote-section{
  background-color: #3d543c;
}

.quote-form-wrapper{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  background-color: #f9faf3;
  padding: 200px 80px;
  border-radius:  0 0 60px 60px;
}

.quote-form-content{
  width: 600px;
  margin: auto 2rem;
}

.quote-form-content p{
  margin-top: 20px;
  letter-spacing: 0.5px;
}

#quote-form {
  padding: 1.5rem 0;
  border-radius: 10px;
  font-family: Arial, sans-serif;
}

#quote-form label {
  display: block;
  margin-top: 1rem;
  font-weight: 100;
  color: #374151;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #354637;
}

#quote-form input,
#quote-form button {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.95rem;
  background-color: #D9D9D9;
}

#quote-form input:focus,
#quote-form textarea:focus {
  border-color: #CF7525;
  outline: none;
  box-shadow: 0 0 0 2px rgba(235, 149, 37, 0.2);
}

input[type="checkbox"] {
  width: auto;
  max-width: 20px;
  border-radius: 4px !important;
  accent-color: #CF7525;
}

#consent {
  width: 20px;
  height: 20px;
  margin: 0;              /* remove default Safari spacing */
  vertical-align: middle; /* align with text */
  appearance: none;       /* reset iOS Safari default styles */
  -webkit-appearance: none;
  border: 1px solid #666;
  border-radius: 3px;
  display: inline-block;
  position: relative;
}
 
.consent {
  display: flex;
  align-items: center; /* forces vertical centering */
  gap: 0.5rem;
}

.consent p {
  margin: 0;
  color: #949494;
  font-size: 16px;
  line-height: 1.4; /* keep consistent spacing */
}

#quote-form button {
  background: #CF7525;
  color: #fff;
  width: 160px;
  cursor: pointer;
  font-size: 12px;
  border-radius: 25px 0 25px 0;
  margin-top: 1.5rem;
  transition: background 0.3s ease;
}


#quote-form button:hover {
  background: #DE9A5E;
}

.form-row{
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-group{
  width: 100%;
}

/* ===== Select Dropdown Styles ===== /
/ Wrapper to position arrow */
.select-wrapper select {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #e0e0e0; /* adjust to your gray */
  font-size: 14px;
  color: #555;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Custom arrow (like your screenshot) */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #a05a00; /* brown/orange arrow color */
}

.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  background: #D9D9D9;
  font-size: 1rem;
  color: #949494;
  appearance: none;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  margin-top: 0.3rem;
}

/* Custom arrow using inline SVG */
.select-wrapper .select-arrow {
  position: absolute;
  right: 1rem;
  top: 70%;
  transform: translateY(-50%) rotate(0deg);
  width: 20px;
  height: 20px;
  pointer-events: none;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.select-wrapper .select-arrow svg {
  width: 25px;
  height: 25px;
  fill: #a35d20;;
  transition: transform 0.3s ease;
}

/* Rotate on open */
.select-wrapper.open .select-arrow svg {
  transform: rotate(180deg);
}

/* ===== Modal Styles ===== */
#quote-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);

  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
}

#quote-modal.show {
  display: flex; /* JS adds this */
  animation: fadeIn 0.3s ease-in-out;
}

#quote-modal .modal-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 450px;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}

/* Buttons */
#quote-modal button {
  padding: 0.6rem 1.2rem;
  border: none;
  background: #CF7525;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#quote-modal button:hover {
  background: #a35d20;
}

.quote-form-image{
  margin: auto 2rem;
}

.quote-form-image img{
  border-radius: 80px 0 80px 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .quote-form-title {
    font-size: 50px;
    line-height: 60px;
    letter-spacing: -1px;
  }

  .quote-form-wrapper {
    flex-direction: column;
    padding: 40px;
    gap: 2rem;
    border-radius: 0 0 40px 40px;
  }

  .quote-form-content {
    width: 100%;
    margin: 0;
  }

  .quote-form-image {
    margin: 0 auto;
    max-width: 500px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .quote-form-title {
    font-size: 32px;
    line-height: 38px;
    text-align: center;
    align-items: center;
  }

  .quote-form-subtitle {
    text-align: center;
    font-size: 16px;
    margin-top: 8px;
  }

  .quote-form-wrapper {
    flex-direction: column;
    padding: 20px;
    border-radius: 0 0 30px 30px;
  }

  .quote-form-content {
    width: 100%;
    margin: 0;
  }

  .form-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  #quote-form label {
    font-size: 14px;
  }

  #quote-form input,
  #quote-form select,
  #quote-form textarea {
    font-size: 14px;
    padding: 0.5rem;
  }

  #quote-form button {
    width: 100%;
    font-size: 14px;
    border-radius: 20px;
  }

  .consent p {
    font-size: 14px;
    line-height: 20px;
  }

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

  #quote-modal .modal-content {
    width: 95%;
    padding: 1rem;
  }
}
