/* ============================================
   KONTAKTNI OBRAZEC — MODAL
   ============================================ */

.kontakt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}
.kontakt-modal-overlay.open { display: flex; }

.kontakt-modal {
  background: #fff;
  border-radius: 16px;
  padding: 48px 44px;
  width: 100%;
  max-width: 520px;
  margin: 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.kontakt-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 8px;
  font-family: var(--font);
}
.kontakt-modal-close:hover { color: var(--text); }

.kontakt-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  text-align: center;
  margin-bottom: 8px;
}

.kontakt-modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Form fields */
.kontakt-field {
  margin-bottom: 16px;
}

.kontakt-input,
.kontakt-select,
.kontakt-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.kontakt-input:focus,
.kontakt-select:focus,
.kontakt-textarea:focus { border-color: var(--blue); }
.kontakt-input::placeholder,
.kontakt-textarea::placeholder { color: var(--text-muted); }
.kontakt-input.error,
.kontakt-select.error,
.kontakt-textarea.error { border-color: #e53e3e; }

.kontakt-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
  color: var(--text-muted);
}
.kontakt-select.selected { color: var(--text); }

.kontakt-textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.5;
}

/* Honeypot - skrito */
.kontakt-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Submit */
.kontakt-submit {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  display: block;
  border: none;
  margin-top: 8px;
}
.kontakt-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Messages */
.kontakt-msg {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  display: none;
  line-height: 1.5;
}
.kontakt-msg.success { color: var(--blue); }
.kontakt-msg.error { color: #e53e3e; }

@media (max-width: 540px) {
  .kontakt-modal { padding: 36px 24px; margin: 16px; }
  .kontakt-modal-title { font-size: 19px; }
}
