/* Customer footprint upload page — brand palette from shopify settings:
   Navy #1c2a39, Blue #2590ba, Gray #f5f5f5, White #ffffff */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background: #f5f5f5;
  color: #1c2a39;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: #ffffff;
  padding: 14px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.site-header__brand {
  display: inline-block;
  line-height: 0;
}

.site-header__logo {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .site-header {
    padding: 12px 16px;
  }

  .site-header__logo {
    height: 32px;
  }
}

.container {
  flex: 1;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 16px;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 36px 32px;
}

.hidden {
  display: none !important;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.3;
}

h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
}

p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
}

a {
  color: #2590ba;
}

.muted {
  color: #666666;
  font-size: 13px;
}

.center {
  text-align: center;
}

.optional-tag {
  font-size: 12px;
  font-weight: 500;
  color: #2590ba;
  background: rgba(37, 144, 186, 0.1);
  border-radius: 10px;
  padding: 2px 10px;
  vertical-align: middle;
}

.tips {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 18px 0;
}

.tips-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.tips ul {
  margin: 0;
  padding-left: 18px;
}

.tips li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 6px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 6px;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1c2a39;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background: #ffffff;
}

input:focus,
select:focus {
  outline: 2px solid #2590ba;
  border-color: #2590ba;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .card {
    padding: 28px 20px;
  }
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  width: 100%;
  padding: 14px 28px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.3px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #1c2a39;
  color: #ffffff;
}

.btn-primary:disabled {
  background: #9aa4ae;
  cursor: not-allowed;
}

.btn-secondary {
  background: #ffffff;
  color: #1c2a39;
  border: 2px dashed #2590ba;
}

.btn-secondary:disabled {
  color: #9aa4ae;
  border-color: #c5c5c5;
  cursor: not-allowed;
}

.error {
  color: #b3261e;
  font-size: 14px;
  margin: 10px 0 0;
}

.notice {
  background: rgba(37, 144, 186, 0.08);
  border-left: 3px solid #2590ba;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  font-size: 13px;
  margin-top: 24px;
}

#photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.photo-preview {
  position: relative;
  width: 140px;
}

.photo-preview img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d5d5d5;
  display: block;
}

.photo-remove {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: #b3261e;
  background: none;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  cursor: pointer;
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 20px auto;
  border: 4px solid #f5f5f5;
  border-top-color: #2590ba;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.site-footer {
  text-align: center;
  padding: 20px;
}

.site-footer p {
  font-size: 13px;
  color: #666666;
}
