/* =====================================================
   OKRL – Simple UI for ALL forms (property + agent + simple)
   Goal: sharp, clean, no rounded corners, no "card" styling
   ===================================================== */

/* make forms look "flat" (no card) */
.okrl-form {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* labels a bit bolder + neutral color */
.okrl-form label {
  font-weight: 500 !important;
  color: #111111 !important;
}

/* inputs + textarea: sharp edges, white background, consistent border */
.okrl-form input,
.okrl-form textarea {
  border-radius: 0 !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 500 !important;
}

/* keep focus clean but visible (green brand) */
.okrl-form input:focus,
.okrl-form textarea:focus {
  outline: none !important;
  border-color: #84BD00 !important;
  box-shadow: none !important;
}

/* submit buttons inside forms: full width like the simple form */
.okrl-form button[type="submit"],
.okrl-form input[type="submit"] {
  width: 100% !important;
  display: block !important;
}


/* ===== Contact form enhancements ===== */
.okrl-form__notice { font-weight: 500; }

.okrl-field--consent a { text-decoration: underline; }

.okrl-recaptcha { margin-top: 10px; margin-bottom: 6px; }



/* ===== Validation + notice UI ===== */
.okrl-invalid{
  border-color: #b91c1c !important;
}

.okrl-form__notice{
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  font-weight: 500;
}

.okrl-notice--success{
  border-left: 4px solid #84BD00;
}

.okrl-notice--error{
  border-left: 4px solid #b91c1c;
}

.okrl-check{
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  background: #84BD00;
  color: #ffffff;
  font-weight: 700;
  margin-right: 6px;
  font-size: 12px;
}


/* =====================================================
   MODAL FIX – prevent form panel from being cut off
   ===================================================== */

/* allow scrolling if modal is taller than viewport */
.okrl-modal {
  overflow-y: auto !important;
  padding: 16px !important;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box;
}

/* keep panel inside viewport and make it scrollable if needed */
.okrl-modal__panel {
  margin: 16px auto !important;
  max-height: calc(100vh - 32px) !important;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
}


/* =====================================================
   SUCCESS STATE – replaces form after submit
   ===================================================== */
.okrl-success{
  border: 1px solid #cbd5e1;
  padding: 18px;
  background: #ffffff;
}
.okrl-success__icon{
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: #166534;
  margin-bottom: 10px;
}
.okrl-success__text{
  font-weight: 500;
  color: #111111;
}



/* ===== Submit loading state ===== */
.okrl-form.is-submitting{
  opacity: .92;
}

.okrl-form.is-submitting button[type="submit"],
.okrl-form.is-submitting input[type="submit"]{
  cursor: wait !important;
}

.okrl-form button.is-loading,
.okrl-form input.is-loading{
  position: relative;
  pointer-events: none;
}

.okrl-btn-spinner{
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: okrlSpin .7s linear infinite;
}

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