/* Kidney Klub Colors */
:root {
  --kk-red: #d00000;
  --kk-teal: #00a6b3;
  --kk-yellow: #ffe066;
  --kk-bg: #f5faff;
}

/* Body */
body {
  font-family: Arial, sans-serif;
  background: var(--kk-bg);
  margin: 0;
  padding: 0;
}

/* Deluxe Header */
.kk-header {
  background: radial-gradient(circle at center,
      var(--kk-yellow) 0%,
      var(--kk-red) 40%,
      var(--kk-teal) 100%);
  padding: 30px 20px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.kk-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.kk-mascot {
  width: 140px;
  height: auto;
  filter: drop-shadow(4px 4px 6px rgba(0,0,0,0.4));
}

.kk-title h1 {
  font-size: 2.6rem;
  margin: 0;
}

.kk-title h2 {
  margin: 5px 0;
  font-size: 1.6rem;
}

.kk-title p {
  font-size: 1.1rem;
  margin: 0;
}

/* Card Sections */
section {
  background: white;
  margin: 25px auto;
  padding: 25px;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.15);
}

section h3 {
  margin-top: 0;
  color: var(--kk-red);
  font-size: 1.4rem;
}

/* Customer Info Grid */
.customer-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 25px;
}

.customer-info input,
.customer-info textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--kk-teal);
  border-radius: 6px;
}

/* Item Rows */
.item {
  display: grid;
  grid-template-columns: 1fr 120px 80px 80px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.price {
  font-weight: bold;
  color: var(--kk-teal);
}

.qty {
  width: 70px;
  padding: 6px;
  border: 2px solid var(--kk-red);
  border-radius: 6px;
  text-align: center;
}

/* Sticky Total Bar */
.sticky-total {
  position: sticky;
  bottom: 0;
  background: var(--kk-red);
  color: white;
  padding: 15px 20px;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

/* Submit Button */
button {
  display: block;
  margin: 40px auto;
  padding: 15px 40px;
  font-size: 1.3rem;
  background: var(--kk-teal);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.2s;
}

button:hover {
  background: var(--kk-red);
  transform: scale(1.05);
}
/* Column header row that matches .item grid */
.item-headers {
  display: grid;
  grid-template-columns: 1fr 120px 90px 90px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 2px solid #eee;
  margin-bottom: 6px;
  color: #444;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.01), rgba(0,0,0,0.00));
}

/* Individual header cell tweaks */
.item-headers .hdr-label { justify-self: start; padding-left: 2px; }
.item-headers .hdr-price { justify-self: start; color: var(--kk-teal); }
.item-headers .hdr-qty,
.item-headers .hdr-gf { justify-self: center; color: #333; font-weight: 700; }

/* Make sure header aligns with .item on smaller screens */
@media (max-width: 880px) {
  .item-headers { grid-template-columns: 1fr 100px 90px; }
  .item-headers .hdr-gf { display: none; }
}

/* Very small screens: single-column stacked layout */
@media (max-width: 520px) {
  .item-headers { display: none; } /* headers hidden on very small screens to save space */
}


/* ===== Mobile-first enhancements ===== */
*{box-sizing:border-box}
@media (max-width:768px){
section{margin:12px;padding:16px;border-radius:10px}
.kk-header{padding:20px 15px}
.kk-header-inner{flex-direction:column;text-align:center;gap:12px}
.kk-mascot{width:90px}
.kk-title h1{font-size:2rem}
.kk-title h2{font-size:1.3rem}
.kk-title p{font-size:.95rem}
.customer-info{display:block}
.ci-row{margin-bottom:16px}
.customer-info input,.customer-info textarea{font-size:16px;padding:14px;width:100%}
.item-headers{display:none}
.item{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:8px;
padding:14px;
margin-bottom:12px;
border:1px solid #ddd;
border-radius:10px;
background:#fafafa;
}
.item-label{font-weight:700;font-size:1rem}
.price{font-size:1rem}
.qty{
width:100%;
max-width:130px;
padding:12px;
font-size:18px;
}
.sticky-total{
flex-direction:column;
text-align:center;
gap:6px;
font-size:1.05rem;
padding:12px;
}
button{
width:calc(100% - 24px);
margin:20px 12px 90px;
padding:18px;
font-size:1.2rem;
}
}
@media (min-width:769px){
.customer-info .ci-name,.customer-info .ci-comments{grid-column:1/-1}
}
