.smartpack-form {
  --spf-black: #050505;
  --spf-yellow: #FFFC63;
  --spf-white: #fff;
  --spf-border: rgba(5, 5, 5, .18);
  --spf-muted: rgba(5, 5, 5, .58);
  --spf-radius: 10px;
  --spf-gap: 9px;
  width: 100%;
  color: var(--spf-black);
  font-family: Roboto, Arial, sans-serif;
}

.smartpack-form,
.smartpack-form * {
  box-sizing: border-box;
}

.smartpack-form [hidden],
.smartpack-form .is-hidden {
  display: none !important;
}

.smartpack-form button,
.smartpack-form button:hover,
.smartpack-form button:focus,
.smartpack-form button:active {
  color: var(--spf-black) !important;
  box-shadow: none !important;
  outline: none !important;
}

.smartpack-form .spf-form {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 12px;
  background: var(--spf-white);
  border: 1px solid var(--spf-border);
  border-radius: var(--spf-radius);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .055);
}

.smartpack-form .spf-tabs {
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 4px;
  background: var(--spf-black);
  border-radius: var(--spf-radius);
}

.smartpack-form .spf-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--spf-white) !important;
  border-radius: var(--spf-radius);
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: 300 13px/1 Roboto, Arial, sans-serif;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.smartpack-form .spf-tab:hover,
.smartpack-form .spf-tab:focus {
  color: var(--spf-white) !important;
  background: var(--spf-black) !important;
  border-color: var(--spf-yellow);
}

.smartpack-form .spf-tab.is-active,
.smartpack-form .spf-tab.is-active:hover,
.smartpack-form .spf-tab.is-active:focus {
  background: var(--spf-yellow) !important;
  color: var(--spf-black) !important;
  border-color: var(--spf-yellow);
}

.smartpack-form .spf-tab span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 11px;
}

.smartpack-form .spf-panel { display: none; }
.smartpack-form .spf-panel.is-active { display: block; }

.smartpack-form .spf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spf-gap);
}
.smartpack-form .spf-grid--contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.smartpack-form .spf-full { grid-column: 1 / -1; }

.smartpack-form .spf-label {
  display: block;
  margin: 0 0 5px;
  font-family: Anton, Impact, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--spf-black);
}

.smartpack-form .spf-input,
.smartpack-form .spf-select,
.smartpack-form .spf-textarea {
  width: 100%;
  border: 1px solid var(--spf-border);
  border-radius: var(--spf-radius);
  background: var(--spf-white);
  color: var(--spf-black);
  font: 300 14px/1.2 Roboto, Arial, sans-serif;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.smartpack-form .spf-input,
.smartpack-form .spf-select {
  height: 40px;
  padding: 0 11px;
}

.smartpack-form .spf-textarea {
  min-height: 82px;
  resize: vertical;
  padding: 11px;
}

.smartpack-form .spf-input:focus,
.smartpack-form .spf-select:focus,
.smartpack-form .spf-textarea:focus {
  border-color: var(--spf-black);
  box-shadow: 0 0 0 3px rgba(255, 252, 99, .78);
}

.smartpack-form .spf-help {
  margin-top: 4px;
  color: var(--spf-muted);
  font: 300 11px/1.25 Roboto, Arial, sans-serif;
}

.smartpack-form .spf-checkgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.smartpack-form .spf-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 9px;
  background: var(--spf-white);
  border: 1px solid var(--spf-border);
  border-radius: var(--spf-radius);
  cursor: pointer;
  color: var(--spf-black);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.smartpack-form .spf-check:hover {
  transform: translateY(-1px);
  border-color: var(--spf-black);
  background: var(--spf-white);
}

.smartpack-form .spf-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.smartpack-form .spf-box {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: var(--spf-white);
  border: 1.5px solid var(--spf-black);
  border-radius: 4px;
}

.smartpack-form .spf-box::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--spf-black);
  border-radius: 2px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .16s ease, transform .16s ease;
}

.smartpack-form .spf-check.is-active {
  background: var(--spf-yellow);
  border-color: var(--spf-black);
  box-shadow: inset 0 0 0 1px var(--spf-black);
}

.smartpack-form .spf-check.is-active .spf-box::after {
  opacity: 1;
  transform: scale(1);
}

.smartpack-form .spf-check-text {
  color: var(--spf-black);
  font: 300 12px/1.15 Roboto, Arial, sans-serif;
}

.smartpack-form .spf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.smartpack-form .spf-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.smartpack-form .spf-btn {
  appearance: none;
  padding: 10px 16px;
  background: var(--spf-yellow);
  border: 1px solid var(--spf-black);
  border-radius: var(--spf-radius);
  color: var(--spf-black) !important;
  cursor: pointer;
  font: 300 13px/1 Roboto, Arial, sans-serif;
  transition: transform .16s ease, opacity .16s ease, background .16s ease;
}

.smartpack-form .spf-btn:hover,
.smartpack-form .spf-btn:focus {
  background: var(--spf-yellow) !important;
  color: var(--spf-black) !important;
  transform: translateY(-1px);
}

.smartpack-form .spf-btn--ghost,
.smartpack-form .spf-btn--ghost:hover,
.smartpack-form .spf-btn--ghost:focus {
  background: var(--spf-black) !important;
  color: var(--spf-white) !important;
}

.smartpack-form .spf-btn:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.smartpack-form .spf-status {
  min-height: 18px;
  margin-top: 7px;
  color: var(--spf-black);
  font: 300 12px/1.3 Roboto, Arial, sans-serif;
}

@media (max-width: 900px) {
  .smartpack-form .spf-grid,
  .smartpack-form .spf-grid--contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smartpack-form .spf-checkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .smartpack-form .spf-form { padding: 10px; border-radius: var(--spf-radius); }
  .smartpack-form .spf-tabs { width: 100%; }
  .smartpack-form .spf-tab { flex: 1; }
  .smartpack-form .spf-grid,
  .smartpack-form .spf-grid--contact,
  .smartpack-form .spf-checkgrid { grid-template-columns: 1fr; }
  .smartpack-form .spf-actions {
    position: sticky;
    bottom: 8px;
    padding-top: 8px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
  }
  .smartpack-form .spf-btn { flex: 1; }
}

.smartpack-form .spf-dropzone {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--spf-white);
  border: 1px dashed rgba(5, 5, 5, .32);
  border-radius: var(--spf-radius);
  cursor: pointer;
}

.smartpack-form .spf-dropzone input { display: none; }

.smartpack-form .spf-drop-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  background: var(--spf-yellow);
  border: 1px solid var(--spf-black);
  border-radius: var(--spf-radius);
  color: var(--spf-black);
  font: 300 21px/1 Roboto, Arial, sans-serif;
}

.smartpack-form .spf-dropzone strong {
  display: block;
  color: var(--spf-black);
  font: 300 13px/1.2 Roboto, Arial, sans-serif;
}

.smartpack-form .spf-dropzone small {
  display: block;
  margin-top: 2px;
  color: var(--spf-muted);
  font: 300 11px/1.2 Roboto, Arial, sans-serif;
}

.smartpack-form .spf-file-list {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.smartpack-form .spf-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  background: var(--spf-white);
  border: 1px solid var(--spf-border);
  border-radius: var(--spf-radius);
}

.smartpack-form .spf-file strong {
  display: block;
  color: var(--spf-black);
  font: 300 12px/1.2 Roboto, Arial, sans-serif;
}

.smartpack-form .spf-file small {
  display: block;
  margin-top: 1px;
  color: var(--spf-muted);
  font: 300 10px/1.2 Roboto, Arial, sans-serif;
}

.smartpack-form .spf-file button {
  appearance: none;
  width: 24px;
  height: 24px;
  padding: 0;
  background: var(--spf-yellow);
  border: 1px solid var(--spf-black);
  border-radius: var(--spf-radius);
  color: var(--spf-black) !important;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
