@layer components {

    #se-webform-94,
    #se-webform-94 * {
      box-sizing: border-box;
      font-family: var(--font-body);
    }

    #se-webform-94 ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-wrap: wrap;
      gap: 12px 8px;
    }

    #se-webform-94 li {
      flex: 1 1 calc(50% - 4px);
      position: relative;
    }

    /* Textarea (Vaše zpráva) bude nyní 6. prvkem v seznamu a zabere plnou šířku */
    #se-webform-94 li:nth-child(6) {
      flex: 1 1 100%;
    }

    #se-webform-94 label { /* Labely jsou skryty podle stylu A */
      display: none;
    }

    #se-webform-94 input[type="text"],
    #se-webform-94 select,
    #se-webform-94 textarea {
      width: 100%;
      background-color: var(--color-aqua-100);
      border: 1px solid var(--color-white);
      padding: 10px 15px;
      font-weight: 700;
      font-size: 14px;
      line-height: 24px;
      color: var(--color-navy);
      margin-top: 6px;
      min-height: 50px;
      outline: none;
      display: block;
    }

    #se-webform-94 input:focus,
    #se-webform-94 select:focus,
    #se-webform-94 textarea:focus {
      border: 1px solid var(--color-white);
      box-shadow: none;
      outline: none;
    }

    #se-webform-94 input::placeholder,
    #se-webform-94 textarea::placeholder {
      color: var(--color-navy);
      font-weight: 700;
      opacity: 1;
    }

    #se-webform-94 select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url('/assets/11af2cf373-682d9d9c0cd8fafe1d7fe2ec_ceoform1.svg');
      background-repeat: no-repeat;
      background-position: right 8px center;
      background-size: 34px 34px;
      padding-right: 8px; /* Specifický padding pro select z formA, aby se vešla šipka (obecný padding je 10px 15px) */
      border-radius: 100px;
    }

    #se-webform-94 input[type="text"] {
      border-radius: 100px;
    }

    #se-webform-94 textarea {
      min-height: 120px;
      resize: vertical;
      border-radius: 20px;
    }

    .form-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
      margin-top: 20px;
      flex-wrap: wrap;
    }

    .consent-text {
      font-weight: 500;
      font-size: 15px;
      line-height: 22px;
      color: var(--color-ink);
      max-width: 480px;
      margin: 0;
    }

    .consent-text a {
      color: var(--color-ink);
      text-decoration: underline;
    }

    #se-webform-94 input[type="submit"] {
      background-color: var(--color-brand-500);
      border: none;
      border-radius: 100px;
      padding: 12px 30px 12px 24px;
      font-weight: 700;
      font-size: 16px;
      line-height: 24px;
      color: var(--color-navy);
      cursor: pointer;
      transition: background-color 0.3s ease;
      min-height: 50px;
      display: inline-flex;
      align-items: center;
      gap: 12px;
    }

    #se-webform-94 input[type="submit"]:hover {
      background-color: #f0b400;
    }

    /* --- CF_74 (Zdroj Stránka) skryté pole --- */
    #frm-webFormHtmlRenderer-webFormForm-fields-cf_74 {
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      min-height: 0 !important;
      padding: 0 !important;
      margin: 0 !important;
      border: 0 !important;
    }

    @media (max-width: 768px) {
      .form-footer {
        flex-direction: column-reverse;
        align-items: flex-start;
      }
      .consent-text {
        max-width: 100%;
      }
    }

    /* Custom roletka - pracovní pozice */
    #se-webform-94 .role-select {
      position: relative;
      width: 100%;
      margin-top: 6px;
    }

    #se-webform-94 .role-select__native {
      position: absolute;
      left: -9999px;
      top: auto;
      width: 1px;
      height: 1px;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
    }

    #se-webform-94 .role-select__trigger {
      width: 100%;
      background-color: var(--color-aqua-100);
      border: 1px solid var(--color-white);
      border-radius: 100px;
      min-height: 50px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 56px 10px 15px;
      cursor: pointer;
      user-select: none;
      position: relative;
      font-weight: 700;
      font-size: 14px;
      line-height: 24px;
      color: var(--color-navy);
      outline: none;
    }

    #se-webform-94 .role-select__trigger:focus {
      border: 1px solid var(--color-white);
      box-shadow: none;
      outline: none;
    }

    #se-webform-94 .role-select__trigger::after {
      content: "";
      position: absolute;
      right: 14px;
      top: 50%;
      width: 34px;
      height: 34px;
      transform: translateY(-50%);
      background-image: url('/assets/11af2cf373-682d9d9c0cd8fafe1d7fe2ec_ceoform1.svg');
      background-repeat: no-repeat;
      background-position: center;
      background-size: 34px 34px;
      pointer-events: none;
      opacity: 1;
    }

    #se-webform-94 .role-select__value {
      display: block;
      width: 100%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      padding-right: 6px;
    }

    #se-webform-94 .role-select__value.is-placeholder {
      opacity: 1;
    }

    #se-webform-94 .role-select__panel {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 8px);
      background-color: var(--color-aqua-100);
      border: 1px solid var(--color-white);
      border-radius: 20px;
      box-shadow: 0 10px 24px rgba(0, 36, 54, 0.12);
      padding: 6px;
      z-index: 9999;
      display: none;
      max-height: 240px;
      overflow: auto;
    }

    #se-webform-94 .role-select.is-open .role-select__panel {
      display: block;
    }

    #se-webform-94 .role-select__option {
      width: 100%;
      border: 0;
      background: transparent;
      border-radius: 14px;
      padding: 12px 14px;
      text-align: left;
      cursor: pointer;
      font-weight: 700;
      font-size: 14px;
      line-height: 20px;
      color: var(--color-navy);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    #se-webform-94 .role-select__option:hover {
      background-color: rgba(0, 191, 196, 0.12);
    }

    #se-webform-94 .role-select__option.is-selected {
      background-color: rgba(0, 191, 196, 0.18);
    }

    #se-webform-94 .role-select__option:focus {
      outline: none;
      background-color: rgba(0, 191, 196, 0.18);
    }

}
