/* ============================================================================
   SARAH CHOFAKIAN — Consertos (formulário, acompanhamento e pesquisa)
   Complementa o sc-site.css com os mesmos tokens.
   ========================================================================== */

[hidden] { display: none !important; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Grade de opções (partes afetadas) */
.choice-group.-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .choice-group.-grid { grid-template-columns: repeat(4, 1fr); } }
.choice-group.-grid .choice { flex: none; }
.choice-group.-grid .choice span { height: 4.4rem; padding: 0 1rem; font-size: 1.1rem; text-align: center; }

/* Etapas do hero com rótulo de dia */
.sc-steps .n { white-space: nowrap; }

/* ── Celular ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* 16px nos campos: o iPhone não dá zoom ao tocar */
  .input-text, .input-select, textarea.input-text { font-size: 16px; }
  /* Etapas do topo em 2 colunas, para o formulário aparecer mais cedo */
  .sc-steps { grid-template-columns: 1fr 1fr; gap: 1.2rem 1.6rem; }
  .sc-steps .t { font-size: 1.1rem; line-height: 1.5; }
  .field-row.-two, .field-row.-third { grid-template-columns: 1fr; }
  .confirmation-actions { display: grid; gap: 1rem; }
  .confirmation-actions .btn { width: 100%; }
  .photo-item button { width: 3.2rem; height: 3.2rem; font-size: 1.8rem; }
}

/* Fotos */
.photo-tips { list-style: none; margin: 0 0 2.4rem; padding: 0; display: grid; gap: .6rem; }
.photo-tips li { position: relative; padding-left: 1.8rem; font-size: 1.3rem; color: var(--gray-4); line-height: 1.6; }
.photo-tips li::before { content: ""; position: absolute; left: 0; top: .8rem; width: .8rem; height: 1px; background: var(--primary-color); }

.photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.photo-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
  min-height: 11rem; padding: 1.6rem 1rem; cursor: pointer; text-align: center;
  background: var(--white); border: 1px solid var(--primary-color); transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.photo-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-btn svg { width: 2.8rem; height: 2.8rem; }
.photo-btn span { font-size: 1.1rem; letter-spacing: .15em; text-transform: uppercase; }
.photo-btn:hover, .photo-btn:active { background: var(--primary-color); color: var(--secondary-color); }
.photo-btn:focus-within { outline: 1px solid var(--primary-color); outline-offset: 2px; }
.photo-btn.-disabled { opacity: .35; pointer-events: none; }
.field.-invalid .photo-btn { border-color: var(--error); }
.photo-count { margin-top: .8rem; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-3); }

.photo-drop { position: relative; display: block; margin-top: 1rem; }
/* Celular e tablet: sem arrastar e soltar, só os dois botões */
@media (hover: none), (max-width: 767px) { .photo-drop { display: none; } }
.photo-drop .area {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  min-height: 8rem; padding: 2rem; text-align: center;
  border: 1px dashed var(--gray-3); background-color: var(--white); transition: var(--transition);
}
.photo-drop:hover .area, .photo-drop.-drag .area { border-color: var(--primary-color); }
.photo-drop .area strong { font-size: var(--font-size-small); font-weight: 400; letter-spacing: .15em; text-transform: uppercase; }
.photo-drop .area span { font-size: 1.1rem; color: var(--gray-3); }
.field.-invalid .photo-drop .area { border-color: var(--error); }

.photo-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
@media (min-width: 768px) { .photo-list { grid-template-columns: repeat(6, 1fr); } }
.photo-list:empty { display: none; }
.photo-item { position: relative; aspect-ratio: 1; background: var(--gray-1); border: 1px solid var(--gray-2); overflow: hidden; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item button {
  position: absolute; top: .4rem; right: .4rem; width: 2.4rem; height: 2.4rem;
  background: var(--primary-color); color: var(--secondary-color); font-size: 1.4rem; line-height: 1;
}
.photo-item.-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 1.8rem; height: 1.8rem;
  border: 1px solid var(--primary-color); border-top-color: transparent; border-radius: 50%;
  animation: sc-spin .7s linear infinite;
}

/* Prazos na confirmação */
.deadlines { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin: 3.2rem 0 0; text-align: left; }
@media (min-width: 768px) { .deadlines { grid-template-columns: 1fr 1fr; } }
.deadlines div { border: 1px solid var(--gray-2); background: var(--white); padding: 1.6rem 2rem; }
.deadlines .label { display: block; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-3); margin-bottom: .4rem; }
.deadlines .value { font-size: 1.8rem; letter-spacing: .06em; }
.deadlines .desc { display: block; font-size: 1.2rem; color: var(--gray-4); margin-top: .4rem; line-height: 1.6; }

.confirmation-actions a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* ── Acompanhamento: linha do tempo ───────────────────────────────────── */
.timeline { list-style: none; margin: 3.2rem 0 0; padding: 0; text-align: left; }
.timeline li { position: relative; padding: 0 0 2.8rem 3.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: .7rem; top: 1.6rem; bottom: 0; width: 1px; background: var(--gray-2);
}
.timeline li:last-child::before { display: none; }
.timeline .dot {
  position: absolute; left: 0; top: .3rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 1px solid var(--gray-3); background: var(--secondary-color);
}
.timeline li.-done .dot { background: var(--primary-color); border-color: var(--primary-color); }
.timeline li.-current .dot { border: 2px solid var(--primary-color); }
.timeline .name { display: block; font-size: 1.4rem; letter-spacing: .06em; }
.timeline li:not(.-done) .name { color: var(--gray-3); }
.timeline li.-current .name { color: var(--primary-color); }
.timeline .when { display: block; font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-3); margin-top: .3rem; }

.status-box { margin-top: 3.2rem; text-align: left; }

/* ── Pesquisa: escala 1 a 5 ───────────────────────────────────────────── */
.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.rating .choice { flex: none; }
.rating .choice span { height: 5.2rem; font-size: 1.8rem; letter-spacing: 0; }
.rating-legend { display: flex; justify-content: space-between; margin-top: .8rem; font-size: 1.1rem; color: var(--gray-3); }

.state-msg { text-align: center; padding: 4rem 0; }
.state-msg p { color: var(--gray-4); line-height: 1.8; }
