/* =======================================================
   Repār Brass Parchment Theme — Final Unified Build
   (Spacing, Layout, and Brand Styling)
   Patent Pending © Repār
======================================================= */

/* --- Palette --- */
:root {
  --brass: #c8a96b;
  --brass-2: #e9dbb7;
  --brass-3: #f3ead3;
  --ink: #0b0b0b;
  --ink-2: #1e1e1e;
  --line: #6e5a33;
  --line-2: #8a7448;
  --rounded: 14px;
}

/* --- Global background / typography --- */
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(1400px 600px at 15% -10%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(1000px 500px at 90% 0%, rgba(255,255,255,.1), transparent 55%),
    var(--brass);
}

/* --- Container --- */
.container {
  background: linear-gradient(180deg, var(--brass-2), #eddcb9 70%, var(--brass-2));
  color: var(--ink);
  padding: 36px;
  max-width: 740px;
  margin: 40px auto;
  border-radius: var(--rounded);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0,0,0,.18), 0 2px 0 rgba(0,0,0,.06) inset;
}

/* --- Header --- */
h1 {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .3px;
  background: linear-gradient(180deg, var(--brass-2), #e9dbb7 70%, var(--brass-2));
  border: 1px solid var(--line);
  border-radius: var(--rounded);
  padding: 14px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- Card styling (Customer, Item, etc.) --- */
.card {
  background: var(--brass-3);
  border: 1px solid var(--line);
  border-radius: var(--rounded);
  padding: 22px 24px;
  margin: 22px auto;
  max-width: 640px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.08);
}

/* =======================================================
   FORM STRUCTURE + SPACING
======================================================= */

form {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

/* --- Labels --- */
form label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 600;
  color: var(--ink);
}

/* --- Inputs / Selects / Textareas --- */
form input,
form select,
form textarea {
  display: block;
  width: 95%;
  max-width: 560px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  font-size: 0.95em;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--brass-3);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0,0,0,.06) inset;
}

input::placeholder { color: #5b4b2c; }

/* --- Focus --- */
input:focus, select:focus, textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11,11,11,.15);
  outline: none;
}

/* --- Section spacing --- */
form section,
form div[id$="-fields"] {
  margin-bottom: 36px;
  padding: 18px 20px;
  background: var(--brass-2);
  border: 1px solid var(--line);
  border-radius: var(--rounded);
}

/* --- Subheadings (Engagement Ring, Wedding Band, etc.) --- */
form h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
}

/* --- Sliders --- */
input[type="range"] {
  width: 90%;
  margin: 10px auto 20px;
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--brass);
  border: 1px solid var(--ink);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .2px;
  transition: transform .04s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* --- Button containers --- */
.button-container,
.action-buttons {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* --- Utility classes --- */
.muted { color: var(--ink-2); font-size: .9rem; }
.hidden { display: none; }

/* --- Divider (optional) --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  opacity: .4;
  margin: 24px  0;
}
/* force refresh */
