/* ===========================================
   POPTAVKA.CSS - Inquiry / poptávka page
   Uses CSS variables from style.css
   =========================================== */

/* =========================================
   MAIN TWO-COLUMN SECTION
   ========================================= */

.inquiry-main {
  padding: 48px 0 56px;
  background: var(--bg);
}

.inquiry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: start;
}

/* =========================================
   RIGHT COLUMN - CHECKLIST (info)
   Šedé pozadí pro oddělení od formuláře.
   Staticky pozicovaný - neroluje se se stránkou.
   ========================================= */

.checklist-col {
  background: var(--bg-soft);
  padding: 28px 26px;
  border-radius: 12px;
}

.checklist-col h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}

/* Checklist list */
.inquiry-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.inquiry-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.inquiry-checklist li:first-child {
  border-top: 1px solid var(--line);
}

.inquiry-checklist .check {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1.4;
}

.inquiry-checklist .item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inquiry-checklist .item-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.inquiry-checklist .detail {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Orange highlight note */
.checklist-note {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.checklist-note p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}

.checklist-note p strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

/* Email alternative box - na šedém podkladu má bílou výplň */
.email-alt {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: #ffffff;
}

.email-alt h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.email-alt p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 12px;
}

.email-alt__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
  word-break: break-all;
}

.email-alt__link:hover {
  border-color: var(--accent);
}

/* Phone quick */
.phone-quick {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.phone-quick a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.phone-quick a:hover {
  color: var(--accent);
}

/* =========================================
   RIGHT COLUMN - FORM
   ========================================= */

.form-col h2,
.form-col .form-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.25;
}

.form-intro {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.5;
}

/* Form layout */
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.req {
  color: var(--accent);
  margin-left: 2px;
}

.opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(237, 125, 49, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* Select wrapper with custom arrow */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--muted);
  pointer-events: none;
}

.select-wrap select {
  padding-right: 36px;
  cursor: pointer;
}

/* =========================================
   FILE UPLOAD
   ========================================= */

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-upload {
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.file-upload:hover,
.file-upload.is-drag-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.file-upload__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 24px 20px;
  cursor: pointer;
  gap: 8px;
}

.file-upload__icon {
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.file-upload:hover .file-upload__icon,
.file-upload.is-drag-over .file-upload__icon {
  color: var(--accent);
}

.file-upload__main {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.file-upload__hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Uploaded file list */
.file-upload__list {
  padding: 0 16px 12px;
}

.file-upload__file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-upload__file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink);
  padding: 6px 10px 6px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.file-upload__file-list .file-name {
  flex: 1 1 auto;
  word-break: break-all;
  min-width: 0;
}

.file-upload__file-list .file-remove {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.file-upload__file-list .file-remove:hover {
  color: #b71c1c;
  border-color: #b71c1c;
  background: #fdecea;
}

/* =========================================
   CONSENT CHECKBOX
   ========================================= */

.consent__label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.consent__checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent__text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.consent__link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent__link:hover {
  color: var(--accent-dark);
}

/* Submit button */
.form-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 6px;
  justify-content: center;
}

/* After-submit note */
.form-after-text {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
}

/* GDPR-light note - nahrazuje původní checkbox souhlasu */
.form-privacy-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 6px 0 0;
  line-height: 1.5;
}

/* =========================================
   SIDEBAR CONTACT PERSON
   ========================================= */

.sidebar-person {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-person__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.sidebar-person__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border: 2px solid var(--line);
  background: var(--bg-soft);
  display: block;
}

.sidebar-person__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-person__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.sidebar-person__role {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 4px;
}

.sidebar-person__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
  display: block;
}

.sidebar-person__link:hover {
  color: var(--accent);
}

/* =========================================
   PROMINENT INTRO
   ========================================= */

.sub--prominent {
  font-size: 18px;
  color: var(--ink);
}

/* =========================================
   FORM ALERT (chybové zprávy)
   ========================================= */

.form-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  border: 1px solid;
}

.form-alert--error {
  background: #fdecea;
  border-color: #f5c6c0;
  color: #7d1a14;
}

.form-alert__reload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #7d1a14;
  background: #fff;
  border: 1px solid #f5c6c0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.form-alert__reload:hover {
  background: #7d1a14;
  color: #fff;
  border-color: #7d1a14;
}

/* Honeypot - neviditelné pole proti spambotům */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 960px) {
  .inquiry-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .checklist-col {
    position: static;
  }
}

@media (max-width: 768px) {
  .inquiry-main {
    padding: 32px 0 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .file-upload__label {
    padding: 20px 16px 16px;
  }
}
