/* The customers' own photos. The page is theirs, so the shop's own voice
   stays quiet: the pictures are the content and everything else gets out of
   their way. */

.gl-page { padding-bottom: 40px; }

.gl-intro { padding: 34px 0 18px; text-align: center; }
.gl-title {
  margin: 0 0 8px; font-size: clamp(26px, 5vw, 40px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.08;
  text-wrap: balance;
}
.gl-sub { margin: 0 auto; max-width: 54ch; color: var(--ink-2); font-size: 15.5px; }

/* ---- the offer ---- */
.gl-offer {
  max-width: 560px; margin: 0 auto 30px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow-sm);
}
.gl-offer-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gl-offer-head > div { flex: 1; min-width: 180px; }
.gl-offer-head strong { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.gl-offer-head span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.gl-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.gl-label {
  display: block; margin: 12px 0 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
}
.gl-label:first-child { margin-top: 0; }
.gl-row { display: flex; gap: 8px; }
.gl-row .gl-input { flex: 1; min-width: 0; }
.gl-input {
  width: 100%; padding: 11px 13px; font-size: 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--page); color: var(--ink);
}
.gl-input:focus {
  outline: 0; border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
}
.gl-select { appearance: auto; }
.gl-file { padding: 9px 11px; font-size: 14px; }
.gl-preview {
  display: block; margin-top: 10px; width: 100%; max-height: 260px;
  object-fit: cover; border-radius: 12px; border: 1px solid var(--line);
}
.gl-form .btn-block { margin-top: 14px; }
.gl-note { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.gl-note.is-good { color: var(--accent-text); font-weight: 650; }
.gl-note.is-bad { color: var(--sale); }
.gl-small { margin: 10px 0 0; font-size: 12px; color: var(--ink-3); }

/* ---- filter by phone ---- */
.gl-models {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 0 14px; scrollbar-width: none;
}
.gl-models::-webkit-scrollbar { display: none; }
.gl-models .chip { flex: none; }
.gl-models .chip.is-active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* ---- the photos ----
   A masonry-ish grid that does not care what shape a phone camera produced:
   every picture keeps its own proportions rather than being cropped to a
   square, because a cover photographed in a hand is usually portrait. */
.gl-grid {
  columns: 2;
  column-gap: 12px;
}
@media (min-width: 700px) { .gl-grid { columns: 3; } }
@media (min-width: 1100px) { .gl-grid { columns: 4; } }
.gl-card {
  break-inside: avoid; margin: 0 0 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.gl-card img { width: 100%; height: auto; display: block; }
.gl-cap {
  padding: 8px 10px 9px; font-size: 12px; color: var(--ink-2);
}
.gl-empty { text-align: center; color: var(--ink-3); padding: 30px 0; }

/* ---- what the photo has to show ----
   Before the number is asked for and before the picture is taken: a customer
   who reads the rules after being rejected has already lost their trouble
   and their good mood. */
.gl-rules {
  margin-bottom: 16px; padding: 13px 14px;
  background: var(--accent-soft); border-radius: 12px;
  font-size: 13.5px; line-height: 1.5;
}
.gl-rules-title { display: block; font-size: 14px; margin-bottom: 7px; }
.gl-rules ul { margin: 0; padding-left: 18px; }
.gl-rules li { margin-bottom: 4px; }
.gl-rules li b { font-weight: 700; }
.gl-rules-note {
  margin: 9px 0 0; padding-top: 9px;
  border-top: 1px solid rgba(11, 11, 11, .12);
  font-size: 12.5px; color: var(--ink-2);
}
.gl-rules-note b { color: var(--ink); }
/* Beside the picture they just chose, while changing it still costs nothing. */
.gl-check-note {
  margin: 8px 0 0; font-size: 12.5px; font-weight: 650; color: var(--accent-text);
}

/* ---- the Instagram story claim (/story) ----
   The same offer one step further out, so it borrows this whole stylesheet
   and adds only what a gallery has no use for: numbered steps, and the '@'
   that belongs to a username rather than to what is typed. */
.gl-story-link { margin: 12px 0 0; font-size: 13.5px; }
.gl-story-link a { font-weight: 650; }
.st-page .gl-offer { margin-bottom: 0; }
.st-steps { margin: 0; padding-left: 20px; }
.st-steps li { margin-bottom: 6px; }
.st-steps li:last-child { margin-bottom: 0; }
.st-at { display: flex; align-items: center; gap: 8px; }
.st-at > span { font-size: 17px; font-weight: 700; color: var(--ink-3); }
.st-at .gl-input { flex: 1; min-width: 0; }
