/* ============================================================
   QUOTE.CSS
   ============================================================ */

.quote-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ─── Left Panel ─── */
.quote-panel {
  position: relative;
  background: var(--green-deep);
  padding: 130px 64px 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  min-height: 100vh;
}
.quote-panel__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.18;
}
.quote-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,46,26,0.72);
}
.quote-panel__content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.quote-panel__logo {
  margin-bottom: 52px;
}

.quote-panel h2 {
  font-size: clamp(1.85rem, 2.6vw, 2.5rem);
  color: var(--cream);
  margin-bottom: 16px;
  line-height: 1.28;
}
.quote-panel__lead {
  color: rgba(245,240,232,0.68);
  margin-bottom: 44px;
  line-height: 1.75;
  font-size: 0.95rem;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 52px;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: rgba(245,240,232,0.9);
}
.trust-list li .trust-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-list li .trust-icon svg {
  width: 13px; height: 13px;
  fill: #fff;
}

.quote-panel__testimonial {
  padding: 24px 28px;
  border: 1px solid rgba(245,240,232,0.14);
  border-radius: 6px;
  background: rgba(245,240,232,0.05);
}
.quote-panel__testimonial p {
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(245,240,232,0.78);
  line-height: 1.72;
  margin-bottom: 12px;
}
.quote-panel__testimonial cite {
  font-size: 0.78rem;
  color: var(--sage);
  font-style: normal;
  font-weight: 700;
}

/* ─── Right Panel ─── */
.quote-form-panel {
  background: #fff;
  padding: 110px 64px 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-form-panel h1 {
  font-size: clamp(1.85rem, 2.5vw, 2.5rem);
  color: var(--green-deep);
  margin-bottom: 8px;
}
.quote-form-panel .subtitle {
  color: var(--text-mid);
  margin-bottom: 44px;
  font-size: 0.95rem;
}

/* ─── Form ─── */
.form-group {
  margin-bottom: 22px;
  position: relative;
}
.form-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e0ddd6;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122,158,126,0.15);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.09);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Custom select arrow */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a4a42' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-error {
  display: none;
  color: #c0392b;
  font-size: 0.78rem;
  margin-top: 6px;
}
.form-error.visible { display: block; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  margin-top: 8px;
}

.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #28a745;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: #155724;
  font-size: 1rem;
  line-height: 1.6;
}
.form-success.visible { display: block; }

.form-note {
  margin-top: 22px;
  font-size: 0.84rem;
  color: var(--text-light);
  text-align: center;
}
.form-note a {
  color: var(--terracotta);
  font-weight: 700;
}

/* ─── Redirect prompt ─── */
.form-redirect {
  display: none;
  background: var(--parchment);
  border: 1.5px solid #c8c3ba;
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.form-redirect.visible { display: block; }

.form-redirect__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-deep);
  margin-bottom: 16px;
}
.form-redirect__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--cream);
}
.form-redirect__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.form-redirect__text {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.form-redirect__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Shake animation ─── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-6px); }
  40%, 80%  { transform: translateX(6px); }
}
.shake { animation: shake 0.38s ease; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .quote-page { grid-template-columns: 1fr; }
  .quote-panel { min-height: auto; padding: 130px 40px 64px; }
  .quote-form-panel { padding: 64px 40px 88px; }
}
@media (max-width: 768px) {
  .quote-panel { padding: 100px 24px 52px; }
  .quote-form-panel { padding: 52px 24px 64px; }
  .form-row { grid-template-columns: 1fr; }
}
