:root {
    --bg: #f7f7f5;
    --surface: #ffffff;
    --ink: #2f2c7b;
    --ink-secondary: #555555;
    --ink-muted: #999999;
    --charcoal: #2f2c7b;
    --charcoal-hover: #000000;
    --border: #e2e2e0;
    --border-light: #eeeeec;
    --success-text: #2a5a2a;
    --error-text: #5a2a2a;
    --radius: 6px;
    --radius-lg: 10px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

.header h1 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-buttons {
  display: flex;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

    .nav-buttons button, .nav-buttons a{
        border: 0;
        border-right: 1px solid var(--border);
        background: transparent;
        color: var(--ink-muted);
        cursor: pointer;
        font: inherit;
        font-size: 0.8rem;
        padding: 0.5rem 1.25rem;
        transition: all var(--transition);
        text-decoration:none;
    }

.nav-buttons button:last-child {
  border-right: 0;
  font-size: 0.75rem;
  font-weight: 500;
  padding-inline: 0.75rem;
}

.nav-buttons button:hover {
  color: var(--ink);
  background: var(--border-light);
}

.nav-buttons button.active {
  background: var(--charcoal);
  color: #ffffff;
}

.container {
  width: 100%;
  max-width: 1160px;
  flex: 1;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.card {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: fadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ink);
}

.card-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.35rem;
  margin-bottom: 2.5rem;
}

.card-header-logo {
  grid-row: 1 / span 2;
  width: 115px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.card-header h2 {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  color:var(--ink);
}

.card-header p {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: var(--ink-muted);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.section-label {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  transition: all var(--transition);
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.06);
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-muted);
}

select {
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.validation-msg {
  display: block;
  min-height: 14px;
  margin-top: 0.4rem;
  color: var(--error-text);
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0;
}

.muted-label {
  color: var(--ink-muted);
  font-weight: 400;
}

.slots-container {
  margin-bottom: 2rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.slot-btn {
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  text-align: center;
  transition: all var(--transition);
  opacity: 0;
  animation: fadeUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slot-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

.slot-btn.selected {
  background: var(--charcoal);
  color: #ffffff;
  border-color: var(--charcoal);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slot-btn.selected::before {
  content: "✓ ";
  font-size: 0.7rem;
}

.mobile-slot-trigger {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
}

.mobile-slot-trigger.has-selection {
  border-style: solid;
  border-color: var(--charcoal);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}

.divider {
  height: 1px;
  margin: 2rem 0;
  background: var(--border-light);
}

.upload-dropzone {
  position: relative;
  padding: 1.75rem 1rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--ink);
  background: var(--border-light);
}

.upload-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  pointer-events: none;
}

.upload-dropzone-content span {
  color: var(--ink-secondary);
  font-size: 0.82rem;
  font-weight: 500;
}

.upload-dropzone-content small {
  color: var(--ink-muted);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-input {
    position: fixed;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0.75rem;
}

.file-list:empty {
  margin-top: 0;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--ink-secondary);
  font-size: 0.78rem;
}

.file-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 6px;
  background: #555555;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-remove {
    flex: 0 0 auto;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.7rem;
    transition: all var(--transition);
}

    .file-remove:hover {
        border-color: var(--error-text);
        background: #f5eeee;
        color: var(--error-text);
    }

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  background: var(--charcoal);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.btn-submit:hover:not(:disabled) {
  background: #ffffff;
  border-color: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color:var(--ink);
}

.btn-submit:disabled {
  background: var(--border);
  color: var(--ink-muted);
  border-color: var(--border);
  cursor: not-allowed;
}

.btn-sm {
  width: auto;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.admin-login-row {
  display: flex;
  gap: 10px;
}

.admin-login-row input {
  flex: 1;
}

.slot-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.slot-modal-overlay.open {
  display: flex;
}

.slot-modal {
  width: 100%;
  max-width: 480px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 2rem;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slot-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.slot-modal-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.slot-modal-close {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 4px;
}

.modal-slots-grid {
  grid-template-columns: repeat(2, 1fr);
}

.footer {
  display: flex;
  justify-content: center;
  padding: 1.25rem 2.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.72rem;
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .header {
    height: 56px;
    gap: 8px;
    padding: 0 0.75rem;
  }

  .header-brand {
    gap: 6px;
  }

  .logo-img {
    height: 32px;
  }

  .header h1 {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .nav-buttons button {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .container {
    padding: 1.5rem 1rem 3rem;
  }

  .card {
    padding: 1.75rem 1.25rem;
  }

  .card-header {
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: 0.75rem;
  }

  .card-header-logo {
    grid-column: 1;
    grid-row: 1;
    width: 64px;
  }

  .card-header h2 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 1.25rem;
  }

  .card-header p {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .slots-grid:not(.modal-slots-grid) {
    display: none;
  }

  .mobile-slot-trigger {
    display: flex;
  }
}
