:root {
  --orange: #000000;
  --orange-dark: #c45e0a;
  --orange-light: #f1a274c4;
  --teal: #2BBFB3;
  --brown: #7A5230;
  --red-orange: #E84B1A;
  --text: #2c2c2c;
  --muted: #1a1a1a;
  --border: #ddd;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--orange);
  color: var(--text);
  min-height: 100vh;
}

/* CONTAINER */
.container {
  max-width: 680px;
  margin: 40px auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  overflow: visible;
}

/* HEADER */
header { text-align: center; margin-bottom: 32px; }

.banner {
  display: block;
  width: 100%;
  height: 700px;
  object-fit: cover;
  object-position: center 32%;
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.logo {
  width: 120px;
  margin-bottom: 12px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

header h1 {
  font-size: 1.6rem;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--brown);
  font-weight: 600;
  margin-top: 4px;
}

.desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
  background: var(--orange-light);
  border-left: 4px solid var(--orange);
  padding: 10px 14px;
  border-radius: 6px;
  text-align: left;
}

/* FIELDS */
.field {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.field small {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.field input,
.field textarea,
.field select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
  color: var(--text);
  background: #fafafa;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,119,34,0.15);
  background: var(--white);
}

.field input.invalid,
.field textarea.invalid {
  border-color: #e53935;
}

.field textarea { resize: vertical; min-height: 80px; }

.req { color: var(--red-orange); }

.error {
  font-size: 0.8rem;
  color: #e53935;
  min-height: 16px;
}

/* SECTION TITLE */
.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--orange-dark);
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--orange-light);
}

/* FIELD INLINE */
.field-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.field-inline label { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.field-inline input { flex: 1; }

/* CHECKBOX */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.checkbox-field { flex-direction: row; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1.5;
}
.checkbox-label:hover { border-color: var(--orange); background: #fff8f3; }
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  flex-shrink: 0;
}
.invalid-group .checkbox-label { border-color: #e53935; }

/* RADIO GROUP */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.radio-group--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}
.radio-label:hover { border-color: var(--orange); background: #fff8f3; }
.radio-label input[type="radio"] {
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.radio-group--inline .radio-label {
  padding: 6px 12px;
  min-width: 48px;
  justify-content: center;
}
.invalid-group .radio-label { border-color: #e53935; }

/* BUTTON */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
  letter-spacing: 0.3px;
}
.btn-submit:hover { background: var(--orange-dark); }
.btn-submit:active { transform: scale(0.98); }

/* SUCCESS */
.success-msg {
  text-align: center;
  padding: 30px 20px;
  background: #e8f5e9;
  border-radius: var(--radius);
  border: 1.5px solid #a5d6a7;
}
.success-msg span { font-size: 2.5rem; }
.success-msg p { margin-top: 12px; font-size: 1rem; color: #2e7d32; font-weight: 600; }

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* HIDDEN */
.hidden { display: none !important; }

/* ===== ADMIN ===== */
.admin-body { background: #f4f6f9; }

.login-container { max-width: 420px; }

.admin-topbar {
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.admin-topbar-left { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1rem; }
.logo-sm { width: 38px; }

.btn-logout {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 7px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-logout:hover { background: rgba(255,255,255,0.35); }

.admin-content {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 20px;
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-header-row h2 { font-size: 1.4rem; color: var(--text); }

.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.search-input {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  min-width: 200px;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--orange); }

.btn-export {
  padding: 9px 16px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.2s;
}
.btn-export:hover { background: #1fa89d; }

.btn-danger {
  padding: 9px 16px;
  background: #e53935;
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.2s;
}
.btn-danger:hover { background: #b71c1c; }

.btn-row-delete {
  background: none;
  border: none;
  color: #e53935;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.btn-row-delete:hover { background: #fdecea; }

.total-count { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }

.table-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead tr { background: var(--orange); color: var(--white); }
thead th { padding: 13px 14px; text-align: left; font-weight: 700; white-space: nowrap; }

tbody tr { border-bottom: 1px solid #f0f0f0; transition: background 0.15s; }
tbody tr:hover { background: var(--orange-light); }
tbody td { padding: 12px 14px; vertical-align: top; max-width: 200px; word-break: break-word; }

.badge-num {
  background: var(--orange-light);
  color: var(--orange-dark);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.empty-msg {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .container { margin: 16px; padding: 24px 18px; }
  .admin-content { padding: 0 10px; }
  .admin-header-row { flex-direction: column; align-items: flex-start; }
}

.btn-whatsapp {
  text-decoration: none;
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.btn-whatsapp:hover { background: #e8f5e9; }
