/* Minimal Start/Stop Service Form Styles */
body {
  padding: 0px;
  margin: 0px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  min-height: 100vh;
  overflow-y: auto;
}

iframe[style] {
  min-height: 2000px !important;
  height: auto !important;
}

h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 31px !important;
  font-weight: lighter;
  margin-left: 0px;
  margin-bottom: 18px;
}

h4 {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin: 20px 0 10px;
}

h4 p {
  font-size: 13px;
  font-weight: normal;
  color: #666;
  margin: 5px 0;
}

label {
  display: block;
  margin-bottom: 3px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
}

.formControlLabel {
  display: block;
  margin-bottom: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
}

.formRequired {
  color: #b94a48;
}

input, textarea, select {
  border: 1px solid #d4d4d4;
  padding: 6.5px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #999;
}

.rsform-input-box, .rsform-text-box {
  width: 100%;
}

textarea {
  resize: vertical;
}

.formBody {
  margin-bottom: 12px;
}

.mainform {
  margin: 10px 0px;
  overflow: hidden;
}

.rsform-block {
  margin-bottom: 10px;
}

/* Form layout */
.left-form {
  width: 49%;
  float: left;
}

.right-form {
  width: 49%;
  float: right;
}

.left-form input, .left-form select, .left-form textarea {
  width: 95%;
}

.right-form input, .right-form select, .right-form textarea {
  width: 95%;
}

/* Radio and checkbox styles */
.rsform-radio, .rsform-checkbox {
  margin-right: 5px;
  cursor: pointer;
}

.formBody label {
  display: inline;
  margin-right: 15px;
  cursor: pointer;
}

/* Radio buttons inline in one row */
.formBody.radio-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.formBody.radio-inline label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  white-space: nowrap;
}

/* Error messages */
.error {
  color: #b94a48;
  padding-left: 0;
  vertical-align: middle;
  font-size: 13px;
  font-weight: normal;
  display: block;
  margin-top: 3px;
}

input.error, textarea.error {
  color: #424e59;
  border-color: #b94a48;
}

/* Submit button */
.rsform-submit-button, .submit-btn {
  border-radius: 20px;
  padding: 12px 30px;
  color: #fff;
  background: #1C9DD4;
  border: none;
  cursor: pointer;
  font-family: arial;
  font-size: 14px;
  font-weight: bold;
}

input[type="button"] {
  background-color: #0074cc;
  color: #ffffff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

input#start_stop_sendrequest:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loader */
.loader {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  right: 0px;
  left: 0px;
  background: rgba(0, 0, 0, 0.5);
  bottom: 0px;
  z-index: 9999;
}

.lds-dual-ring {
  display: block;
  width: 80px;
  height: 80px;
  margin: auto;
  vertical-align: middle;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Address search field */
.add_search_fie {
  position: relative;
}

.add_search_fie input#service_address_search,
.add_search_fie input#mailing_address_search {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  background: rgb(255, 255, 255) !important;
  z-index: 10;
}

/* Hidden elements */
.hidden {
  display: none !important;
}

/* Info text - styled to pop out */
.infor-cu {
  font-size: 13px;
  color: #0d47a1;
  line-height: 1.6;
  margin-top: 10px;
  margin-bottom: 15px;
  padding: 12px 15px;
  background: #e3f2fd;
  border-left: 4px solid #2373c1;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.infor-cu strong {
  color: #1565c0;
  font-weight: 600;
}

/* Cookie notice */
.cookie_cu_new {
  margin-bottom: 15px;
}

.cookie_cu_new p {
  cursor: pointer;
  border: 2px solid #2373c1;
  display: flex;
  align-items: center;
  padding: 0 1rem 0 0;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  width: max-content;
  max-width: 100%;
  margin-top: 1rem !important;
  color: #424e59;
  background: #fff;
}

.cookie_cu_new p img {
  margin: 0 10px 0 0;
  display: flex;
  background: #2373c1;
  padding: 5px;
  width: 35px;
  height: 35px;
}

/* Form container */
form#startuserForms {
  padding-bottom: 50px;
  overflow: visible;
  min-height: auto;
}

/* Address sections side by side */
.address-section-container {
  display: flex;
  gap: 20px;
  width: 100%;
  margin-bottom: 20px;
}

.address-section {
  flex: 1;
  width: 48%;
}

.address-section h4 {
  margin-top: 0;
  margin-bottom: 5px;
}

.address-section .address-note {
  font-size: 12px;
  color: #666;
  margin-bottom: 15px;
  font-style: italic;
}

.address-section .formControlLabel {
  margin-top: 10px;
}

/* Fix checkbox alignment in address section */
.address-section {
  overflow: visible !important;
}

.address-section.right-form {
  overflow: visible !important;
}

.address-section label.formControlLabel {
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer;
  margin-bottom: 10px;
  width: auto !important;
  float: none !important;
  flex: none !important;
  overflow: visible !important;
}

.address-section.right-form label.formControlLabel {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  float: none !important;
  flex: none !important;
}

.address-section label.formControlLabel input[type="checkbox"] {
  width: auto !important;
  margin-right: 8px !important;
  margin-left: 0 !important;
  vertical-align: middle;
  cursor: pointer;
  flex-shrink: 0;
  float: none !important;
  position: relative;
  display: inline-block !important;
}

.address-section input[type="text"],
.address-section select {
  width: 100% !important;
}

.address-section .left-form,
.address-section .right-form {
  width: 100%;
  float: none;
}

/* Recaptcha container */
.g-recaptcha {
  margin: 15px 0;
  overflow: visible;
}

/* Submit button container */
.rsform-submit-button {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Responsive */
@media only screen and (max-width: 768px) {
  /* Stack address sections on mobile */
  .address-section-container {
    flex-direction: column;
    gap: 30px;
  }

  .address-section {
    width: 100%;
  }
}

@media only screen and (max-width: 500px) {
  .left-form {
    width: 100%;
    float: none;
    margin: 15px 0px;
  }

  .right-form {
    width: 100%;
    float: none;
    margin: 15px 0px;
  }

  .left-form input, .left-form select, .left-form textarea,
  .right-form input, .right-form select, .right-form textarea {
    width: 100%;
  }

  .mainform {
    margin: 5px 0px;
  }

  .formBody {
    margin-bottom: 15px;
  }

  .cookie_cu_new p {
    padding: 0 5px 0 0;
    font-size: 12px;
  }

  .cookie_cu_new p img {
    margin: 0 5px 0 0;
    width: 25px;
    height: 25px;
  }

  .formBody.radio-inline {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
