/* ---------- Glassy CRM Real Estate Lead Form ---------- */
.real-estate-form {
  max-width: 950px;
  margin: 40px auto;
  padding: 30px;
  background: linear-gradient(135deg, #f5f7fa 0%, #f9fbfd 100%);
  border-radius: 20px;
  font-family: "Inter", sans-serif;
  color: #0f172a;
  backdrop-filter: blur(10px);
}

/* Section Containers (Cards) */
.real-estate-form section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 25px;
  padding: 25px 28px;
  border: 1px solid rgba(230, 233, 240, 0.8);
  transition: all 0.3s ease;
  position: relative;
}

.real-estate-form section:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 116, 222, 0.08);
}

/* Section Headers */
.real-estate-form h3 {
  background: linear-gradient(90deg, #0b74de, #0366b3);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 14px;
  margin: -10px -14px 18px;
  box-shadow: 0 3px 10px rgba(11, 116, 222, 0.2);
  letter-spacing: 0.3px;
}

/* Fields Layout */
.real-estate-form p {
  margin-bottom: 15px;
}

@media (min-width: 769px) {
  .real-estate-form section p {
    display: inline-block;
    width: calc(50% - 10px);
    vertical-align: top;
    margin-right: 15px;
  }

  .real-estate-form section p:nth-of-type(2n) {
    margin-right: 0;
  }

  .real-estate-form p:has(textarea) {
    width: 100%;
    display: block;
  }
}

/* Labels */
.real-estate-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #1e293b;
}

/* Inputs / Select / Textarea */
.real-estate-form input[type="text"],
.real-estate-form input[type="email"],
.real-estate-form input[type="tel"],
.real-estate-form input[type="date"],
.real-estate-form select,
.real-estate-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(219, 226, 236, 0.8);
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

/* Focus State */
.real-estate-form input:focus,
.real-estate-form textarea:focus,
.real-estate-form select:focus {
  border-color: #0b74de;
  box-shadow: 0 6px 18px rgba(11, 117, 222, 0.15);
  outline: none;
  background: #fff;
  transform: scale(1.01);
}

/* Textarea */
.real-estate-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Submit Button */
.real-estate-form .wpcf7-submit {
  display: inline-block;
  padding: 13px 30px;
  background: linear-gradient(90deg, #0b74de, #0366b3);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  margin-top: 10px;
  letter-spacing: 0.3px;
}

.real-estate-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(11, 117, 222, 0.25);
}

.real-estate-form .wpcf7-submit:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(11, 117, 222, 0.18);
}

/* Divider line not needed (section boxes handle separation) */
.real-estate-form hr {
  display: none;
}

/* Form Messages (CF7 output) */
.wpcf7-response-output {
  margin-top: 25px;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}
.wpcf7-mail-sent-ok {
  background-color: #e6f8ee;
  border: 1px solid #22c55e;
  color: #065f46;
}
.wpcf7-validation-errors {
  background-color: #fef2f2;
  border: 1px solid #f87171;
  color: #7f1d1d;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .real-estate-form {
    padding: 20px;
  }
  .real-estate-form section {
    padding: 20px;
  }
  .real-estate-form h3 {
    font-size: 15px;
    margin-bottom: 14px;
  }
  .real-estate-form section p {
    display: block;
    width: 100%;
  }
  .real-estate-form .wpcf7-submit {
    width: 100%;
    text-align: center;
  }
}
