/* ── AttiMatti Gestionale — Public Styles ───────────────────────────────── */

/* Registration block */
.amg-registration-block {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 3px solid var(--ink, #161210);
}
.amg-registration-block h2 {
  font-family: var(--font-display, "Archivo", sans-serif);
  font-weight: 800;
  font-stretch: 110%;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 24px;
}

/* Notices */
.amg-notice {
  padding: 14px 18px;
  border-left: 4px solid;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
}
.amg-notice p:last-child { margin-bottom: 0; }
.amg-notice-warning   { background: #fff8e1; border-color: #f5a623; }
.amg-notice-info      { background: #e8f4fd; border-color: #2196f3; }
.amg-notice-success   { background: #e8f5e9; border-color: #4caf50; }
.amg-notice-inline    { font-size: 14px; color: var(--muted, #8A7F75); margin-top: 8px; }

/* Form */
.amg-form { max-width: 640px; }
.amg-form-section { margin-bottom: 28px; }
.amg-form-section h3 {
  font-family: var(--font-display, "Archivo", sans-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  margin: 0 0 14px;
  color: var(--ink-soft, #4C443D);
  border-bottom: 1px solid var(--line, #E7DCCE);
  padding-bottom: 8px;
}
.amg-form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.amg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 160px;
}
.amg-field label {
  font-family: var(--font-display, "Archivo", sans-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  color: var(--ink-soft, #4C443D);
}
.amg-field input,
.amg-field select,
.amg-field textarea {
  border: 1.5px solid var(--line, #E7DCCE);
  background: var(--bg, #FBF6EF);
  color: var(--ink, #161210);
  padding: 10px 13px;
  font-size: 15px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.amg-field input:focus,
.amg-field select:focus {
  outline: none;
  border-color: var(--brand, #FF6A00);
}
.amg-field input[disabled] {
  background: var(--surface-2, #F4ECE2);
  color: var(--muted, #8A7F75);
}
.amg-select { appearance: none; 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 d='M1 1l5 5 5-5' stroke='%238A7F75' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.amg-optional-fields summary { cursor: pointer; font-size: 14px; color: var(--brand-deep, #D95900); font-weight: 700; margin-bottom: 4px; }

/* Plan options */
.amg-plan-options { display: flex; flex-direction: column; gap: 10px; }
.amg-plan-option { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 12px 16px; border: 1.5px solid var(--line, #E7DCCE); background: var(--bg, #FBF6EF); }
.amg-plan-option:has(input:checked) { border-color: var(--brand, #FF6A00); background: var(--brand-soft, #FFE7D4); }
.amg-plan-option input { flex: 0 0 auto; }
.amg-plan-label { font-size: 15px; }
.amg-plan-label small { color: var(--muted, #8A7F75); font-size: 13px; }

/* Dues preview */
#amg-dues-preview { background: var(--ink, #161210); color: #fff; padding: 16px 18px; }
#amg-dues-preview h4 { font-family: var(--font-display); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand, #FF6A00); margin: 0 0 12px; }
.amg-due-preview-row, .amg-due-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.amg-dues-preview-static { background: var(--ink); color: #fff; padding: 16px 18px; margin-top: 12px; }
.amg-due-row { border-bottom-color: rgba(255,255,255,.1); }
.amg-due-row:last-child { border-bottom: none; }

/* Ticket */
.amg-qty { max-width: 80px; }
.amg-total-preview { font-size: 17px; margin-top: 12px; }

/* Checkbox */
.amg-checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft, #4C443D); cursor: pointer; }
.amg-checkbox-label input { flex: 0 0 auto; margin-top: 3px; }

/* Submit */
.amg-submit { margin-top: 12px; }

/* Payment page */
.amg-payment-box { background: var(--surface, #fff); border: 1px solid var(--line, #E7DCCE); padding: 32px; }
.amg-payment-box h1 { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; text-transform: uppercase; font-size: clamp(24px,4vw,40px); margin: 0 0 28px; }
.amg-payment-summary { background: var(--ink); color: #fff; padding: 20px 24px; margin-bottom: 24px; }
.amg-payment-summary p { margin: 6px 0; font-size: 15px; }
.amg-amount-due { font-size: 20px !important; margin-top: 14px !important; }
.amg-amount-due span { font-family: var(--font-display); font-weight: 800; color: var(--brand, #FF6A00); }
.amg-payment-intro { margin-bottom: 24px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.amg-payment-method-option { display: block; padding: 14px 16px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; margin-bottom: 10px; }
.amg-payment-method-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.amg-payment-method-option input { margin-right: 10px; }
.amg-bonifico-details { display: block; margin-top: 8px; padding: 10px 12px; background: rgba(0,0,0,.04); font-size: 13.5px; line-height: 1.6; }
.amg-bonifico-details code { font-size: 13px; background: rgba(0,0,0,.06); padding: 2px 6px; }

/* My account */
.amg-my-account { max-width: 860px; }
.amg-account-section { margin-bottom: 40px; }
.amg-account-section h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px; }
.amg-status-ok      { color: #2e7d32; font-weight: 700; }
.amg-status-pending { color: #e65100; font-weight: 700; }
.amg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.amg-table th { text-align: left; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; padding: 8px 12px; border-bottom: 2px solid var(--ink); background: var(--surface-2); }
.amg-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.amg-table tr:last-child td { border-bottom: none; }
.amg-badge { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.amg-badge-green  { background: #e8f5e9; color: #2e7d32; }
.amg-badge-orange { background: #fff3e0; color: #e65100; }
.amg-badge-blue   { background: #e3f2fd; color: #1565c0; }
.amg-badge-red    { background: #ffebee; color: #c62828; }
.amg-link { color: var(--brand-deep, #D95900); text-decoration: underline; font-size: 13.5px; }

/* External booking */
.amg-external-booking { margin-top: 28px; padding: 20px; background: var(--surface-2); border: 1px solid var(--line); }

/* Admin dashboard */
.amg-dashboard-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.amg-stat-card { background: #fff; border: 1px solid #ddd; padding: 20px 24px; min-width: 200px; }
.amg-stat-card h3 { margin: 0 0 8px; font-size: 14px; }
.amg-stat-num { display: block; font-size: 36px; font-weight: 800; line-height: 1.1; margin-bottom: 6px; }
.amg-stat-sub { display: block; font-size: 13px; color: #666; margin-bottom: 10px; }
.amg-record-box { max-width: 600px; background: #fff; border: 1px solid #ddd; padding: 24px; }
.amg-mb .form-table th { width: 220px; }

@media (max-width: 600px) {
  .amg-form-row { flex-direction: column; }
  .amg-plan-options { gap: 8px; }
  .amg-payment-box { padding: 20px 16px; }
  .amg-table { font-size: 13px; }
  .amg-table th, .amg-table td { padding: 7px 8px; }
}
