/* ============================================================
   Elaine's Delights - Stylesheet
   ============================================================ */

:root {
  --teal: #2AABB5;
  --teal-dark: #1d8a93;
  --coral: #E8546A;
  --coral-dark: #c93f55;
  --cream: #F5F0E8;
  --navy: #1B3A5C;
  --card: #ffffff;
  --text: #1B3A5C;
  --muted: #7a93a8;
  --border: #d9e4eb;
  --input-bg: #f0f6f8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(42,171,181,0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(232,84,106,0.10) 0%, transparent 50%);
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 16px 60px;
}

/* -- Header -- */
.header { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; }
.logo-ring {
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--cream); border: 4px solid var(--teal);
  box-shadow: 0 8px 28px rgba(42,171,181,0.25), 0 0 0 8px rgba(42,171,181,0.08);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 14px;
}
.logo-ring img { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--navy); letter-spacing: -0.5px; }
.brand-sub { font-size: 0.78rem; color: var(--teal); letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; margin-top: 2px; }

/* -- Notice Banner -- */
.notice-banner {
  max-width: 520px; width: 100%;
  background: #fff8e1; border: 1.5px solid #f4c430;
  border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
  font-size: 0.82rem; color: #7a5800; line-height: 1.6;
  display: flex; gap: 10px; align-items: flex-start;
}
.notice-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* -- Daily Menu Card -- */
.menu-card {
  max-width: 520px; width: 100%;
  margin-bottom: 16px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(27,58,92,0.10);
  cursor: pointer; position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.menu-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(27,58,92,0.15); }
.menu-card img { width: 100%; display: block; border-radius: 16px; }
.menu-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(27,58,92,0.85) 0%, transparent 100%);
  padding: 20px 18px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 0 0 16px 16px;
}
.menu-card-label { font-family: 'Playfair Display', serif; font-size: 1rem; color: white; font-weight: 700; }
.menu-card-hint { font-size: 0.72rem; color: rgba(255,255,255,0.75); display: flex; align-items: center; gap: 5px; }

/* -- Lightbox -- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,18,30,0.92);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%; max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.94);
  transition: transform 0.25s;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 16px; right: 18px;
  background: rgba(255,255,255,0.12); border: none;
  color: white; font-size: 1.4rem; width: 38px; height: 38px;
  border-radius: 50%; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-caption {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.78rem; white-space: nowrap;
}

/* -- Card -- */
.card {
  background: var(--card); border-radius: 20px;
  width: 100%; max-width: 520px;
  box-shadow: 0 4px 40px rgba(27,58,92,0.10); overflow: hidden;
}
.card-section { padding: 24px 28px; border-bottom: 1px solid var(--border); }
.card-section:last-child { border-bottom: none; }
.section-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}

/* -- Tab Toggle -- */
.tab-toggle {
  display: flex; background: var(--input-bg);
  border-radius: 10px; padding: 4px; margin-bottom: 18px; gap: 4px;
}
.tab-btn {
  flex: 1; padding: 9px 8px; border: none; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.83rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; color: var(--muted); background: transparent;
}
.tab-btn.active { background: white; color: var(--navy); box-shadow: 0 2px 8px rgba(27,58,92,0.10); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* -- Form Elements -- */
label.field-label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); margin-bottom: 5px; margin-top: 12px;
}
label.field-label:first-of-type { margin-top: 0; }

input, select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--input-bg);
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42,171,181,0.12);
}

.row { display: flex; gap: 12px; }
.row > div { flex: 1; }
.hidden-field { display: none; }

.sides-note {
  font-size: 0.75rem; color: var(--muted);
  margin-top: 8px; line-height: 1.5; font-style: italic;
}

/* -- Side Slots -- */
.side-slots {
  margin-top: 14px;
  background: #f0f8f9;
  border: 1.5px solid var(--teal);
  border-radius: 12px;
  padding: 14px 16px;
}
.side-slots-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.side-slot { margin-bottom: 10px; }
.side-slot:last-child { margin-bottom: 0; }
.side-slot label {
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
  margin-bottom: 4px; display: block;
}

/* -- Cart -- */
.cart-box {
  background: #f7fbfc; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px 16px; margin-top: 16px;
}
.cart-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--navy); margin-bottom: 10px;
}
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.88rem; padding: 7px 0;
  border-bottom: 1px dashed var(--border); color: var(--text);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-label { flex: 1; padding-right: 8px; }
.cart-item-type {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 2px 6px; border-radius: 4px; margin-right: 6px;
}
.type-meal  { background: rgba(42,171,181,0.12); color: var(--teal); }
.type-side  { background: rgba(27,58,92,0.08);   color: var(--navy); }
.type-drink { background: rgba(232,84,106,0.10); color: var(--coral); }
.remove-btn {
  color: var(--coral); cursor: pointer; font-size: 1.1rem;
  font-weight: 700; margin-left: 8px; line-height: 1; transition: transform 0.15s;
}
.remove-btn:hover { transform: scale(1.3); }
.cart-total { text-align: right; font-weight: 700; color: var(--navy); margin-top: 10px; font-size: 1rem; }
.cart-total span { color: var(--teal); }

/* -- Buttons -- */
.btn-add {
  background: var(--teal); color: white; width: 100%;
  padding: 12px; border: none; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  font-size: 0.92rem; cursor: pointer; margin-top: 16px;
  transition: background 0.2s, transform 0.15s;
}
.btn-add:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-submit {
  background: var(--coral); color: white; width: 100%;
  padding: 15px; border: none; border-radius: 10px;
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-submit:disabled { background: #c5d3db; cursor: not-allowed; transform: none; }

/* -- Banking -- */
.banking-card {
  background: var(--navy); color: #d6e8f0; border-radius: 14px;
  padding: 20px 22px; margin-top: 20px; font-size: 0.84rem; line-height: 1.7;
}
.banking-card h3 { font-family: 'Playfair Display', serif; color: white; font-size: 1rem; margin-bottom: 12px; }
.banking-card strong { color: var(--teal); }
.bank-block { margin-top: 12px; }
.disclaimer {
  background: rgba(232,84,106,0.08); border: 1.5px dashed var(--coral);
  border-radius: 10px; padding: 12px 16px; font-size: 0.78rem;
  color: var(--coral-dark); text-align: center; margin-top: 14px; line-height: 1.6;
}
.footer { margin-top: 28px; text-align: center; font-size: 0.75rem; color: var(--muted); letter-spacing: 1px; }
