/* =========================================================
   CHHATARPUR RENT — OWNER LISTING
   Premium responsive property submission form
   ========================================================= */

.owner-listing-section {
  padding: 110px 0;
  background: #f8fafc;
}

.owner-listing-container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* ==================== HEADER ==================== */

.owner-listing-header {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.owner-listing-eyebrow {
  display: inline-block;
  margin-bottom: 14px;

  color: #1769e0;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.owner-listing-header h2 {
  margin: 0;

  color: #172033;

  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 800;
}

.owner-listing-header h2 span {
  color: #1769e0;
}

.owner-listing-header p {
  max-width: 650px;
  margin: 20px auto 0;

  color: #667085;

  font-size: 15px;
  line-height: 1.75;
}

/* ==================== TRUST ==================== */

.owner-listing-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 16px;

  margin-top: 45px;
}

.owner-trust-item {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  padding: 18px;

  border: 1px solid #e7ecf3;
  border-radius: 14px;

  background: #ffffff;
}

.owner-trust-item > span {
  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  flex: 0 0 28px;

  border-radius: 50%;

  background: rgba(34, 160, 107, 0.09);

  color: #22a06b;

  font-size: 13px;
  font-weight: 900;
}

.owner-trust-item p {
  margin: 0;

  color: #667085;

  font-size: 12px;
  line-height: 1.55;
}

.owner-trust-item strong {
  display: block;

  margin-bottom: 4px;

  color: #172033;

  font-size: 12px;
  font-weight: 800;
}

/* ==================== FORM ==================== */

.owner-listing-form {
  margin-top: 30px;

  padding: 34px;

  border: 1px solid #e7ecf3;
  border-radius: 22px;

  background: #ffffff;

  box-shadow:
    0 20px 55px rgba(23, 32, 51, 0.07);
}

/* ==================== FORM SECTION ==================== */

.form-section {
  padding: 0 0 34px;

  margin-bottom: 34px;

  border-bottom: 1px solid #e7ecf3;
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.form-section-heading {
  display: flex;
  align-items: flex-start;

  gap: 14px;

  margin-bottom: 22px;
}

.form-section-number {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  flex: 0 0 36px;

  border-radius: 10px;

  background: #1769e0;

  color: #ffffff;

  font-size: 11px;
  font-weight: 800;
}

.form-section-heading h3 {
  margin: 0;

  color: #172033;

  font-size: 18px;
  font-weight: 800;
}

.form-section-heading p {
  margin: 5px 0 0;

  color: #667085;

  font-size: 12px;
  line-height: 1.5;
}

/* ==================== GRID ==================== */

.form-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.form-field {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #172033;

  font-size: 12px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;

  box-sizing: border-box;

  border: 1px solid #e1e7ef;
  border-radius: 10px;

  background: #ffffff;

  color: #172033;

  font-family: inherit;
  font-size: 13px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.form-field input,
.form-field select {
  height: 48px;

  padding: 0 14px;
}

.form-field textarea {
  min-height: 125px;

  padding: 13px 14px;

  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a0a9b8;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #1769e0;

  box-shadow:
    0 0 0 3px rgba(23, 105, 224, 0.08);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #c8d2df;
}

/* ==================== SUBMIT ==================== */

.owner-listing-submit-area {
  margin-top: 30px;
}

.owner-listing-submit {
  width: 100%;
  min-height: 52px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 24px;

  border: 0;
  border-radius: 11px;

  background: #1769e0;

  color: #ffffff;

  font-family: inherit;
  font-size: 13px;
  font-weight: 800;

  cursor: pointer;

  box-shadow:
    0 9px 22px rgba(23, 105, 224, 0.18);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.owner-listing-submit:hover {
  background: #0d4fb5;

  transform: translateY(-2px);

  box-shadow:
    0 13px 28px rgba(23, 105, 224, 0.25);
}

.owner-listing-submit:disabled {
  opacity: 0.65;

  cursor: not-allowed;

  transform: none;
}

/* ==================== MESSAGE ==================== */

.owner-listing-message {
  display: none;

  margin-top: 15px;

  padding: 13px 15px;

  border-radius: 10px;

  font-size: 12px;
  line-height: 1.55;
}

.owner-listing-message.show {
  display: block;
}

/* ==================== TABLET ==================== */

@media (max-width: 850px) {

  .owner-listing-section {
    padding: 80px 0;
  }

  .owner-listing-trust {
    grid-template-columns: 1fr;
  }

  .owner-listing-form {
    padding: 26px;
  }
}

/* ==================== MOBILE ==================== */

@media (max-width: 600px) {

  .owner-listing-section {
    padding: 65px 0;
  }

  .owner-listing-container {
    width: calc(100% - 28px);
  }

  .owner-listing-header h2 {
    font-size: 36px;
    letter-spacing: -1.4px;
  }

  .owner-listing-header p {
    font-size: 14px;
  }

  .owner-listing-trust {
    gap: 12px;

    margin-top: 35px;
  }

  .owner-trust-item {
    padding: 16px;
  }

  .owner-listing-form {
    margin-top: 24px;

    padding: 20px;

    border-radius: 17px;
  }

  .form-grid {
    grid-template-columns: 1fr;

    gap: 17px;
  }

  .form-field-full {
    grid-column: auto;
  }

  .form-section {
    padding-bottom: 27px;
    margin-bottom: 27px;
  }

  .form-section-heading h3 {
    font-size: 16px;
  }

  .owner-listing-submit {
    width: 100%;
  }
}

/* Step 23A: Premium owner property GPS map */
.owner-gps-section {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
}

.owner-gps-section > label {
  display: block;
  margin-bottom: 8px;
  color: #14213d;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.25px;
}

.owner-gps-section > p:not(#locationStatus) {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.75;
}

#useCurrentLocationBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 13px 18px;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #155eef;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 5px 14px rgba(21, 94, 239, 0.2);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

#useCurrentLocationBtn::before {
  content: "⌖";
  font-size: 21px;
  line-height: 1;
}

#useCurrentLocationBtn:hover {
  background: #104ac4;
  box-shadow: 0 7px 18px rgba(21, 94, 239, 0.25);
  transform: translateY(-1px);
}

#useCurrentLocationBtn:focus-visible {
  outline: 3px solid rgba(21, 94, 239, 0.25);
  outline-offset: 3px;
}

#useCurrentLocationBtn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

#locationStatus {
  min-height: 22px;
  margin: 0 0 12px;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#propertyLocationMap {
  width: 100%;
  height: 340px;
  min-height: 280px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  overflow: hidden;
  background: #edf3fa;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04);
  z-index: 0;
}

.owner-gps-section .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
  border-radius: 14px;
}

@media (max-width: 600px) {
  .owner-gps-section {
    padding: 16px;
    border-radius: 15px;
  }

  .owner-gps-section > label {
    font-size: 16px;
  }

  #useCurrentLocationBtn {
    width: 100%;
  }

  #propertyLocationMap {
    height: 290px;
    min-height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #useCurrentLocationBtn {
    transition: none;
  }
}
