/* ==========================================================================
   Landmart Properties - Premium Form Upgrade CSS
   ========================================================================== */

/* Form Wrapper */
.lmp-form-wrapper {
  position: relative;
  width: 100%;
}

/* Floating Label Input Group */
.lmp-form-group {
  position: relative;
  margin-bottom: 15px;
}

/* Input Fields */
.lmp-form-control {
  width: 100%;
  padding: 12px 15px 6px 15px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: all 0.3s ease;
  height: 46px; /* Fixed height for inputs */
  appearance: none;
  -webkit-appearance: none;
}

textarea.lmp-form-control {
  height: auto;
  min-height: 70px;
  padding-top: 12px;
  resize: vertical;
}

/* Floating Labels */
.lmp-form-label {
  position: absolute;
  top: 13px;
  left: 15px;
  font-size: 14px;
  color: #777;
  pointer-events: none;
  transition: all 0.2s ease;
  font-weight: 500;
  background: transparent;
  padding: 0 5px;
}

/* Floating Action (Focus & Valid state) */
.lmp-form-control:focus ~ .lmp-form-label,
.lmp-form-control:not(:placeholder-shown) ~ .lmp-form-label,
select.lmp-form-control:valid ~ .lmp-form-label {
  top: -8px;
  left: 15px;
  font-size: 11px;
  color: var(--gold, #d4af37);
  background: #fff; /* to cover border line */
  font-weight: 600;
}

/* Select Dropdown specific tweaks */
select.lmp-form-control {
  cursor: pointer;
}
/* Ensure the label acts right on select without placeholder trick */
.lmp-form-group.has-value .lmp-form-label {
  top: -8px;
  left: 15px;
  font-size: 11px;
  color: #777;
  background: #fff;
  font-weight: 600;
}

/* Borders on Focus */
.lmp-form-control:focus {
  border-color: var(--gold, #d4af37);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Validation States */
.lmp-form-group.success .lmp-form-control {
  border-color: #28a745;
}
.lmp-form-group.error .lmp-form-control {
  border-color: #dc3545;
}

/* Validation Message */
.lmp-validation-msg {
  display: block;
  font-size: 11px;
  color: #dc3545;
  margin-top: 5px;
  margin-left: 5px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease;
}
.lmp-form-group.error .lmp-validation-msg {
  opacity: 1;
  height: auto;
}

/* Validation Icons */
.lmp-validation-icon {
  position: absolute;
  top: 13px;
  right: 15px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lmp-form-group.success .lmp-validation-icon.icon-success {
  color: #28a745;
  opacity: 1;
}
.lmp-form-group.error .lmp-validation-icon.icon-error {
  color: #dc3545;
  opacity: 1;
}

/* Submit Button & Loader */
.lmp-submit-btn {
  position: relative;
  overflow: hidden;
}
.lmp-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: lmp-spin 1s ease-in-out infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -9px;
  margin-left: -9px;
}
.lmp-submit-btn.loading {
  color: transparent !important;
  pointer-events: none;
  opacity: 0.8;
}
.lmp-submit-btn.loading .lmp-spinner {
  display: block;
}

@keyframes lmp-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Premium Success Modal
   ========================================================================== */
.lmp-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.lmp-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lmp-modal-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255,255,255,0.5);
}
.lmp-modal-overlay.active .lmp-modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lmp-modal-icon {
  width: 70px;
  height: 70px;
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.lmp-modal-box h3 {
  font-size: 26px;
  color: var(--navy, #0B1F3A);
  font-weight: 800;
  margin-bottom: 10px;
}
.lmp-modal-box p {
  color: #555;
  font-size: 15px;
  margin-bottom: 5px;
  line-height: 1.6;
}
.lmp-modal-box .brochure-note {
  font-size: 13px;
  color: var(--gold, #d4af37);
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 15px;
}

.lmp-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lmp-btn-primary {
  background: var(--navy, #0B1F3A);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.lmp-btn-primary:hover {
  background: var(--gold, #d4af37);
}

.lmp-btn-outline {
  background: transparent;
  color: var(--navy, #0B1F3A);
  border: 1px solid #ddd;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}
.lmp-btn-outline:hover {
  background: #f5f5f5;
  border-color: #ccc;
}
