/* -------------------------------------------------- */
/*        ELEMENTOR PRICE REQUEST PRO CSS            */
/*        Next-Level UX/UI, Animations, Motion      */
/* -------------------------------------------------- */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Container --- */
.prf-container {
  max-width: 800px;
  margin: 50px auto;
  font-family: 'Inter', Arial, sans-serif;
  color: #1a1a1a;
  position: relative;
  perspective: 1000px;
  z-index: 0;
}

/* --- Form Grid --- */
.prf-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: #ffffff;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.07);
  overflow: hidden;
  transition: all 0.35s ease;
}
.prf-form:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 70px rgba(0,0,0,0.1);
}

/* --- Step Header --- */
.step-header {
  grid-column: 1 / -1;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg,#739b92,#4b7c6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step-subheader {
  grid-column: 1 / -1;
  font-size: 14px;
  color: #555;
  margin-bottom: 18px;
}

/* --- Full width fields --- */
.prf-form .full-width {
  grid-column: 1 / -1;
}

/* --- Labels above fields --- */
.elementor-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --- Inputs, selects, textareas --- */
.prf-form input,
.prf-form select,
.prf-form textarea {
  padding: 14px 16px;
  border: 1px solid #e8e7eb;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 500;
  background: #efefef;
  transition: all 0.35s ease, transform 0.2s ease;
  outline: none;
}
.prf-form input:focus,
.prf-form select:focus,
.prf-form textarea:focus {
  border-color: #739b92;
  box-shadow: 0 0 0 3px rgba(115,155,146,0.15);
  background: #fff;
  transform: scale(1.02);
}
input:hover, select:hover, textarea:hover {
  transform: scale(1.015);
}

/* --- Error messages --- */
.error-msg {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.35s ease;
}
input.error + .error-msg,
select.error + .error-msg,
textarea.error + .error-msg {
  opacity: 1;
  transform: translateY(0);
}

/* --- Buttons --- */
.prf-form .prf-submit,
.prf-form .next-step,
.prf-form .prev-step {
  grid-column: 1 / -1;
  padding: 16px 32px;
  background: linear-gradient(135deg, #e5eeec, #739b92);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all 0.35s ease, transform 0.2s ease;
}
.prf-form .prf-submit::before,
.prf-form .next-step::before,
.prf-form .prev-step::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255,255,255,0.15);
  transform: rotate(45deg) translate(-100%, -100%);
  transition: all 0.6s ease;
}
.prf-form .prf-submit:hover::before,
.prf-form .next-step:hover::before,
.prf-form .prev-step:hover::before {
  transform: rotate(45deg) translate(0,0);
}
.prf-form .prf-submit:hover,
.prf-form .next-step:hover,
.prf-form .prev-step:hover {
  background: linear-gradient(135deg, #739b92, #4b7c6b);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.prf-form .prf-submit:active,
.prf-form .next-step:active,
.prf-form .prev-step:active {
  transform: scale(0.98);
}

/* --- Progress bar --- */
.prf-progress-bar {
  grid-column: 1 / -1;
  height: 10px;
  background: #e8e7eb;
  border-radius: 6px;
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
}
.prf-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(270deg, #739b92, #4b7c6b, #739b92);
  background-size: 600% 100%;
  animation: gradientMove 5s linear infinite;
  transition: width 0.5s ease;
  border-radius: 6px;
}
@keyframes gradientMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}

/* --- Step animations --- */
.step {
  opacity: 0;
  transform: translateX(50px);
  pointer-events: none;
  transition: all 0.55s ease;
}
.step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 8px 0;
}

/* --- File upload previews --- */
.file-preview {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-item {
  background: #f4f4f4;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
  animation: fileFadeIn 0.4s forwards;
}
.file-item:hover {
  background: #e8f5ef;
  transform: translateX(2px);
}
.file-item .file-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: #739b92;
  border-radius: 2px;
  transition: width 0.35s ease;
}
@keyframes fileFadeIn {
  0% { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}
input.drag-over {
  border: 2px dashed #739b92;
  background: rgba(115,155,146,0.05);
}

/* --- Conditional fields --- */
.conditional-field {
  transition: all 0.45s ease;
  overflow: hidden;
  max-height: 500px;
}

/* --- Success/Error banners --- */
.prf-success, .prf-error {
  grid-column: 1 / -1;
  padding: 14px 24px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-weight: 500;
  text-align: center;
  font-size: 15px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}
.prf-success { background: #e5f3eb; color: #2c7a4b; }
.prf-error { background: #fdecea; color: #c0392b; }

/* --- Checkbox / Label --- */
.elementor-field-group label {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.elementor-field-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #739b92;
  cursor: pointer;
}

/* --- Multi-select --- */
select[multiple] {
  height: auto;
  min-height: 80px;
}

/* --- Google Maps Input --- */
#prf-location {
  position: relative;
}
#prf-location:focus {
  z-index: 1;
}

/* --- Scroll to top smooth --- */
html {
  scroll-behavior: smooth;
}

/* --- Extra hover transitions for selects --- */
select option:hover {
  background: #e5f3eb;
}

/* --- Placeholder styling --- */
input::placeholder,
textarea::placeholder {
  color: #aaa;
  font-weight: 400;
  transition: color 0.35s ease;
}
input:focus::placeholder,
textarea:focus::placeholder {
  color: #999;
}

/* --- Mobile responsive --- */
@media(max-width: 992px) {
  .prf-form { grid-template-columns: 1fr; padding: 30px; }
  .prf-container { margin: 30px 15px; }
  .prf-form .prf-submit, .next-step, .prev-step { padding: 14px 24px; font-size: 15px; }
  input, select, textarea { font-size: 15px; padding: 12px 14px; }
}

/* --- Small devices --- */
@media(max-width: 576px) {
  .prf-form { padding: 24px 20px; gap: 16px; }
  input, select, textarea { font-size: 14px; padding: 10px 12px; }
  .prf-progress-bar { height: 8px; }
  .prf-success, .prf-error { font-size: 14px; padding: 12px 18px; }
}

/* --- Step fade in animation --- */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px);}
  100% { opacity: 1; transform: translateY(0);}
}

/* --- Subtle shadow for inputs on focus --- */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 6px 18px rgba(115,155,146,0.2);
}