/* Base Styles */
.custom-form {
  border-radius: 32px;
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  background: #004890;
  padding-left: 3em;
}

.custom-form button {
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-family: inherit;
}

/* Recommend Button */
.custom-recommend-button {
  width: 250px;
  height: 200px;
  background: #BEF264 !important;
  border: none !important;
  padding: 0;
  cursor: pointer;
}

.custom-recommend-button .btn-text {
  z-index: 1;
  color: #004890;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 200px;
  white-space: normal;
}

.custom-recommend-button .btn-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 5px;
}

/* Form Container */
.form-container {
  border-radius: 12px;
  margin: auto;
  color: white;
  font-family: sans-serif;
  max-width: 73%;
  box-sizing: border-box;
}

/* Form Layout */
.form-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 180px;
}

.form-group label {
  margin-bottom: 5px;
  font-size: 14px;
}

select,
input[type="text"] {
  padding: 10px;
  border-radius: 10px;
  border: none;
  color: #333;
  font-size: 14px;
  width: 100%;
  max-width: 250px;
  box-sizing: border-box;
}

.form-group.checkbox-group {
  display: flex;
  flex-direction: row-reverse; /* ✅ flips order */
  align-items: center;
  justify-content: flex-start; /* keep them aligned nicely */
  background-color: rgba(255, 255, 255, 0.20);
  padding: 5px 0px 5px 25px; /* top, right, bottom, left */
  border-radius: 5px;
  padding-right: 10px;
}

.form-group.checkbox-group label {
  margin: 0;
}



/* ------------------------------
   Responsive Styles
------------------------------ */
@media (min-width: 1101px) {
    .custom-form {
      padding-left:20px;
      gap: 10px;
    }
    
    .form-group.checkbox-group {
        gap: 40vh;
        
    }
}

.custom-recommend-button {
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: transparent; /* no background, only SVG fill */
  margin-left:  1.5em;
}

.custom-recommend-button:hover {
    background: linear-gradient(275deg, #9DC3F9, #6466F2) !important;
    color: white !important;
}

.custom-recommend-button:hover * {
    color: white !important;
    fill: white !important; /* For SVG icons */
}


.custom-dropdown {
  position: relative;
  width: 100%;
  max-width: 320px;
  font-family: 'Roboto', 'Arial';
}

.dropdown-selected {
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  padding: 8px;
  font-size: 13px;
  color: #929292;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.dropdown-selected:hover {
  border-color: #004890;
}

.dropdown-selected::after {
  content: "▾";
  position: absolute;
  right: 16px;
  font-size: 13px;
  color: #666;
}

.dropdown-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  display: none;
  z-index: 999;
  font-family: 'Roboto', 'Arial';
  padding-left: 0 !important;
}

.dropdown-options.show {
  display: block;
}

.dropdown-options li {
  padding: 5px 20px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'Roboto', 'Arial';
}

.dropdown-options li:hover {
  background: #004890;
  border-radius: 12px;
  color: white;
}

.dropdown-options li.active {
  font-weight: 600;
  border-radius: 12px;
  background: #004890;
  color: white;
}

@media (max-width: 1080px) {
  .custom-form {
    border-radius: 32px;
    display: flex;
    flex-direction: column; 
    align-items: stretch;
    font-family: 'Poppins', sans-serif;
    gap: 20px;
    justify-content: flex-start;
        padding-left: 0 !important;

  }

  .custom-recommend-button {
    border-radius: 0 0 32px 32px !important;
    margin-left: 0% !important;
    height: 100px !important;
    width: 100%;
  }

  .form-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* width: 100%; */
  }

  .form-container {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding:20px;
  }

.form-group.checkbox-group {
  display: flex;
  flex-direction: row-reverse; /* ✅ flips order */
  align-items: center;
  justify-content: flex-start; /* keep them aligned nicely */
  background-color: rgba(255, 255, 255, 0.20);
  padding: 5px 0px 5px 25px; /* top, right, bottom, left */
  border-radius: 5px;
}

.form-group.checkbox-group label {
  margin: 0;
}

input[type="checkbox"] {
  width: 220px;
  height: 15px;
  margin-top: 0;
  position: relative;
  left: 80px;
}
}

@media (max-width: 700px) {

  .custom-form {
    flex-direction: column;
    gap: 15px;
    padding-left: 0 !important;
  }

  .form-container {
    padding: 15px;
  }
  
  .form-group.checkbox-group {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
    background-color: rgba(255, 255, 255, 0.20);
    padding: 5px 0px 5px 25px;
    border-radius: 5px;
  }

.form-group.checkbox-group label {
  margin: 0;
}
  
  input[type="checkbox"] {
    width: 100%;
    position: relative;
    left: 40px;
    }
  
  .custom-recommend-button {
    border-radius: 0 0 32px 32px !important;
    margin-left: 0% !important;
    height: 100px !important;
  }
}
