:root {
  --black: #0b0b0b;
  --ink: #111316;
  --ink-2: #2c2f33;
  --muted: #6a6f76;
  --line: #e3e5e8;
  --line-2: #d4d7dc;
  --bg: #ffffff;
  --panel: #f3f4f6;
  --panel-2: #f7f8fa;
  --blue: #1a73e8;
  --blue-deep: #0c5cd1;
  --red: #e3162b;
  --yellow: #ffd60a;
  --green: #16a34a;
  --danger: #d92020;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Barlow', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.italic-display {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- LOGO BAR ---------- */
.logo-bar {
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.ctech-logo {
  display: block;
  width: 120px;
  height: auto;
}

/* ---------- PAGE ---------- */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}
.page-title {
  font-size: 32px;
  line-height: 1;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- FORM CARD ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px 28px 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.label .req { margin-left: 2px; }
.req { color: var(--red); font-weight: 700; }
.help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.input,
.select,
.textarea {
  background: #fff;
  border: 1px solid var(--line-2);
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
  width: 100%;
  /* Ensure minimum touch target on mobile */
  min-height: 44px;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}
.input.invalid,
.select.invalid,
.textarea.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(217,32,32,.12);
}
.textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.error-line {
  font-size: 12px;
  color: var(--danger);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.error-line:empty { display: none; }
.pn-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.pn-row .input { border-right: 0; }
.pn-info-btn {
  background: #fff;
  border: 1px solid var(--line-2);
  border-left: 1px solid var(--line);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background .12s, color .12s;
  min-height: 44px;
}
.pn-info-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pn-info-btn:hover .pn-i-circle { background: #fff; color: var(--blue); }
.pn-i-circle {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

/* ---------- ADDRESS SUBGRID ---------- */
.addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 120px 140px;
  gap: 10px;
}

/* ---------- ADDRESS AUTOCOMPLETE ---------- */
.addr-street-wrap { position: relative; }
.addr-suggestions {
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--blue);
  border-top: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.13);
  max-height: 220px;
  overflow-y: auto;
}
.addr-suggestion {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background .1s;
}
.addr-suggestion:last-child { border-bottom: 0; }
.addr-suggestion:hover, .addr-suggestion:active { background: #eef4fe; }
.addr-suggestion-main { font-size: 14px; font-weight: 600; color: var(--ink); }
.addr-suggestion-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Select dropdown arrow */
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a6f76' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

/* ---------- PHOTO UPLOAD ---------- */
.uploader {
  background: #fff;
  border: 1.5px dashed var(--line-2);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .12s, background .12s;
}
.uploader.drag {
  border-color: var(--blue);
  background: #eef4fe;
}
.uploader-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 8px;
  flex-wrap: wrap;
}
.uploader-icon {
  width: 56px; height: 56px;
  background: #0b0b0b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.uploader-copy { flex: 1; min-width: 160px; }
.uploader-copy h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.uploader-copy p { margin: 0; font-size: 13px; color: var(--muted); }
.uploader-cta {
  background: #0b0b0b;
  color: #fff;
  border: 0;
  padding: 11px 18px;
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.uploader-cta:hover { background: var(--blue); }
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: #111;
  overflow: hidden;
  border: 1px solid var(--line);
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.thumb .meta {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
  color: #fff;
  font-size: 10.5px;
  padding: 16px 8px 6px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.thumb .meta .fname {
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thumb .x {
  position: absolute;
  top: 6px; right: 6px;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(0,0,0,.8);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.thumb .x:hover { background: var(--red); }

/* ---------- SUBMIT ---------- */
.form-foot {
  margin-top: 20px;
}
.btn-submit {
  background: #0b0b0b;
  color: #fff;
  border: 0;
  padding: 14px 28px;
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .14s, transform .12s;
  min-height: 48px;
}
.btn-submit:hover { background: var(--blue); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- SUCCESS ---------- */
.success {
  background: #fff;
  border: 1px solid var(--line);
  padding: 56px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: slideUp .25s ease-out;
}
.success .check {
  width: 72px; height: 72px;
  background: var(--green);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 6px;
}
.success h2 {
  margin: 0;
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.success p { margin: 0; color: var(--muted); max-width: 480px; font-size: 14.5px; line-height: 1.55; }
.success .ref {
  background: #0b0b0b;
  color: #fff;
  padding: 10px 18px;
  margin-top: 8px;
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.success .crumb {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- MODAL ---------- */
.modal-scrim {
  position: fixed; inset: 0;
  background: rgba(8,10,14,.62);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .15s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.modal {
  background: #fff;
  width: min(1080px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: slideUp .2s ease-out;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  overflow: hidden;
}
.pn-modal { width: min(1080px, 100%); }
.modal-head {
  background: #0b0b0b;
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.modal-head h2 {
  margin: 0;
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal-head h2 .pn-yellow {
  background: var(--yellow);
  color: #0b0b0b;
  padding: 2px 8px 0;
  margin-left: 6px;
}
.modal-close {
  background: transparent;
  color: #fff;
  border: 0;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  flex-shrink: 0;
}
.modal-close:hover { background: rgba(255,255,255,.12); }
.modal-tabs {
  display: flex;
  background: #f7f8fa;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
  gap: 4px;
  flex-shrink: 0;
  overflow-x: auto;
}
.tab {
  background: transparent;
  border: 0;
  padding: 14px 22px 12px;
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .12s, border-color .12s;
  white-space: nowrap;
  min-height: 48px;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--red);
}
/* ---------- PN BODY (photo guide) ---------- */
.pn-body {
  padding: 24px 28px 28px;
  overflow-y: auto;
}
.pn-intro h3 {
  margin: 0 0 6px;
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 24px;
  letter-spacing: 0.01em;
}
.pn-intro p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 720px;
}
.pn-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) {
  .pn-photos { grid-template-columns: 1fr; }
}
.pn-photo {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.pn-photo-img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  background: #f3f4f6;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
}
.pn-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.pn-photo-img:hover img { transform: scale(1.03); }
.pn-tag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0b0b0b;
  color: #fff;
  padding: 5px 10px 4px;
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  z-index: 1;
}
.pn-photo figcaption {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}
.pn-photo figcaption h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.pn-photo figcaption p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}
.pn-tip {
  margin-top: 22px;
  padding: 14px 16px;
  background: #0b0b0b;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
}
.pn-tip a { color: var(--yellow); text-decoration: underline; }
.pn-tip strong {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 8px;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,10,14,.92);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  flex-direction: column;
  gap: 16px;
  cursor: zoom-out;
  animation: fadeIn .15s ease-out;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-cap {
  color: #fff;
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- RESPONSIVE: TABLET ---------- */
@media (max-width: 860px) {
  .addr-grid { grid-template-columns: 1fr 1fr; }
  .pn-photos { grid-template-columns: 1fr; }
  .page { padding: 24px 16px 48px; }
  .card { padding: 20px 16px 24px; }
}

/* ---------- RESPONSIVE: MOBILE ---------- */
@media (max-width: 580px) {
  .logo-bar { padding: 12px 16px; }
  .ctech-logo { width: 100px; }

  .page { padding: 20px 12px 40px; }
  .page-title { font-size: 26px; }

  .card { padding: 16px 12px 20px; border-left: 0; border-right: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field.full { grid-column: 1; }

  .addr-grid { grid-template-columns: 1fr 1fr; }

  .pn-row { flex-wrap: wrap; }
  .pn-row .input { border-right: 1px solid var(--line-2); flex: 1 1 100%; }
  .pn-info-btn { border-left: 1px solid var(--line-2); flex: 1 1 100%; justify-content: center; border-top: 0; }

  .uploader-empty { flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 4px; }
  .uploader-cta { width: 100%; justify-content: center; }

  .btn-submit { width: 100%; justify-content: center; }

  .success { padding: 36px 16px; }
  .success h2 { font-size: 28px; }

  .modal-scrim { padding: 0; align-items: flex-end; }
  .modal { max-height: 95vh; width: 100%; border-radius: 0; }
  .modal-body { padding: 16px; }
  .modal-head { padding: 14px 16px; }
  .modal-head h2 { font-size: 17px; }
}
