/* ============================================================
   forms.css
   Shared form field styles (used by the "Write a Review" modal)
   + the floating WhatsApp button.
   (Renamed from checkout.css — the checkout form was removed
   since Buy Now now goes straight to WhatsApp.)
   ============================================================ */

/* ── Shared modal entrance animation ── */
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Shared form field styles ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-group label .required {
  color: var(--red);
}

.form-group input,
.form-group textarea {
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--white);
  transition: border-color 0.2s;
  color: var(--charcoal);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--red);
  display: none;
}

.form-error.show { display: block; }

/* ── Shared submit button (used by review form) ── */
.checkout-submit {
  background: var(--forest);
  color: var(--white);
  border: none;
  padding: 15px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.checkout-submit:hover { background: var(--leaf); }
.checkout-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner for loading state */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.checkout-submit.loading .spinner { display: inline-block; }
.checkout-submit.loading .submit-text { display: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Floating WhatsApp Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  z-index: 400;
  transition: transform 0.2s;
  animation: pulse-wa 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
  50%      { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.75); }
}

.whatsapp-float svg { width: 30px; height: 30px; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    left: 20px;
  }
}
