/* ============================================================
   MOG Support Center – New Request Page
   ============================================================ */

/* ---------- Oprava style.css konfliktů ---------- */
.mog-request-form-col.form {
  max-width: none !important;
}

.sub-nav {
  margin-bottom: 24px !important;
}

/* ---------- Dvousloupcový wrapper – POUZE desktop ---------- */
@media (min-width: 861px) {
  .mog-request-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding-bottom: 80px;
  }

  .mog-request-form-col {
    flex: 1 1 0;
    min-width: 0;
    /* Pevná šířka – editor má dost prostoru pro toolbar */
    max-width: calc(100% - 320px);
  }

  .mog-request-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
  }
}

/* ---------- Mobil – sidebar NAD formulářem, formulář plná šířka ---------- */
@media (max-width: 860px) {
  .mog-request-wrapper {
    display: flex;
    flex-direction: column-reverse;
    gap: 32px;
    padding-bottom: 48px;
  }

  /* Toto je klíčové – na mobilu formulář musí mít 100% šířku
     aby Zendesk editor správně renderoval toolbar */
  .mog-request-form-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    box-sizing: border-box;
    overflow: visible !important;
  }

  /* Editor a všechny jeho vnitřní elementy musí respektovat šířku */
  .mog-request-form-col #new-request-form,
  .mog-request-form-col #new-request-form > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .mog-request-sidebar {
    width: 100%;
    position: static;
  }
}

/* ---------- Karty ---------- */
.mog-request-card {
  background-color: #0c0c17;
  border: 1px solid #14142a;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.mog-request-card:last-child {
  margin-bottom: 0;
}

.mog-request-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
}

.mog-request-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mog-request-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #8890aa;
}

.mog-request-card__list li a {
  color: #8890aa !important;
  text-decoration: none !important;
  transition: color 0.15s;
}

.mog-request-card__list li a:hover {
  color: #ffffff !important;
}

.mog-request-card__dot {
  width: 6px;
  height: 6px;
  background-color: #2b3fef;
  border-radius: 50%;
  flex-shrink: 0;
}

.mog-request-card__text {
  font-size: 14px;
  color: #8890aa;
  margin: 0 0 16px;
  line-height: 1.6;
}

.mog-request-card__text strong {
  color: #ffffff;
  font-weight: 600;
}

.mog-request-card__status {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #0e0e1e;
  border: 1px solid #1a1a35;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #8890aa;
}

.mog-request-card__status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  animation: mog-req-pulse 2s ease-in-out infinite;
}

@keyframes mog-req-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mog-request-card__online {
  color: #2b3fef;
  font-weight: 600;
}

/* ============================================================
   FORM STYLING – inputs, editor, attachments
   ============================================================ */

/* ---------- Labels ---------- */
.mog-request-form-col label,
#new-request-form label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #c0c4d8 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* ---------- Text inputs ---------- */
#new-request-form input[type="text"],
#new-request-form input[type="email"],
#new-request-form input[type="search"],
#new-request-form input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]) {
  background-color: #0c0c17 !important;
  border: 1px solid #14142a !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  outline: none !important;
}

#new-request-form input:focus {
  border-color: #2b3fef !important;
  box-shadow: 0 0 0 3px rgba(43, 63, 239, 0.12) !important;
}

#new-request-form input::placeholder {
  color: #3a3a55 !important;
}

#new-request-form input:-webkit-autofill,
#new-request-form input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0c0c17 inset !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ---------- CKEditor toolbar ---------- */
.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content,
.ck.ck-toolbar {
  background-color: #0e0e1e !important;
  border: 1px solid #14142a !important;
  border-bottom: 1px solid #1a1a30 !important;
  border-radius: 10px 10px 0 0 !important;
}

/* Toolbar buttons */
.ck.ck-toolbar .ck.ck-button,
.ck.ck-toolbar .ck.ck-dropdown__button {
  background: transparent !important;
  color: #8890aa !important;
  border-radius: 6px !important;
}

.ck.ck-toolbar .ck.ck-button:hover,
.ck.ck-toolbar .ck.ck-button.ck-on {
  background-color: #14142a !important;
  color: #ffffff !important;
}

.ck.ck-toolbar .ck.ck-button .ck-icon,
.ck.ck-toolbar .ck.ck-button svg {
  color: #8890aa !important;
}

.ck.ck-toolbar .ck.ck-button:hover .ck-icon,
.ck.ck-toolbar .ck.ck-button.ck-on .ck-icon {
  color: #ffffff !important;
}

/* Toolbar separator */
.ck.ck-toolbar__separator {
  background-color: #1a1a30 !important;
}

/* Dropdown button label (Paragraph) */
.ck.ck-dropdown .ck-button__label {
  color: #8890aa !important;
  font-size: 13px !important;
}

/* ---------- CKEditor editable area ---------- */
.ck.ck-editor__main .ck-editor__editable,
.ck.ck-content {
  background-color: #0c0c17 !important;
  border: 1px solid #14142a !important;
  border-top: none !important;
  border-radius: 0 0 10px 10px !important;
  color: #c0c4d8 !important;
  min-height: 140px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.ck.ck-editor__main .ck-editor__editable.ck-focused,
.ck.ck-content:focus {
  border-color: #2b3fef !important;
  box-shadow: 0 0 0 3px rgba(43, 63, 239, 0.12) !important;
  outline: none !important;
}

/* Placeholder text inside editor */
.ck .ck-placeholder::before {
  color: #3a3a55 !important;
}

/* ---------- Attachments ---------- */
/* Zendesk renders attachments as a label+input wrapper */
#new-request-form [data-test-id="upload-dropzone"],
#new-request-form .upload-dropzone,
#new-request-form [class*="dropZone"],
#new-request-form [class*="DropZone"],
#new-request-form [class*="drop-zone"],
#new-request-form [class*="file-upload"],
#new-request-form .attachments-cloud-upload {
  background-color: #0c0c17 !important;
  border: 1px dashed #1e1e35 !important;
  border-radius: 12px !important;
  padding: 28px 20px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: border-color 0.2s, background-color 0.2s !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

#new-request-form [data-test-id="upload-dropzone"]:hover,
#new-request-form [class*="DropZone"]:hover {
  border-color: #2b3fef !important;
  background-color: #0e0e1e !important;
}

/* Upload icon color */
#new-request-form [data-test-id="upload-dropzone"] svg,
#new-request-form [class*="DropZone"] svg {
  color: #2b3fef !important;
  fill: #2b3fef !important;
}

/* "Choose a file" link */
#new-request-form [data-test-id="upload-dropzone"] a,
#new-request-form [data-test-id="upload-dropzone"] [class*="link"],
#new-request-form [class*="DropZone"] a {
  color: #2b3fef !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 14px !important;
}

/* Hint text "PNG, JPG..." */
#new-request-form [data-test-id="upload-dropzone"] span,
#new-request-form [data-test-id="upload-dropzone"] p,
#new-request-form [class*="DropZone"] span {
  color: #5a6080 !important;
  font-size: 12px !important;
}

/* ---------- Submit button ---------- */
#new-request-form button[type="submit"],
#new-request-form [data-test-id="submit-button"] {
  background-color: #2b3fef !important;
  border: none !important;
  border-radius: 9px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 12px 32px !important;
  cursor: pointer !important;
  transition: background-color 0.2s, transform 0.1s !important;
  margin-top: 8px !important;
}

#new-request-form button[type="submit"]:hover {
  background-color: #1f30d4 !important;
  transform: translateY(-1px) !important;
}

/* ---------- Required asterisk ---------- */
#new-request-form abbr[title="required"],
#new-request-form [aria-label*="required"] {
  color: #2b3fef !important;
  text-decoration: none !important;
}

/* ---------- Field spacing ---------- */
#new-request-form > div,
#new-request-form [class*="FormField"],
#new-request-form [class*="field-wrapper"] {
  margin-bottom: 20px !important;
}

/* ---------- Hint text under fields ---------- */
#new-request-form [class*="hint"],
#new-request-form [class*="Hint"],
#new-request-form .form-hint {
  font-size: 12px !important;
  color: #5a6080 !important;
  margin-top: 4px !important;
}

/* ---------- CKEditor – inherit-color icons a Paragraph dropdown ---------- */

/* Všechny inherit-color ikony v toolbaru */
.ck.ck-toolbar .ck-icon_inherit-color,
.ck.ck-toolbar .ck-icon_inherit-color *,
.ck.ck-toolbar .ck.ck-button__icon,
.ck.ck-toolbar svg.ck-button__icon {
  color: #8890aa !important;
  fill: currentColor !important;
}

.ck.ck-toolbar .ck.ck-button:hover .ck-icon_inherit-color,
.ck.ck-toolbar .ck.ck-button:hover .ck-icon_inherit-color *,
.ck.ck-toolbar .ck.ck-button.ck-on .ck-icon_inherit-color,
.ck.ck-toolbar .ck.ck-button.ck-on .ck-icon_inherit-color * {
  color: #ffffff !important;
}

/* Paragraph dropdown – label text */
.ck.ck-toolbar .ck-heading-dropdown .ck-button__label,
.ck.ck-toolbar .ck.ck-dropdown > .ck-button .ck-button__label {
  color: #8890aa !important;
  font-size: 13px !important;
}

.ck.ck-toolbar .ck.ck-dropdown:hover > .ck-button .ck-button__label,
.ck.ck-toolbar .ck.ck-dropdown.ck-on > .ck-button .ck-button__label {
  color: #ffffff !important;
}

/* Šipka dolů vedle "Paragraph" */
.ck.ck-toolbar .ck.ck-dropdown .ck-dropdown__arrow {
  color: #8890aa !important;
  fill: currentColor !important;
}

.ck.ck-toolbar .ck.ck-dropdown:hover .ck-dropdown__arrow {
  color: #ffffff !important;
}

/* Tečkované menu (more options / 3 tečky) */
.ck.ck-toolbar .ck.ck-toolbar__grouped-dropdown > .ck-button .ck-icon_inherit-color,
.ck.ck-toolbar [class*="grouped"] .ck-icon_inherit-color {
  color: #8890aa !important;
  fill: currentColor !important;
}

/* Dropdown panel (Paragraph menu) */
.ck.ck-dropdown__panel {
  background-color: #0e0e1e !important;
  border: 1px solid #1a1a30 !important;
  border-radius: 8px !important;
}

.ck.ck-dropdown__panel .ck.ck-button {
  color: #8890aa !important;
  background: transparent !important;
}

.ck.ck-dropdown__panel .ck.ck-button:hover {
  background-color: #14142a !important;
  color: #ffffff !important;
}

.ck.ck-dropdown__panel .ck.ck-button.ck-on {
  background-color: #1a2460 !important;
  color: #6878f5 !important;
}
