/* ── Albasini Gift Cards — Frontend ───────────────────────── */

:root {
  --agc-red:     #cc0000;
  --agc-dark:    #1a1a1a;
  --agc-gray:    #f5f5f5;
  --agc-border:  #e0e0e0;
  --agc-text:    #333;
  --agc-muted:   #888;
  --agc-radius:  8px;
  --agc-input-h: 48px;
}

.agc-form {
  margin: 0 0 24px;
  font-family: inherit;
}

/* ── Section ──────────────────────────────────────────────── */
.agc-section {
  margin-bottom: 20px;
}

.agc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .agc-two-col { grid-template-columns: 1fr; }
}

.agc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--agc-dark);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.agc-req    { color: var(--agc-red); }
.agc-optional { font-weight: 400; color: var(--agc-muted); font-size: 12px; }
.agc-hint   { margin: 6px 0 0; font-size: 12px; color: var(--agc-muted); }

/* ── Preset buttons ───────────────────────────────────────── */
.agc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agc-preset-btn {
  padding: 10px 18px;
  border: 2px solid var(--agc-border);
  border-radius: var(--agc-radius);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--agc-text);
  transition: all 0.15s ease;
  line-height: 1;
}

.agc-preset-btn:hover {
  border-color: var(--agc-red);
  color: var(--agc-red);
}

.agc-preset-btn.is-active {
  border-color: var(--agc-red);
  background: var(--agc-red);
  color: #fff;
}

/* ── Custom amount ────────────────────────────────────────── */
.agc-custom-wrap {
  margin-top: 14px;
}

.agc-input-prefix {
  display: flex;
  align-items: center;
  border: 2px solid var(--agc-border);
  border-radius: var(--agc-radius);
  overflow: hidden;
  height: var(--agc-input-h);
  transition: border-color 0.15s;
}

.agc-input-prefix:focus-within {
  border-color: var(--agc-red);
}

.agc-input-prefix span {
  padding: 0 14px;
  background: var(--agc-gray);
  font-size: 15px;
  font-weight: 700;
  color: var(--agc-muted);
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--agc-border);
}

.agc-input-prefix input {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  flex: 1;
  height: 100%;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--agc-dark);
  background: #fff;
}

/* ── Selected amount display ──────────────────────────────── */
.agc-selected-amount {
  margin-top: 12px;
}

.agc-amount-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--agc-red);
}

/* ── Inputs ───────────────────────────────────────────────── */
.agc-input,
.agc-textarea {
  width: 100%;
  border: 2px solid var(--agc-border) !important;
  border-radius: var(--agc-radius) !important;
  padding: 0 14px !important;
  height: var(--agc-input-h);
  font-size: 14px !important;
  color: var(--agc-text) !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.agc-input:focus,
.agc-textarea:focus {
  border-color: var(--agc-red) !important;
  outline: none !important;
}

.agc-textarea {
  height: auto;
  padding: 12px 14px !important;
  resize: vertical;
  line-height: 1.5;
}

.agc-date { cursor: pointer; }

/* ── Char count ───────────────────────────────────────────── */
.agc-char-count {
  text-align: right;
  font-size: 11px;
  color: var(--agc-muted);
  margin-top: 4px;
}

/* ── Divider ──────────────────────────────────────────────── */
.agc-divider {
  border: none;
  border-top: 1px solid var(--agc-border);
  margin: 4px 0 20px;
}

/* ── Validation errors ────────────────────────────────────── */
.agc-input.agc-error,
.agc-textarea.agc-error {
  border-color: var(--agc-red) !important;
}

.agc-field-error {
  display: block;
  font-size: 12px;
  color: var(--agc-red);
  margin-top: 4px;
}
