/* ─────────────────────────────────────────────────────────────
   Gifting — Hero
   ───────────────────────────────────────────────────────────── */

.fe-legal-hero--gifting {
  background: var(--fe-cream);
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 5% 80px;
  position: relative;
  overflow: hidden;
}

.fe-legal-hero--gifting .fe-legal-eyebrow {
  color: var(--fe-gold);
  position: relative;
  z-index: 1;
}

.fe-legal-hero--gifting .fe-legal-title {
  color: var(--fe-black);
  position: relative;
  z-index: 1;
}

.fe-legal-hero--gifting .fe-legal-date {
  color: var(--fe-warm-gray);
  position: relative;
  z-index: 1;
}

/* Floating gold particles */
.fe-gifting-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fe-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--fe-gold);
  opacity: 0;
  animation: fe-float 8s infinite ease-in-out;
}

.fe-particle:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; }
.fe-particle:nth-child(2) { left: 75%; top: 30%; animation-delay: 1.5s; }
.fe-particle:nth-child(3) { left: 40%; top: 70%; animation-delay: 3s; }
.fe-particle:nth-child(4) { left: 85%; top: 60%; animation-delay: 4.5s; }
.fe-particle:nth-child(5) { left: 25%; top: 80%; animation-delay: 2s; }
.fe-particle:nth-child(6) { left: 60%; top: 15%; animation-delay: 5.5s; }

@keyframes fe-float {
  0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
  20%       { opacity: 0.4; }
  50%       { opacity: 0.2; transform: translateY(-30px) scale(1.5); }
  80%       { opacity: 0.4; }
}

/* ─────────────────────────────────────────────────────────────
   Two-column section
   ───────────────────────────────────────────────────────────── */

.fe-gifting {
  background: var(--fe-white);
  padding: 80px 5% 100px;
}

.fe-gifting__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

/* ─────────────────────────────────────────────────────────────
   Left column — editorial
   ───────────────────────────────────────────────────────────── */

.fe-gifting__eyebrow {
  display: block;
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fe-gold);
  margin-bottom: 18px;
}

.fe-gifting__title {
  font-family: var(--fe-font-display), serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--fe-black);
  margin: 0 0 16px;
  line-height: 1.15;
}

.fe-gifting__subtitle {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--fe-warm-gray);
  margin: 0;
  max-width: 400px;
  font-style: italic;
}

.fe-gifting__divider {
  width: 40px;
  height: 1px;
  background: var(--fe-gold);
  margin: 36px 0;
}

/* ── Service blocks ───────────────────────────────────────── */

.fe-gifting__services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.fe-gifting__service {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.fe-gifting__service-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid var(--fe-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fe-gold);
  margin-top: 2px;
}

.fe-gifting__service-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fe-gifting__service-label {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fe-black);
}

.fe-gifting__service-value {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--fe-warm-gray);
}

/* ── Corporate block ──────────────────────────────────────── */

.fe-gifting__corporate {
  margin-top: 48px;
  padding: 28px 32px;
  border: 1px solid var(--fe-border);
  background: var(--fe-cream);
}

.fe-gifting__corporate-title {
  font-family: var(--fe-font-display), serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--fe-black);
  margin: 0 0 10px;
}

.fe-gifting__corporate-text {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--fe-warm-gray);
  margin: 0 0 20px;
}

.fe-gifting__link {
  color: var(--fe-gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.fe-gifting__link:hover {
  border-color: var(--fe-gold);
}

.fe-gifting__corporate-btn {
  display: inline-block;
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fe-black);
  border: 1px solid var(--fe-black);
  padding: 11px 24px;
  border-radius: 0;
  transition: background 0.25s, color 0.25s;
}

.fe-gifting__corporate-btn:hover {
  background: var(--fe-black);
  color: var(--fe-white);
}

/* ─────────────────────────────────────────────────────────────
   Right column — Form
   ───────────────────────────────────────────────────────────── */

.fe-gifting__form-col {
  padding-top: 4px;
}

.fe-gifting__form-eyebrow {
  display: block;
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fe-gold);
  margin-bottom: 28px;
}

.fe-gifting__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Field wrapper ────────────────────────────────────────── */

.fe-gifting__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Labels ───────────────────────────────────────────────── */

.fe-gifting__label {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fe-warm-gray);
}

.fe-gifting__req {
  color: var(--fe-gold);
}

.fe-gifting__opt {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 400;
  color: var(--fe-warm-gray);
}

/* ── Inputs ───────────────────────────────────────────────── */

.fe-gifting__input {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.88rem;
  color: var(--fe-black);
  background: var(--fe-white);
  border: 1px solid var(--fe-border);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.fe-gifting__input:focus {
  border-color: var(--fe-black);
}

.fe-gifting__input[aria-invalid="true"] {
  border-color: var(--fe-error);
}

.fe-gifting__input::placeholder {
  color: var(--fe-warm-gray);
}

.fe-gifting__textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* ── Date ─────────────────────────────────────────────────── */

.fe-gifting__input--date {
  cursor: pointer;
  color-scheme: light;
}

.fe-gifting__input--date::-webkit-calendar-picker-indicator {
  opacity: 0.35;
  cursor: pointer;
}

/* ── Select ───────────────────────────────────────────────── */

.fe-gifting__select-wrap {
  position: relative;
}

.fe-gifting__select-wrap .fe-gifting__input {
  padding-right: 36px;
  cursor: pointer;
}

.fe-gifting__select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--fe-warm-gray);
}

/* ── Character counter ────────────────────────────────────── */

.fe-gifting__char-count {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.72rem;
  color: var(--fe-warm-gray);
  text-align: right;
  transition: color 0.2s;
}

.fe-gifting__char-count.is-near-limit {
  color: #c8883a;
}

.fe-gifting__char-count.is-at-limit {
  color: var(--fe-error);
}

/* ── Checkbox ─────────────────────────────────────────────── */

.fe-gifting__field--check {
  gap: 0;
}

.fe-gifting__check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.fe-gifting__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.fe-gifting__check-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--fe-border);
  background: var(--fe-white);
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.fe-gifting__checkbox:checked + .fe-gifting__check-box {
  background: var(--fe-black);
  border-color: var(--fe-black);
}

.fe-gifting__checkbox:checked + .fe-gifting__check-box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: 1.5px solid var(--fe-white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.fe-gifting__check-text {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.85rem;
  color: var(--fe-black);
  line-height: 1.4;
}

/* ── Validation errors ────────────────────────────────────── */

.fe-gifting__error {
  display: block;
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.75rem;
  color: var(--fe-error);
  margin-top: 3px;
}

.fe-gifting__error--global {
  font-size: 0.85rem;
  color: var(--fe-black);
  background: var(--fe-cream);
  border-left: 2px solid var(--fe-gold);
  padding: 12px 16px;
  margin-top: 0;
}

/* ── Submit ───────────────────────────────────────────────── */

.fe-gifting__submit {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fe-white);
  background: var(--fe-black);
  border: 1px solid var(--fe-black);
  border-radius: 0;
  padding: 16px 40px;
  width: 100%;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.fe-gifting__submit:hover {
  background: var(--fe-gold);
  border-color: var(--fe-gold);
}

.fe-gifting__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Success state ────────────────────────────────────────── */

.fe-gifting__success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 36px;
  border-left: 2px solid var(--fe-gold);
  background: var(--fe-cream);
}

.fe-gifting__success-grifo {
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
}

.fe-gifting__success-grifo svg {
  width: 100%;
  height: 100%;
}

.fe-gifting__success-title {
  font-family: var(--fe-font-display), serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--fe-black);
  margin: 0 0 12px;
}

.fe-gifting__success-msg {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--fe-warm-gray);
  margin: 0;
  max-width: 360px;
}

/* ─────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .fe-gifting__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .fe-gifting__subtitle {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .fe-gifting {
    padding: 60px 5% 72px;
  }

  .fe-gifting__submit {
    padding: 15px 24px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Cercle Gate — shown on /gifting for non-Cercle visitors
   ───────────────────────────────────────────────────────────── */

.fe-cercle-gate {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fe-cream);
  padding: 120px 5% 100px;
  text-align: center;
}

.fe-cercle-gate__inner {
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.fe-cercle-gate__eyebrow {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fe-gold);
  margin: 0;
}

.fe-cercle-gate__title {
  font-family: var(--fe-font-display), serif;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--fe-black);
  line-height: 1.2;
  margin: 0;
}

.fe-cercle-gate__text {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--fe-warm-gray);
  max-width: 420px;
  margin: 0;
}

.fe-cercle-gate__btn {
  display: inline-block;
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fe-white);
  background: var(--fe-black);
  border: 1px solid var(--fe-black);
  padding: 14px 36px;
  transition: background 0.25s, border-color 0.25s;
}

.fe-cercle-gate__btn:hover {
  background: var(--fe-gold);
  border-color: var(--fe-gold);
}

.fe-cercle-gate__req {
  font-family: var(--fe-font-body), sans-serif;
  font-size: 0.75rem;
  color: var(--fe-warm-gray);
  margin: 0;
}

@media (max-width: 600px) {
  .fe-cercle-gate {
    padding: 100px 5% 80px;
  }
}
