/* ─────────────────────────────────────────────
   Ândrea Cartes Cadeaux — Frontend Form
   Palette : #FAF7F0 · #D7B8A0 · #7a9470 · #585760
───────────────────────────────────────────── */

#agc-wrap {
  max-width: 620px;
  margin: 0 auto;
  font-family: 'DM Sans', 'Arial', sans-serif;
  color: #585760;
}

/* ── Titres de section ── */
.agc-section-title {
  font-family: 'Cormorant', 'Georgia', serif;
  font-size: 22px;
  font-weight: 600;
  color: #585760;
  margin-bottom: 20px;
}
.agc-divider {
  height: 1px;
  background: rgba(215,184,160,0.3);
  margin: 28px 0;
}

/* ── Champs ── */
.agc-row { margin-bottom: 0; }
.agc-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.agc-field {
  margin-bottom: 16px;
}
.agc-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(88,87,96,0.65);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.agc-req { color: #D7B8A0; }

.agc-field input[type="text"],
.agc-field input[type="email"],
.agc-field input[type="number"],
.agc-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(215,184,160,0.45);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: #585760;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  outline: none;
}
.agc-field input:focus,
.agc-field textarea:focus {
  border-color: #7a9470;
  box-shadow: 0 0 0 3px rgba(122,148,112,0.12);
}
.agc-field textarea { resize: vertical; min-height: 80px; }

/* ── Grille montants ── */
.agc-amount-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.agc-amount-chip {
  cursor: pointer;
}
.agc-amount-chip input[type="radio"] { display: none; }
.agc-amount-chip span {
  display: inline-block;
  padding: 9px 20px;
  border: 1.5px solid rgba(215,184,160,0.5);
  border-radius: 20px;
  font-size: 15px;
  font-family: 'Cormorant', 'Georgia', serif;
  font-weight: 600;
  color: #585760;
  background: #fff;
  transition: all 0.2s;
  user-select: none;
}
.agc-amount-chip input:checked + span {
  background: #7a9470;
  border-color: #7a9470;
  color: #fff;
}
.agc-amount-chip:hover span {
  border-color: #7a9470;
  color: #7a9470;
}

/* ── Type digital / physique ── */
.agc-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.agc-type-chip { cursor: pointer; }
.agc-type-chip input[type="radio"] { display: none; }
.agc-type-chip span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 1.5px solid rgba(215,184,160,0.5);
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Cormorant', 'Georgia', serif;
  font-weight: 600;
  color: #585760;
  background: #fff;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.agc-type-chip span small {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(88,87,96,0.55);
}
.agc-type-chip input:checked + span {
  background: rgba(122,148,112,0.08);
  border-color: #7a9470;
  color: #7a9470;
}
.agc-type-chip input:checked + span svg { stroke: #7a9470; }

/* ── Bouton submit ── */
.agc-btn-submit {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #7a9470;
  border: 1.5px solid #7a9470;
  padding: 13px 32px;
  border-radius: 24px;
  font-family: 'Cormorant', 'Georgia', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 8px;
  -webkit-appearance: none;
}
.agc-btn-submit:hover:not(:disabled) {
  background: #7a9470;
  color: #fff;
}
.agc-btn-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ── Messages ── */
.agc-msg { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 12px; }
.agc-msg-error { background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.2); color: #b91c1c; }

/* ─────────────────────────────────────────────
   ÉTAPE 2 — Twint
───────────────────────────────────────────── */
.agc-twint-card {
  background: #FAF7F0;
  border: 1px solid rgba(215,184,160,0.3);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}
.agc-twint-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid rgba(215,184,160,0.2);
}
.agc-twint-title { font-size: 17px; font-weight: 600; color: #585760; margin: 0; font-family: 'Cormorant', Georgia, serif; }
.agc-twint-sub   { font-size: 13px; color: rgba(88,87,96,0.6); margin: 2px 0 0; }

.agc-twint-ref-box {
  text-align: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(215,184,160,0.2);
}
.agc-twint-ref-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #C0CCB4; margin: 0 0 6px; }
.agc-twint-ref       { font-family: 'Cormorant', Georgia, serif; font-size: 30px; font-weight: 700; color: #585760; margin: 0 0 6px; letter-spacing: 2px; }
.agc-twint-ref-note  { font-size: 12px; color: #a07855; margin: 0; }

.agc-twint-steps { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.agc-twint-step  { display: flex; align-items: flex-start; gap: 12px; }
.agc-step-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #7a9470;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 26px;
}
.agc-twint-step strong { display: block; font-size: 14px; color: #585760; margin-bottom: 2px; }
.agc-twint-step p { font-size: 13px; color: rgba(88,87,96,0.65); margin: 0; }

.agc-twint-phone-box {
  background: #fff;
  border: 1px solid rgba(215,184,160,0.35);
  border-radius: 10px;
  padding: 14px 18px;
  margin-left: 38px;
}
.agc-twint-phone-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #C0CCB4; margin: 0 0 4px; }
.agc-twint-phone-num   { font-family: 'Cormorant', Georgia, serif; font-size: 24px; font-weight: 700; color: #585760; margin: 0 0 2px; }
.agc-twint-phone-name  { font-size: 12px; color: rgba(88,87,96,0.55); margin: 0; }
.agc-twint-amount      { font-family: 'Cormorant', Georgia, serif; font-size: 24px; font-weight: 700; color: #7a9470; margin: 4px 0 0; }

.agc-twint-confirm-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(122,148,112,0.06);
  border-top: 1px solid rgba(122,148,112,0.15);
  font-size: 13px;
  color: #585760;
  line-height: 1.5;
}

.agc-email-confirm {
  text-align: center;
  font-size: 13px;
  color: rgba(88,87,96,0.55);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .agc-two-cols { grid-template-columns: 1fr; }
  .agc-type-grid { grid-template-columns: 1fr; }
  .agc-amount-grid { gap: 8px; }
}
