/* Connected property — shared modal + buttons (all pages) */

.cp-connect-modal__content {
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  border: 1px solid #e8eef5;
}

.cp-connect-modal__header .modal-title {
  color: #0f172a;
  font-size: 1.1rem;
}

.cp-connect-modal__icon {
  color: #eb8944;
}

.cp-connect-modal__header,
.cp-connect-modal__body,
.cp-connect-modal__footer {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.cp-connect-modal__body > .text-muted {
  color: #64748b !important;
}

.cp-connect-input {
  border-radius: 10px;
  border: 1px solid #dde3ea;
  font-size: 0.9375rem;
  padding: 0.6rem 0.85rem;
  color: #0f172a;
  background: #fff;
}

.cp-connect-input:focus {
  border-color: #eb8944;
  box-shadow: 0 0 0 3px rgba(235, 137, 68, 0.18);
}

.cp-connect-textarea {
  min-height: 100px;
  resize: vertical;
}

.cp-connect-form .form-label {
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: #1e293b;
}

.cp-connect-terms {
  margin-top: 0.35rem;
}

.cp-connect-terms .form-check-input {
  margin-top: 0.25rem;
  border-color: #cbd5e1;
  cursor: pointer;
}

.cp-connect-terms .form-check-input:checked {
  background-color: #eb8944;
  border-color: #eb8944;
}

.cp-connect-terms .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(235, 137, 68, 0.18);
  border-color: #eb8944;
}

.cp-connect-terms .form-check-label {
  color: #475569;
  line-height: 1.4;
  cursor: pointer;
}

.cp-connect-terms-link {
  color: #0d6efd;
  font-weight: 700;
  text-decoration: none;
}

.cp-connect-terms-link:hover {
  color: #0a58ca;
  text-decoration: underline;
}

.cp-connect-terms-error {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #dc2626;
  line-height: 1.35;
}

.cp-connect-submit {
  background: #eb8944 !important;
  border: 1px solid #eb8944 !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.55rem 1.15rem;
  box-shadow: 0 6px 14px rgba(235, 137, 68, 0.28);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cp-connect-submit:hover,
.cp-connect-submit:focus {
  background: #df7a34 !important;
  border-color: #df7a34 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(223, 122, 52, 0.32);
}

.cp-connect-submit:active {
  background: #d06f2c !important;
  border-color: #d06f2c !important;
}

.cp-connect-submit:disabled {
  opacity: 0.75;
  box-shadow: none;
}

.cp-connect-modal__footer .btn-light {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
}

.cp-connect-modal__footer .btn-light:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* Contact buttons (property detail, landing, wishlist, etc.) */
.btn-contact-property.is-connected,
.btn-contact-property.is-connected:disabled {
  background: #e8f5e9 !important;
  color: #2e7d32 !important;
  border: 1px solid #a5d6a7 !important;
  cursor: default;
  opacity: 1;
}

.btn-contact-owner.btn-contact-property.is-connected,
.btn-contact-owner.btn-contact-property.is-connected:disabled {
  background: #e8f5e9 !important;
  color: #2e7d32 !important;
  border-color: #a5d6a7 !important;
}

@media (max-width: 575.98px) {
  .cp-connect-modal .modal-dialog {
    margin: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .cp-connect-modal__header,
  .cp-connect-modal__body,
  .cp-connect-modal__footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cp-connect-textarea {
    min-height: 88px;
  }
}
