/* Submit-app overrides on top of bootstrap-custom.css */

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Add-photos button (uses .btn-outline-custom from bootstrap-custom.css for color) */
.add-photos {
  border-style: dashed !important;
  min-height: 64px;
  font-size: 1rem;
  font-weight: 600;
}
.add-photos:disabled { opacity: 0.5; cursor: not-allowed; }

/* Grid of uploaded photo cards under each "Add Photos" button */
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.photos:empty { margin-top: 0; }

.photo {
  position: relative;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
}
.photo img { width: 100%; height: 120px; object-fit: cover; display: block; }
.photo .status {
  font-size: 12px;
  padding: 6px 8px;
  background: #fff;
  color: #6a6a6a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}
.photo.ok .status { color: #0a7a3a; }
.photo.err .status { color: #b42318; font-weight: 600; }
.photo .progress {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  height: 3px;
  background: rgba(0,0,0,0.08);
  border-radius: 0;
}
.photo .progress > i {
  display: block;
  height: 100%;
  background: var(--primary-color, #BD7C20);
  width: 0;
  transition: width 0.15s linear;
}
.photo .remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.photo .retry {
  border: none;
  background: var(--primary-color, #BD7C20);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Consent checkbox (matches the rest of the marketing forms) */
.consent-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.consent-checkbox input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; }
.consent-text { font-size: 0.95rem; }

/* Submit-in-progress overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.overlay[hidden] { display: none; }
.overlay-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  max-width: 320px;
  width: 100%;
}
.overlay-card p { margin: 16px 0 0; font-weight: 600; }
.spinner {
  width: 40px; height: 40px;
  border: 4px solid #eee;
  border-top-color: var(--primary-color, #BD7C20);
  border-radius: 50%;
  margin: 0 auto;
  animation: qf-spin 0.7s linear infinite;
}
@keyframes qf-spin { to { transform: rotate(360deg); } }

/* Make sure the form inputs feel comfortable on touch */
.form-control { min-height: 48px; }
textarea.form-control { min-height: auto; }
